Or you can do try thing also.

open the file  $Tomcat_home/bin/tomcat.sh

in there look for the word native , if there is any such thing change it to
green.(this is assuming that your tomcat start script specifies that it is
using native threads)

in the tomcat.sh file, the command line which runs tomcat looks something
like this.

$JAVACMD  -native -Xms64M -Xmx128M $TOMCAT_OPTS -Dtomcat.home=${TOMCAT_HOME}
org.apache.tomcat.startup.Tomcat "$@" &

or

make it $JAVACMD  -green -Xms64M -Xmx128M
$TOMCAT_OPTS -Dtomcat.home=${TOMCAT_HOME}  org.apache.tomcat.startup.Tomcat
"$@" &

to use the green threads.

However too many java process should not be an issue to worry about, coz' in
green threads
all those processes are shown as a part of one process. Infact your
performance might deteriorate because of use of green threads. You can check
out the performance using
green threads and native threads and then decide if to use green or native
threads.

Shuklix



-----Original Message-----
From: Wolle [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 23, 2001 5:00 PM
To: [EMAIL PROTECTED]
Subject: Re: to many tomcat processes!! AAH!!


Hei,
i use JDK 1.3

Saurabh Shukla wrote:

> which JDK are you using ?
>
> Shuklix
>
> -----Original Message-----
> From: Georges Boutros [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 18, 2001 1:34 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: to many tomcat processes!! AAH!!
>
> does anyone know how can i force java to use green threads?
>
> thanks
>
> -----Original Message-----
> From: Ansgar W. Konermann [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 12, 2001 8:31 PM
> To: [EMAIL PROTECTED]
> Subject: Re: to many tomcat processes!! AAH!!
>
> Hi,
>
> maybe the many processes are because jdk1.2 and up use native threads
> (AFAIK, 1.1 used "green" threads, i. e. a threading package implemented
> in java itself).
>
> With 1.2+, every java thread is a native OS thread and therefor gets
> listed by ps. Have you tried forcing java to use green threads? I'm
> quite sure that it is possible (RTFM).
>
> --
> Best regards,
>
> Ansgar W. Konermann
> eMail: [EMAIL PROTECTED]
>
> --- Hello, I am a message footer. -------------------------------------

--
__
Gruss,
Wolle

-------------------------------------------------------
                      [EMAIL PROTECTED]


Reply via email to