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.

-Tony
---------------------------
Manager, IT Operations
Format Dynamics, Inc.
303-573-1800x27
abia...@formatdynamics.com
http://www.formatdynamics.com

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

Hi,

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,
Peter

----- Original Message -----
From: "Leon Rosenberg" <rosenberg.l...@googlemail.com>
To: "Tomcat Users List" <users@tomcat.apache.org>
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?

regards
Leon

On Thu, Feb 26, 2009 at 3:31 AM, B.V. Prasad <hi...@yahoo.com> 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 (startup.sh), 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: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to