Gilli Julien wrote:
>
> On Sunday 24 June 2001 19:59, you wrote:
> > "Charles Williams (CEO)" wrote:
> > > hey,
> > >
> > > I just noticed that there are over 20 instances of java running when i do
> > > a ps call. How can I cut that down?
> >
> > Those are threads.
>
> I thought that ps is aimed at displaying process state (see man ps).
Yes. Linux does not make a distinction between 'process' and 'thread'
the way other OS's do.
>
> > Linux, right?
>
> Why do you think that the computer used is running Linux ?
>
Because under linux, ps shows threads.
In the case of the orignal poster, assuming he only started Tomcat,
there aren't 20 JVMs. There are 20 native threads running in the JVM.
You can verify this by noting with a 'ps alx' that the PPID will be the
same for all but one, which will have that value for it's PID. That is
the original process that spawned the other threads.
geir
--
Geir Magnusson Jr. [EMAIL PROTECTED]
System and Software Consulting
Developing for the web? See http://jakarta.apache.org/velocity/
You have a genius for suggesting things I've come a cropper with!