You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Brendon M. Maragia" <br...@commaflex.com> on 2001/04/13 02:14:00 UTC

to many tomcat processes!! AAH!!

Dear Readers,
 
I finally!!! Got Jakarta Tomcat vhosting with Cocoon and it was so so
beautiful and sweet, I jumped around the room screaming in joy.  Don’t
try an tell me you’ve never done that.  Anyways, I was using jdk1.1.3 ;]
ewww, I know.  So I upgraded to j2sdk1.3 and fired everything back up.
Low and behold when running ps –aux, I was confronted with this….
 
root      2806 44.5  4.1 76632 10580 pts/1   S    20:01   0:01
/usr/local/jdk1.2.2/bin/i386/native_threads/java -Dtomcat.home=/usr/l
root      2844  0.0  4.1 76632 10580 pts/1   S    20:01   0:00
/usr/local/jdk1.2.2/bin/i386/native_threads/java -Dtomcat.home=/usr/l
root      2845  0.0  4.1 76632 10580 pts/1   S    20:01   0:00
/usr/local/jdk1.2.2/bin/i386/native_threads/java -Dtomcat.home=/usr/l
root      2846  0.0  4.1 76632 10580 pts/1   S    20:01   0:00
/usr/local/jdk1.2.2/bin/i386/native_threads/java -Dtomcat.home=/usr/l
 
Not just that about 50 more.  In total about 54 Jakarta Tomcat
processes, all this right after I upgraded to j2sdk1.3.  I tried
downgrading again to jdk1.2.2, no dice same error.  I searched through
the mail archives and noticed a guy buy the name of Pete Wright had
posted a similar error.  I emailed him and he told me the list hadn’t
been much help.  So in posting the same error again I hope to raise user
sympathy ;]  please help!
 
Sincerely,
Brendon Maragia

RE: to many tomcat processes!! AAH!!

Posted by Saurabh Shukla <sa...@cysphere.com>.
You can use green threads instead of native threads and thou shall see just
one process. :-)

Shuklix
  -----Original Message-----
  From: dave@dcc.vu [mailto:dave@dcc.vu]On Behalf Of David Crooke
  Sent: Friday, April 13, 2001 9:45 AM
  To: tomcat-user@jakarta.apache.org
  Subject: Re: to many tomcat processes!! AAH!!


  This is how Linux shows kernel threads; nothing to be alarmed about. There
is only one process.
  "Brendon M. Maragia" wrote:

    Dear Readers,

    I finally!!! Got Jakarta Tomcat vhosting with Cocoon and it was so so
beautiful and sweet, I jumped around the room screaming in joy.Don't try an
tell me you've never done that.Anyways, I was using jdk1.1.3 ;] ewww, I
know.So I upgraded to j2sdk1.3 and fired everything back up.Low and behold
when running ps -aux, I was confronted with this....


    root2806 44.54.1 76632 10580 pts/1S20:010:01
/usr/local/jdk1.2.2/bin/i386/native_threads/java -Dtomcat.home=/usr/l

    root28440.04.1 76632 10580 pts/1S20:010:00
/usr/local/jdk1.2.2/bin/i386/native_threads/java -Dtomcat.home=/usr/l

    root28450.04.1 76632 10580 pts/1S20:010:00
/usr/local/jdk1.2.2/bin/i386/native_threads/java -Dtomcat.home=/usr/l

    root28460.04.1 76632 10580 pts/1S20:010:00
/usr/local/jdk1.2.2/bin/i386/native_threads/java -Dtomcat.home=/usr/l


    Not just that about 50 more.In total about 54 Jakarta Tomcat processes,
all this right after I upgraded to j2sdk1.3.I tried downgrading again to
jdk1.2.2, no dice same error.I searched through the mail archives and
noticed a guy buy the name of Pete Wright had posted a similar error.I
emailed him and he told me the list hadn't been much help.So in posting the
same error again I hope to raise user sympathy ;]please help!


    Sincerely,

    Brendon Maragia


Re: to many tomcat processes!! AAH!!

Posted by David Crooke <da...@convio.com>.
This is how Linux shows kernel threads; nothing to be alarmed about. There is
only one process.

"Brendon M. Maragia" wrote:

