Java threads under Linux show up as individual processes when you do a top or anything similar. The number of threads (Linux processes) that Tomcat creates will of course depend on the application you're deploying, i.e. if your app starts up a lot of threads for whatever reason you're going to see those show up as additional processes. I don't know the exact number off the top of my head but I would estimate that Tomcat itself starts < 30 threads, of course this number also depends on the number of request processors you specify in your server.xml. In my experience any app that has 525 threads running needs to be looked at immediately.
Having one or more open database connections is okay if you're pooling the connections in some way. If the number of physical connections to your DB is constantly increasing without bound then perhaps you have another problem to fix. Using netstat is should be easy to determine what's going on there. Jeremy > -----Original Message----- > From: David Brown [mailto:[EMAIL PROTECTED]] > Sent: Thursday, December 05, 2002 9:47 AM > To: Tomcat Users List > Subject: Re: how many linux processes should tomcat create??? > > Brandon Cruz writes: > > > Does anyone know how many processes tomcat should create? When I start > my > > server, there are about 525 processes created. The number constantly > grows > > as time goes on, but I think it is related to a database connection > being > > left open. > > > > 525 seems like a lot to start with though. > > > > Brandon > > > > > > -- > > To unsubscribe, e-mail: <mailto:tomcat-user- > [EMAIL PROTECTED]> > > For additional commands, e-mail: <mailto:tomcat-user- > [EMAIL PROTECTED]> > > > > Hello Brandon, i case the gurus have not responded i wil put in $0.02. i > have been running tc for a few years and have been running on public > access > 4 about a year and i monitor (i'm running a linux box) using "top" all my > processes, memory, cpu etc. all the time. i have not really kept any vital > stats type records, mostly just "eyeball". for whatever it is worth i ran > a > ps -waux on my system and see that i have 45 processes as a result of > executing catalina.sh (tc server). i have many servlets and jsp running in > 4 > different virtual hosts. i cannot expertly confirm of course but 525 > processes would in my estimation a "run-away" condition that needs > fulltime > attention until u get this reigned. hope this helps, david. > > > -- > To unsubscribe, e-mail: <mailto:tomcat-user- > [EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:tomcat-user- > [EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>