View Full Version : 10 Java processes?


devinci99
06-20-2004, 12:52 PM
Is it normal to have this much java threads when we start the wwim service/applet?

When I do a ps -elf |grep java

and look for my username, I found 9 processes.

I do a killall and they are gone, so I try to restart with cron and found 10 again.

is this normal?

or did my cron start scrpt screw up and launch the applet too many times?

What I did is wron a cron script to look for the process, if it exist it exits, if not, it runs the applet. So I cron it for every 1 minute. so it shouldnt try to launch it more than once.

When i check for the processes each time I see 10. and it's consistent. no less, no more after each time I remove the cron, kill all jobs, check to make sire they are killed, and restart via cron again.

can someone confirm 10 process are normal?

Jafo
06-20-2004, 08:41 PM
Yes, there should be multiple processes. It is a multi-threaded application. If the server is executed and the port it is configured to use is already in use, the program will die, so you can cron the java app itself with no worry of it stepping on each other.

devinci99
06-20-2004, 08:55 PM
great!

I dont have to fix anything then.

and there i went to create some intelligent cron script for nothing!