tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anthony J. Biacco" <>
Subject RE: jsvc degrades performance in production
Date Thu, 26 Feb 2009 16:04:31 GMT
In my experience using jsvc with a non-root user, you can't provide the -server argument. I
tried it, because I too also thought I was running -clients, and even though it doesn't say
it (unless you turn on debugging to see the actual processed startup switches), jsvc will
use the server jvm (if it finds it, that is), by default.
I forget what the debug switches are for this though, sorry.

Manager, IT Operations
Format Dynamics, Inc.

-----Original Message-----
From: Peter Stavrinides [] 
Sent: Thursday, February 26, 2009 2:53 AM
To: Tomcat Users List
Subject: Re: jsvc degrades performance in production


I have read about similar issues in some old posts, and it appears to be related to the compilation
of jsvc, you need to make sure it points to your JDK. Check what parameters you use when building
jsvc. What version of Java are you using? its also possible that its picking up a jvm that
does not support the -server argument. You can configure it with ./configure -java=/path/to/jdk/

good luck,

----- Original Message -----
From: "Leon Rosenberg" <>
To: "Tomcat Users List" <>
Sent: Thursday, 26 February, 2009 10:20:10 GMT +02:00 Athens, Beirut, Bucharest, Istanbul
Subject: Re: jsvc degrades performance in production

just a question, if you are behind a loadbalancer, why wouldn't your
just run it as non-root user on a non-privelleged port without jsvc?


On Thu, Feb 26, 2009 at 3:31 AM, B.V. Prasad <> wrote:
> I am running Tomcat 6 on a group of Linux servers behind a loadbalancer. This setup was
working fine when I ran Tomcat as root. However, when I moved to jsvc, the production servers
started to become unavailable within a couple of hours, serving thousands of requests. I had
to restart them to be online again, only to get into the same issue in a couple of hours.
When switched back to run as root, things were fine again. I could find no errors in any logs.
> I found that jsvc uses client JVM (the servers are server-class VMWare servers) by default.
I am suspecting when I ran as root (, Tomcat used server JVM that gave better performance,
while jsvc performed worse with client JVM, causing my maxThreads (150) to exhaust, acceptCount
(100) to fill up and making tomcat to deny requests. I am guessing if I make jsvc to use server
JVM, my problem will go away. I appreciate if someone can validate this theory or offer other
clues before I try this in production. Of course, I shall also try a stress test case.
> Thanks,
> BV Prasad

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message