You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Sumith Ail <to...@itintegrated.com> on 2001/07/20 10:04:31 UTC

Too many process?

Hi Friends,

Please excuse me if this question has been asked on this list a number of times.I am trying to install Tomcat 3.2.2 from RPM on RH Linux 6.2 using j2sdk 1.2.2 FCS from blackdown.org. I am able to start tomcat but it starts a lot of java process immediately without even anybody accessing the Tomcat server.

[root@leo /root]#pstree | grep java
 |-java---java---39*[java]

Is this how it should behave or am I missing something.

Would appreciate any hints from the gurus

Re: Too many process?

Posted by Jeff Hoare <jh...@ihug.com.au>.
Hi,
Are you using native threads? if so then this is ok (from memory each java 
thread gets mapped to a seperate process). If you use green threads then they 
should share a single process (from memory). 
For example sun's jdk starts 33 processes on my system (depending on your 
configuration you may have more or less)

Jeff

On Friday 20 July 2001 18:04, you wrote:
> Hi Friends,
>
> Please excuse me if this question has been asked on this list a number of
> times.I am trying to install Tomcat 3.2.2 from RPM on RH Linux 6.2 using
> j2sdk 1.2.2 FCS from blackdown.org. I am able to start tomcat but it starts
> a lot of java process immediately without even anybody accessing the Tomcat
> server.
>
> [root@leo /root]#pstree | grep java
>
>  |-java---java---39*[java]
>
> Is this how it should behave or am I missing something.
>
> Would appreciate any hints from the gurus

Re: Too many process?

Posted by "Nils O. Selåsdal" <no...@frisurf.no>.
On Friday 20 July 2001 09:04, Sumith Ail wrote:
> Hi Friends,
>
> Please excuse me if this question has been asked on this list a number of
> times.I am trying to install Tomcat 3.2.2 from RPM on RH Linux 6.2 using
> j2sdk 1.2.2 FCS from blackdown.org. I am able to start tomcat but it starts
> a lot of java process immediately without even anybody accessing the Tomcat
> server.
>
> [root@leo /root]#pstree | grep java
>
>  |-java---java---39*[java]
>
> Is this how it should behave or am I missing something.
Yes, assuming you use native threads. What you see is threads, which the 
linux kernel view as an ordinaery process. Thoug , they all share the same 
memory space.
Java it self uses a few threads on startup, one for the garbage collector, 
finalizer e.t.c. And tomcat start a number of threads, some go into a thread 
pool for faster response.

-- 
Nils O. Selåsdal

Re: Too many process?

Posted by Sumith Ail <to...@itintegrated.com>.
Hello 

Thank you all for the reply.
You are right Brendan, I was worried about the process table. My box RH 6.2 (PIII 800 512MB RAM, IDE HDD)is already running qmail, mysql, apache with around 300 domains (maybe cross 800+ domains).

Have any of you faced performance problems after installing Tomcat on Linux...which plugin would be better mod_jserv or mod_jk?

Regards
Sumith

On Fri, Jul 20, 2001 at 10:04:06AM +0000, Brendan McKenna wrote:
> Hi Sumith,
> 
> 	What you're seeing is 'normal' on Linux.  On Linux, each thread 
> within a process shows up in the process table, and that's why you're 
> seeing all the java 'processes'.  They're all actually -one- process.  
> You -may- have to be concerned about the size of your process table, 
> but normally it's not a problem -- only if you're starting a lot of 
> threads yourself within your application(s).
> 
> 
> 						Brendan
> -- 
> Brendan McKenna			       Email: brendan.mckenna@taringold.ie
> Development Strategist		       Phone: +353-61-338177
> Taringold Ltd.			       Fax:   +353-61-338065
> 
> 
>