RE: Tomcat processes
Generally speaking, one process with a lot of threads should perform better than distributing the threads among multiple processes because you're not doing as much context switching and it's more efficient on caches. J. Ryan Earl Systems/Network Engineer dynaConnections Corporation 512.306.9898 -Original Message- From: Iannis Hanen [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 04, 2005 12:01 PM To: tomcat-user@jakarta.apache.org Subject: Tomcat processes Hi everyone, I have a question related to the scalability and performance of Tomcat. Typically, when tomcat gets started, it creates one process that spawns all the threads required to answer the requests for all the deployed web applications. Let's assume that I have 6 distinct web applications to deploy on a tomcat instance. If tomcat runs on a single high end server machine (with multi CPU), I am wondering which approach would scale better: 1) launch tomcat once with the 6 web applications (the regular way) 2) create two server.xml files (one server.xml including 3 web apps, and another one containing the remaining 3), and start two tomcat instances (running on different port obviously) on the same machine. 3) Follow approach 2 except that each tomcat instance contains all 6 web apps (and some load balancer is put in front). In short, I am wondering if having multiple tomcat processes running on a multi CPU box would scale better than having a single tomcat process dealing with everything. Is there a way to tune up the number or tomcat processes from server.xml or elsewhere? I could not find anything related to the number of processes to spawn at all. In some app server, it is possible to create several process for the same application. Is there anything similar in Tomcat? Best regards, Iannis - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat processes
Howdy, You will need to be a bit more specific regarding what the definition of number of processes. I assume you mean concurrent user requests. If that's the case, check the documentation for minProcessors, maxProcessors, and acceptCount at: http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/http11.html You will also want to take a look at the Coyote HTTP connector information in the 4.1.x release notes and docs. 4.1.x is not a production release yet, but it's been in beta for a while and getting pretty close. And needless to say, your hardware and JVM have a lot to do with this. ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Amit Lonkar [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 14, 2002 2:27 AM To: [EMAIL PROTECTED] Subject: Tomcat processes Hi is it possible to increases the number of processes tomcat can handle. If yes the How? Thanks Amit Lonkar ___ _ Want to sell your car? advertise on Yahoo Autos Classifieds. It's Free!! visit http://in.autos.yahoo.com -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat processes stay alive after shutdown
Does your program use threads? Does it have connections to other machines via jdbc/etc? These can keep the process alive until they are closed properly. - Toni -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
AW: Actually RE: Tomcat processes... (to Christoph Rooms)
Which jdk 1.3 do you use, Sun or IBM ? Sun's jdk tends to use much more memory than the IBM jdk. (At least that's our experience) -Ursprngliche Nachricht- Von: Christoph Rooms [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 24. Januar 2001 23:55 An: [EMAIL PROTECTED] Betreff: RE: Actually RE: Tomcat processes... (to Christoph Rooms) snip/ I am using 3.2.1 ... using jdk 1.3. Strange ... but how is it possible that I'm getting 140MB and another user only 10 ? snip/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Actually RE: Tomcat processes... (to Christoph Rooms)
If you're talking about java processes it's really just one process and what you're seeing are actually threads. It's normal. Michael Wentzel wrote: I'm running Tomcat on linux. From the moment I start up Tomcat, I see 51 processes and these processes takes up 142 MB of memory. Is this normal ? Doesn't sound right to me. Can you send a copy or the long output of ps? As well as a description of your configuration(OS, tomcat standalone vs tomcat/apache, webapp configuration, etc...). PS - Changed subject of thread to more appropriate subject. --- Michael Wentzel Software Developer A HREF="http://www.aswethink.com"Software As We Think/A A HREF="mailto:[EMAIL PROTECTED]"Michael Wentzel/A - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Actually RE: Tomcat processes... (to Christoph Rooms)
But is it normal that it takes 140 MB of RAM ? (I know that I only have to count 1 process) I have a provider that wanted to support servlets using tomcat. But it seems I managed to bring down his machine that was online for more then 200 days. What's the best way to avoid this ? greetz, Christoph -Original Message- From: tlittle [mailto:tlittle]On Behalf Of Trevor Little Sent: woensdag 24 januari 2001 22:37 To: [EMAIL PROTECTED] Subject: Re: Actually RE: Tomcat processes... (to Christoph Rooms) If you're talking about java processes it's really just one process and what you're seeing are actually threads. It's normal. Michael Wentzel wrote: I'm running Tomcat on linux. From the moment I start up Tomcat, I see 51 processes and these processes takes up 142 MB of memory. Is this normal ? Doesn't sound right to me. Can you send a copy or the long output of ps? As well as a description of your configuration(OS, tomcat standalone vs tomcat/apache, webapp configuration, etc...). PS - Changed subject of thread to more appropriate subject. --- Michael Wentzel Software Developer A HREF="http://www.aswethink.com"Software As We Think/A A HREF="mailto:[EMAIL PROTECTED]"Michael Wentzel/A - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Actually RE: Tomcat processes... (to Christoph Rooms)
Hi, How do I use these parameters ? Can you give more info on it ? An example ? thanks ! Christoph -Original Message- From: CPC Livelink Admin [mailto:[EMAIL PROTECTED]] Sent: woensdag 24 januari 2001 22:57 To: [EMAIL PROTECTED] Subject: RE: Actually RE: Tomcat processes... (to Christoph Rooms) I don't suppose your setup is using the parameters which set initial heap size on the java command line are they. My installs run 10% of the size you are quoting when run out of the box. Regards, Paul -Original Message- From: Christoph Rooms [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 24, 2001 4:57 PM To: [EMAIL PROTECTED] Subject: RE: Actually RE: Tomcat processes... (to Christoph Rooms) But is it normal that it takes 140 MB of RAM ? (I know that I only have to count 1 process) I have a provider that wanted to support servlets using tomcat. But it seems I managed to bring down his machine that was online for more then 200 days. What's the best way to avoid this ? greetz, Christoph -Original Message- From: tlittle [mailto:tlittle]On Behalf Of Trevor Little Sent: woensdag 24 januari 2001 22:37 To: [EMAIL PROTECTED] Subject: Re: Actually RE: Tomcat processes... (to Christoph Rooms) If you're talking about java processes it's really just one process and what you're seeing are actually threads. It's normal. Michael Wentzel wrote: I'm running Tomcat on linux. From the moment I start up Tomcat, I see 51 processes and these processes takes up 142 MB of memory. Is this normal ? Doesn't sound right to me. Can you send a copy or the long output of ps? As well as a description of your configuration(OS, tomcat standalone vs tomcat/apache, webapp configuration, etc...). PS - Changed subject of thread to more appropriate subject. --- Michael Wentzel Software Developer A HREF="http://www.aswethink.com"Software As We Think/A A HREF="mailto:[EMAIL PROTECTED]"Michael Wentzel/A - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Actually RE: Tomcat processes... (to Christoph Rooms)
Hi, I am using 3.2.1 ... using jdk 1.3. Strange ... but how is it possible that I'm getting 140MB and another user only 10 ? I don't understand ... Christoph -Original Message- From: Steve Ruby [mailto:[EMAIL PROTECTED]] Sent: woensdag 24 januari 2001 23:40 To: [EMAIL PROTECTED] Subject: Re: Actually RE: Tomcat processes... (to Christoph Rooms) Christoph Rooms wrote: Hi, So I putted -Xmx24m in after the java command in tomcat.sh What I see he now uses 50M. Anybody knows why ? greetz, Christoph You can only configure the heap size for java, you can't limit the total memory requirements of the JVM... Limiting the heap should catch any run-away servlets that might take too much memory, or even tomcat in the even of a leak. What version of tomcat are you using? I started up tomcat 4.0 under linux with -Xmx24m and hit a couple of servlets and I'm at 40meg VSZ and 14 RSZ (using green threads). - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: tomcat processes
The Linux ps command mis-reports threads as processes. http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg00639.html http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg00583.html *** REPLY SEPARATOR *** On 12/26/2000 at 8:41 PM Eli Sherman wrote: Hi, I'm using Tomcat 3.2-b7 on Linux and I noticed that when I start tomcat it opens a lot of processes, all of theme running org.apache.tomcat.startup.Tomcat. Why there are so many processes (in my case about 50)? how this processes can be controlled? Thanks.
RE: tomcat processes
archives and google will be of great help. Shuklix -Original Message- From: Eli Sherman [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 27, 2000 12:12 AM To: '[EMAIL PROTECTED]' Subject: tomcat processes Hi, I'm using Tomcat 3.2-b7 on Linux and I noticed that when I start tomcat it opens a lot of processes, all of theme running org.apache.tomcat.startup.Tomcat. Why there are so many processes (in my case about 50)? how this processes can be controlled? Thanks.