starting 1 java instance starts up 12 java processes ...?
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   roman_schoenbeck
Posted On:   Tuesday, March 26, 2002 01:56 AM

Hi

How can I awoid the following: if I start ONE java instance, TWELVE java instances are started automatically!


e.g. I start 'rmiregistry 1090' and get 12 such processes...?

The first instance starts another one and that one starts the 10 others, as I can see from the PID's and PPID's.

What's wrong? I just want 1 instance to be running!


My box:
Linux Redhat 7.1 on Intel
JDK 1.3.1_02


Thanks for any hints!
Roman

Re: starting 1 java instance starts up 12 java processes ...?

Posted By:   Frederick_Burkley  
Posted On:   Thursday, June 13, 2002 06:24 AM

I believe individual threads in my java process *do not* map 1 for 1 to traditional UNIX processes.

http://groups.google.com/groups?hl=en&lr=&threadm=3C9818FA.5070805%40c_o_x.n_e_t&rnum=1&prev=/groups%3Fhl%3Den%26lr%3D%26q%3Dburkley%26meta%3Dgroup%253Dcomp.lang.java.machine

I believe it is a problem with the way "top" displays process information.

This is under SuSE 7.2 with a 2.4.4 kernel.

If threads did map 1 for 1 to UNIX processes, my 57 Meg server would take up about 360 Meg of RAM, which it does not do.

HTH,
Fred Burkley

Re: starting 1 java instance starts up 12 java processes ...?

Posted By:   stef_mik  
Posted On:   Tuesday, March 26, 2002 02:40 AM

Under Linux, 1 java thread = 1 linux process, so you probably have 12 threads in your app.
About | Sitemap | Contact