Try something like -green (as opposed to -native) as the first command
line argument. This is how it works on the bd jdk 1.17 at least. If not,
have a look at the $JAVA_HOME/bin/java wrapper, it should have details in
there, and probably a way to change the default threading model.
Like you, the process lists used to annoy me, but after getting over the
initial emotional trauma (!), they became easy to live with. The process
lists on some of my boxes are so large anyway that I use 'ps ax|grep
<whatever>' to find processes regardless.
Kevin
On Tue, 17 Apr 2001, Georges Boutros wrote:
> 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. -------------------------------------
>