You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Martin van den Bemt <ma...@isallineed.org> on 2001/11/08 17:06:14 UTC

RE: Tomcat Apache Linux processes

One of them is the process and the rest of the 34 are threads, which under
linux show up in the process list.

Mvgr,
Martin

> -----Original Message-----
> From: Christophe Geraud [mailto:geraud@cls.fr]
> Sent: Thursday, November 08, 2001 5:07 PM
> To: tomcat mailling list
> Subject: Tomcat Apache Linux processes
>
>
> Hello,
>
> I'm using Tomcat 3.2.1 with Apache on Linux.
> When I start tomcat and Apache, I get about 35 process java (tomcat).
> How can I control the number of JVM ?
>
>
>
>
> --
> To unsubscribe:   <ma...@jakarta.apache.org>
> For additional commands: <ma...@jakarta.apache.org>
> Troubles with the list: <ma...@jakarta.apache.org>
>
>


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Re: Tomcat Apache Linux processes

Posted by Christophe Geraud <ge...@cls.fr>.
Hello,

Ok, 35 process is just in fact 35 thread (in 1 Linux process).
But ...
Where comes from the "35" ?
Is it needed to manage the process number ?

For my application, maximum 20 users at a time, I suppose 5 thread are enough.
is'n it ?


David Hamilton a écrit :

> I believe (might just be vicious rumour, however!) that the IBM VM uses its
> own threading library, and does not suffer a number of the issues that the
> Sun one has in this respect.
>
> Cheers
>     david
>
> ----- Original Message -----
> From: "David Smith" <dn...@cornell.edu>
> To: "Tomcat Users List" <to...@jakarta.apache.org>
> Sent: Thursday, November 08, 2001 5:04 PM
> Subject: Re: Tomcat Apache Linux processes
>
> If you're looking at it with ps, memory for each thread doesn't really
> increase.  More like memory for the entire tomcat process increases and it's
> reflected in the ps listing.  Notice that the memory of each thread is
> exactly the same.  All things being equal and resources properly returned to
> the JVM, memory consumption should stabilize after it services some
> requests.
>
> I agree with others that the threading model in Linux needs some serious
> help.
>
> --David Smith
>
> On Thursday 08 November 2001 11:43 am, you wrote:
> > Ok !
> > But how to manage this number of thread ?
> > How to set it ?
> >
> > Some strange thing :
> > I send a request to the servlet ... and the size of the memory of each
> > thread increase !!!
> > Why ?
> >
> > Thanks for help.
> >
> > Christophe
> >
> > Martin van den Bemt a écrit :
> > > One of them is the process and the rest of the 34 are threads, which
> > > under linux show up in the process list.
> > >
> > > Mvgr,
> > > Martin
> > >


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Re: Tomcat Apache Linux processes

Posted by David Hamilton <da...@financity.co.uk>.
I believe (might just be vicious rumour, however!) that the IBM VM uses its
own threading library, and does not suffer a number of the issues that the
Sun one has in this respect.

Cheers
    david

----- Original Message -----
From: "David Smith" <dn...@cornell.edu>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Thursday, November 08, 2001 5:04 PM
Subject: Re: Tomcat Apache Linux processes


If you're looking at it with ps, memory for each thread doesn't really
increase.  More like memory for the entire tomcat process increases and it's
reflected in the ps listing.  Notice that the memory of each thread is
exactly the same.  All things being equal and resources properly returned to
the JVM, memory consumption should stabilize after it services some
requests.

I agree with others that the threading model in Linux needs some serious
help.

--David Smith

On Thursday 08 November 2001 11:43 am, you wrote:
> Ok !
> But how to manage this number of thread ?
> How to set it ?
>
> Some strange thing :
> I send a request to the servlet ... and the size of the memory of each
> thread increase !!!
> Why ?
>
> Thanks for help.
>
> Christophe
>
> Martin van den Bemt a écrit :
> > One of them is the process and the rest of the 34 are threads, which
> > under linux show up in the process list.
> >
> > Mvgr,
> > Martin
> >
> > > -----Original Message-----
> > > From: Christophe Geraud [mailto:geraud@cls.fr]
> > > Sent: Thursday, November 08, 2001 5:07 PM
> > > To: tomcat mailling list
> > > Subject: Tomcat Apache Linux processes
> > >
> > >
> > > Hello,
> > >
> > > I'm using Tomcat 3.2.1 with Apache on Linux.
> > > When I start tomcat and Apache, I get about 35 process java (tomcat).
> > > How can I control the number of JVM ?
> > >
> > >
> > >
> > >
> > > --
> > > To unsubscribe:   <ma...@jakarta.apache.org>
> > > For additional commands: <ma...@jakarta.apache.org>
> > > Troubles with the list: <ma...@jakarta.apache.org>
> >
> > --
> > To unsubscribe:   <ma...@jakarta.apache.org>
> > For additional commands: <ma...@jakarta.apache.org>
> > Troubles with the list: <ma...@jakarta.apache.org>
>
> --
> To unsubscribe:   <ma...@jakarta.apache.org>
> For additional commands: <ma...@jakarta.apache.org>
> Troubles with the list: <ma...@jakarta.apache.org>


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>










--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Re: Tomcat Apache Linux processes

Posted by David Smith <dn...@cornell.edu>.
If you're looking at it with ps, memory for each thread doesn't really 
increase.  More like memory for the entire tomcat process increases and it's 
reflected in the ps listing.  Notice that the memory of each thread is 
exactly the same.  All things being equal and resources properly returned to 
the JVM, memory consumption should stabilize after it services some requests.

