Thanks for reply!
Got it! To show all threads, type H in top in Linux. Then we see that java
is multi-threaded, and uses all CPUs.
But still, Tomcat and java seems to be the bottleneck in our system. I tried
to make java use more memory, but with no luck.
I tried with:
in /usr/bin/dtomcat4:
  CATALINA_OPTS="-Xmx300M -Xms100M $CATALINA_OPTS $JPDA_OPTS"
But this made no difference to the memory consumption or the performance.
When starting Tomcat, it uses less than 100M. MySQL uses only a fraction of
CPU compared with java, and there are several SQL queries in every page of
the web publishing system.
Is there any way to increase the preformance of Tomcat and java without
tuning the application (=the Java Server Pages)?

Thanks.
Jens Ove

----- Original Message -----
From: "Frode E. Moe" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>; "Jens Ove
Lillegraven" <[EMAIL PROTECTED]>
Sent: Thursday, November 13, 2003 3:27 PM
Subject: Re: How to tune Tomcat and Java?


> On Thu, Nov 13, 2003 at 15:17:53 +0100, Jens Ove Lillegraven wrote:
> > As you see, there's only one Java service on CPU 0, and MySQL is running
on both CPUs.
> > Any explanation for this?
>
> Apparently RedHat Linux 8.0 and above only shows the main thread by
> default.
>
> See
http://www.redhat.com/docs/manuals/linux/RHL-8.0-Manual/release-notes/x86/
>
> If you use "ps -m", all threads should be displayed.
>
> (I'm currently on a Debian machine, so I can't confirm if this works)
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to