cancel
Showing results for 
Search instead for 
Did you mean: 

batch restart of j2ee server nodes

former_member203322
Participant
0 Kudos

Hello all,

Is it possible (maybe with jcmon) to schedule a single server node restart within a j2ee cluster ?

I would like to restart just one out of 4 server nodes on which ther are sometimes memory issues and where there are dedicated jobs running

thanks and regards,

MIchele

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Donna

If you are on unix/linux then you can pass options to jcmon over a pipe. This will restart the server1 node:

echo "20\n5\n2\ny\n0\n0\n" | jcmon pf=SID_DVEBMGS00_host

20\n5\n2\ny\n0\n0\n decodes like this:

20 -> goto local administration menu

5 -> restart process

2 -> restart server node 1 (change this to your server node number)

y -> yes i want to restart it

0 -> exit local admin menu

0 -> exit jcmon

This command can be included into a script and scheduled in cron.

Best regards, Michael

former_member203322
Participant
0 Kudos

Hello

Thanks for the hint...I tried on AIX but it doesn't work....I'm investigating why...

regards,

Michele

Former Member
0 Kudos

I tried it on hp-ux and on linux, worked for me, but i don't have AIX sitting around to test. I suggest to start with an easy example like this.

Just execute jcmon and exit:

sidadm> echo "0\n" | jcmon pf=SID_DVEBMGS00_host

If you have any error you can post it, i will see if i can help.

Regards, Michael

Answers (0)