I agree with others that the threading model in Linux needs some serious help.

--David Smith

On Thursday 08 November 2001 11:43 am, you wrote:
> Ok !
> But how to manage this number of thread ?
> How to set it ?
>
> Some strange thing :
> I send a request to the servlet ... and the size of the memory of each
> thread increase !!!
> Why ?
>
> Thanks for help.
>
> Christophe
>
> Martin van den Bemt a écrit :
> > One of them is the process and the rest of the 34 are threads, which
> > under linux show up in the process list.
> >
> > Mvgr,
> > Martin
> >
> > > -----Original Message-----
> > > From: Christophe Geraud [mailto:geraud@cls.fr]
> > > Sent: Thursday, November 08, 2001 5:07 PM
> > > To: tomcat mailling list
> > > Subject: Tomcat Apache Linux processes
> > >
> > >
> > > Hello,
> > >
> > > I'm using Tomcat 3.2.1 with Apache on Linux.
> > > When I start tomcat and Apache, I get about 35 process java (tomcat).
> > > How can I control the number of JVM ?
> > >
> > >
> > >
> > >
> > > --
> > > To unsubscribe:   <ma...@jakarta.apache.org>
> > > For additional commands: <ma...@jakarta.apache.org>
> > > Troubles with the list: <ma...@jakarta.apache.org>
> >
> > --
> > To unsubscribe:   <ma...@jakarta.apache.org>
> > For additional commands: <ma...@jakarta.apache.org>
> > Troubles with the list: <ma...@jakarta.apache.org>
>
> --
> To unsubscribe:   <ma...@jakarta.apache.org>
> For additional commands: <ma...@jakarta.apache.org>
> Troubles with the list: <ma...@jakarta.apache.org>


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


RE: Tomcat Apache Linux processes

Posted by Martin van den Bemt <ma...@isallineed.org>.
The memory size is the size of the process memory and threads just inherit
that, so don't try to add them all and scare yourselve ;))
See the doc/tomcat_ug.html in your tomcat home directory (or on the jakarta
site), chapter "Use a Thread pool in your Connectors", which describes what
to do to limit the threads in detail.

Mvgr,
Martin


> -----Original Message-----
> From: Christophe Geraud [mailto:geraud@cls.fr]
> Sent: Thursday, November 08, 2001 5:43 PM
> To: Tomcat Users List; martin@isallineed.org
> Subject: Re: Tomcat Apache Linux processes
>
>
> Ok !
> But how to manage this number of thread ?
> How to set it ?
>
> Some strange thing :
> I send a request to the servlet ... and the size of the memory of
> each thread
> increase !!!
> Why ?
>
> Thanks for help.
>
> Christophe
>
> Martin van den Bemt a écrit :
>
> > One of them is the process and the rest of the 34 are threads,
> which under
> > linux show up in the process list.
> >
> > Mvgr,
> > Martin
> >
> > > -----Original Message-----
> > > From: Christophe Geraud [mailto:geraud@cls.fr]
> > > Sent: Thursday, November 08, 2001 5:07 PM
> > > To: tomcat mailling list
> > > Subject: Tomcat Apache Linux processes
> > >
> > >
> > > Hello,
> > >
> > > I'm using Tomcat 3.2.1 with Apache on Linux.
> > > When I start tomcat and Apache, I get about 35 process java (tomcat).
> > > How can I control the number of JVM ?
> > >
> > >
> > >
> > >
> > > --
> > > To unsubscribe:   <ma...@jakarta.apache.org>
> > > For additional commands: <ma...@jakarta.apache.org>
> > > Troubles with the list: <ma...@jakarta.apache.org>
> > >
> > >
> >
> > --
> > To unsubscribe:   <ma...@jakarta.apache.org>
> > For additional commands: <ma...@jakarta.apache.org>
> > Troubles with the list: <ma...@jakarta.apache.org>
>
>
> --
> To unsubscribe:   <ma...@jakarta.apache.org>
> For additional commands: <ma...@jakarta.apache.org>
> Troubles with the list: <ma...@jakarta.apache.org>
>
>


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Re: Tomcat Apache Linux processes

Posted by Christophe Geraud <ge...@cls.fr>.
Ok !
But how to manage this number of thread ?
How to set it ?

Some strange thing :
I send a request to the servlet ... and the size of the memory of each thread
increase !!!
Why ?

Thanks for help.

Christophe

Martin van den Bemt a écrit :

> One of them is the process and the rest of the 34 are threads, which under
> linux show up in the process list.
>
> Mvgr,
> Martin
>
> > -----Original Message-----
> > From: Christophe Geraud [mailto:geraud@cls.fr]
> > Sent: Thursday, November 08, 2001 5:07 PM
> > To: tomcat mailling list
> > Subject: Tomcat Apache Linux processes
> >
> >
> > Hello,
> >
> > I'm using Tomcat 3.2.1 with Apache on Linux.
> > When I start tomcat and Apache, I get about 35 process java (tomcat).
> > How can I control the number of JVM ?
> >
> >
> >
> >
> > --
> > To unsubscribe:   <ma...@jakarta.apache.org>
> > For additional commands: <ma...@jakarta.apache.org>
> > Troubles with the list: <ma...@jakarta.apache.org>
> >
> >
>
> --
> To unsubscribe:   <ma...@jakarta.apache.org>
> For additional commands: <ma...@jakarta.apache.org>
> Troubles with the list: <ma...@jakarta.apache.org>


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>