> Dear Readers,
>
> I finally!!! Got Jakarta Tomcat vhosting with Cocoon and it was so so
> beautiful and sweet, I jumped around the room screaming in joy.Don't try an
> tell me you've never done that.Anyways, I was using jdk1.1.3 ;] ewww, I
> know.So I upgraded to j2sdk1.3 and fired everything back up.Low and behold
> when running ps -aux, I was confronted with this....
>
> root2806 44.54.1 76632 10580 pts/1S20:010:01
> /usr/local/jdk1.2.2/bin/i386/native_threads/java -Dtomcat.home=/usr/l
>
> root28440.04.1 76632 10580 pts/1S20:010:00
> /usr/local/jdk1.2.2/bin/i386/native_threads/java -Dtomcat.home=/usr/l
>
> root28450.04.1 76632 10580 pts/1S20:010:00
> /usr/local/jdk1.2.2/bin/i386/native_threads/java -Dtomcat.home=/usr/l
>
> root28460.04.1 76632 10580 pts/1S20:010:00
> /usr/local/jdk1.2.2/bin/i386/native_threads/java -Dtomcat.home=/usr/l
>
> Not just that about 50 more.In total about 54 Jakarta Tomcat processes, all
> this right after I upgraded to j2sdk1.3.I tried downgrading again to jdk1.2.2,
> no dice same error.I searched through the mail archives and noticed a guy buy
> the name of Pete Wright had posted a similar error.I emailed him and he told
> me the list hadn't been much help.So in posting the same error again I hope to
> raise user sympathy ;]please help!
>
> Sincerely,
>
> Brendon Maragia
>

Re: to many tomcat processes!! AAH!!

Posted by "Ansgar W. Konermann" <an...@inf.tu-dresden.de>.
Hi,

maybe the many processes are because jdk1.2 and up use native threads
(AFAIK, 1.1 used "green" threads, i. e. a threading package implemented
in java itself).

With 1.2+, every java thread is a native OS thread and therefor gets
listed by ps. Have you tried forcing java to use green threads? I'm
quite sure that it is possible (RTFM).

-- 
Best regards,

Ansgar W. Konermann
eMail: ak26@inf.tu-dresden.de

--- Hello, I am a message footer. -------------------------------------

Re: to many tomcat processes!! AAH!!

Posted by Jeff Kilbride <je...@kilbride.com>.
Go to the Tomcat User's Guide:

http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/index.html

and do a search for "max_threads". You can configure your PoolTCPConnectors for ajp12 and ajp13 via the server.xml file.

BE CAREFUL. If you set these values too low, you will undoubtedly hamper performance. However, you shouldn't leave these at the default values once you understand what they do. In my case, I am using ajp13 in all of my code. ajp12, as far as I know, is only being used for startup/shutdown of Tomcat itself. So, I cut the values way back for ajp12 and increased the defaults for ajp13.

Thanks,
--jeff

  ----- Original Message ----- 
  From: Brendon M. Maragia 
  To: tomcat-user@jakarta.apache.org 
  Sent: Thursday, April 12, 2001 5:14 PM
  Subject: to many tomcat processes!! AAH!!


  Dear Readers,

   

  I finally!!! Got Jakarta Tomcat vhosting with Cocoon and it was so so beautiful and sweet, I jumped around the room screaming in joy.  Don't try an tell me you've never done that.  Anyways, I was using jdk1.1.3 ;] ewww, I know.  So I upgraded to j2sdk1.3 and fired everything back up.  Low and behold when running ps -aux, I was confronted with this..

   

  root      2806 44.5  4.1 76632 10580 pts/1   S    20:01   0:01 /usr/local/jdk1.2.2/bin/i386/native_threads/java -Dtomcat.home=/usr/l

  root      2844  0.0  4.1 76632 10580 pts/1   S    20:01   0:00 /usr/local/jdk1.2.2/bin/i386/native_threads/java -Dtomcat.home=/usr/l

  root      2845  0.0  4.1 76632 10580 pts/1   S    20:01   0:00 /usr/local/jdk1.2.2/bin/i386/native_threads/java -Dtomcat.home=/usr/l

  root      2846  0.0  4.1 76632 10580 pts/1   S    20:01   0:00 /usr/local/jdk1.2.2/bin/i386/native_threads/java -Dtomcat.home=/usr/l

   

  Not just that about 50 more.  In total about 54 Jakarta Tomcat processes, all this right after I upgraded to j2sdk1.3.  I tried downgrading again to jdk1.2.2, no dice same error.  I searched through the mail archives and noticed a guy buy the name of Pete Wright had posted a similar error.  I emailed him and he told me the list hadn't been much help.  So in posting the same error again I hope to raise user sympathy ;]  please help!

   

  Sincerely,

  Brendon Maragia