You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Vincent Lambert <v....@eurelis.com> on 2002/03/22 18:25:07 UTC

RE : many java processes

I am running Tomcat 4.0.3 with j2sdk1.4.0, Apache 1.3 with a webapp
connector on a Cobalt Raq4 server (kernel 2.2.16C28_III).
I don't understand there is so many java processes (more than 130).
There is 8 sites that include a web application.

Here is parts of my configuration files :

<Server port="8005" shutdown="SHUTDOWN" debug="0">
  <Service name="Tomcat-Apache">
    <Connector
className="org.apache.catalina.connector.warp.WarpConnector"
     port="8008" minProcessors="5" maxProcessors="10"
     enableLookups="true" appBase="webapps"
     acceptCount="10" debug="debug"/>
    <Engine className="org.apache.catalina.connector.warp.WarpEngine"
     name="Apache" debug="0">
      <Logger className="org.apache.catalina.logger.FileLogger"
              prefix="apache_log." suffix=".log"
              timestamp="true"/>
      <Realm className="org.apache.catalina.realm.MemoryRealm" />
      <Host name="www.site1.com">
            <Context path=""
	             docBase="/home/sites/www.site1.com/web" />
	    <Logger className="org.apache.catalina.logger.FileLogger"
	            prefix="site1.com." suffix=".log"
		    timestamp="true" />
      </Host>
      <Host name="www.site2.com">
            <Context path=""
	             docBase="/home/sites/www.site2.com/web" />
	    <Logger className="org.apache.catalina.logger.FileLogger"
	            prefix="site2.com." suffix=".log"
		    timestamp="true" />
      </Host>
      <Host name="www.site3.com">
            <Context path=""
	             docBase="/home/sites/www.site3.com/web" />
	    <Logger className="org.apache.catalina.logger.FileLogger"
	            prefix="site3.com." suffix=".log"
		    timestamp="true" />
      </Host>
      <Host name="www.site4.com">
            <Context path=""
	             docBase="/home/sites/www.site4.com/web" />
	    <Logger className="org.apache.catalina.logger.FileLogger"
	            prefix="site4.com." suffix=".log"
		    timestamp="true" />
      </Host>
      <Host name="www.site5.com">
            <Context path=""
	             docBase="/home/sites/www.site5.com/web" />
	    <Logger className="org.apache.catalina.logger.FileLogger"
	            prefix="site5.com." suffix=".log"
		    timestamp="true" />
      </Host>
      <Host name="www.site6.com">
            <Context path=""
	             docBase="/home/sites/www.site6.com/web" />
	    <Logger className="org.apache.catalina.logger.FileLogger"
	            prefix="site6.com." suffix=".log"
		    timestamp="true" />
      </Host>      <Host name="www.site7.com">
            <Context path=""
	             docBase="/home/sites/www.site7.com/web" />
	    <Logger className="org.apache.catalina.logger.FileLogger"
	            prefix="site7.com." suffix=".log"
		    timestamp="true" />
      </Host>
      <Host name="www.site8.com">
            <Context path=""
	             docBase="/home/sites/www.site8.com/web" />
	    <Logger className="org.apache.catalina.logger.FileLogger"
	            prefix="site8.com." suffix=".log"
		    timestamp="true" />
      </Host>
    </Engine>
  </Service>
</Server>


Thanks for helping

Regards
Vince

-----Message d'origine-----
De : Dean Hiller [mailto:dhiller@avaya.com] 
Envoye : jeudi 21 mars 2002 15:38
A : tomcat-user@jakarta.apache.org
Objet : many java processes


On linux did anybody ever get a linux patch for fixing the problem of
one process per java thread.  I read on the sun bug parade they were
going to port to a new threading model but we needed to update the linux
threading????  I have seen many e-mails complaining about how tomcat
creates soooo many processes and this is due to a JVM thing not tomcat.
Does anybody know or is everyone just sitting by with many many java
processes on their linux? Any help, pointers you could give me would be
great, thanks, Dean


--
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 : RE : many java processes

Posted by Vincent Lambert <v....@eurelis.com>.
I know that but my question is why do i have so many thread.
I set up my configuration with 10 maxProcessor so I should have 10 java
threads.

-----Message d'origine-----
De : Gregor Kovae [mailto:gregor.kovac@mikropis.si] 
Envoye : vendredi 22 mars 2002 19:00
A : Tomcat Users List
Objet : RE : many java processes


Hi!

I think that this is because threads are represented like processes
under 
Linux.

Best regards,
         Kovi

At 18:25 22.3.2002 +0100, you wrote:
>I am running Tomcat 4.0.3 with j2sdk1.4.0, Apache 1.3 with a webapp 
>connector on a Cobalt Raq4 server (kernel 2.2.16C28_III). I don't 
>understand there is so many java processes (more than 130). There is 8 
>sites that include a web application.
>
>Here is parts of my configuration files :
>
><Server port="8005" shutdown="SHUTDOWN" debug="0">
>   <Service name="Tomcat-Apache">
>     <Connector 
>className="org.apache.catalina.connector.warp.WarpConnector"
>      port="8008" minProcessors="5" maxProcessors="10"
>      enableLookups="true" appBase="webapps"
>      acceptCount="10" debug="debug"/>
>     <Engine className="org.apache.catalina.connector.warp.WarpEngine"
>      name="Apache" debug="0">
>       <Logger className="org.apache.catalina.logger.FileLogger"
>               prefix="apache_log." suffix=".log"
>               timestamp="true"/>
>       <Realm className="org.apache.catalina.realm.MemoryRealm" />
>       <Host name="www.site1.com">
>             <Context path=""
>                      docBase="/home/sites/www.site1.com/web" />
>             <Logger className="org.apache.catalina.logger.FileLogger"
>                     prefix="site1.com." suffix=".log"
>                     timestamp="true" />
>       </Host>
>       <Host name="www.site2.com">
>             <Context path=""
>                      docBase="/home/sites/www.site2.com/web" />
>             <Logger className="org.apache.catalina.logger.FileLogger"
>                     prefix="site2.com." suffix=".log"
>                     timestamp="true" />
>       </Host>
>       <Host name="www.site3.com">
>             <Context path=""
>                      docBase="/home/sites/www.site3.com/web" />
>             <Logger className="org.apache.catalina.logger.FileLogger"
>                     prefix="site3.com." suffix=".log"
>                     timestamp="true" />
>       </Host>
>       <Host name="www.site4.com">
>             <Context path=""
>                      docBase="/home/sites/www.site4.com/web" />
>             <Logger className="org.apache.catalina.logger.FileLogger"
>                     prefix="site4.com." suffix=".log"
>                     timestamp="true" />
>       </Host>
>       <Host name="www.site5.com">
>             <Context path=""
>                      docBase="/home/sites/www.site5.com/web" />
>             <Logger className="org.apache.catalina.logger.FileLogger"
>                     prefix="site5.com." suffix=".log"
>                     timestamp="true" />
>       </Host>
>       <Host name="www.site6.com">
>             <Context path=""
>                      docBase="/home/sites/www.site6.com/web" />
>             <Logger className="org.apache.catalina.logger.FileLogger"
>                     prefix="site6.com." suffix=".log"
>                     timestamp="true" />
>       </Host>      <Host name="www.site7.com">
>             <Context path=""
>                      docBase="/home/sites/www.site7.com/web" />
>             <Logger className="org.apache.catalina.logger.FileLogger"
>                     prefix="site7.com." suffix=".log"
>                     timestamp="true" />
>       </Host>
>       <Host name="www.site8.com">
>             <Context path=""
>                      docBase="/home/sites/www.site8.com/web" />
>             <Logger className="org.apache.catalina.logger.FileLogger"
>                     prefix="site8.com." suffix=".log"
>                     timestamp="true" />
>       </Host>
>     </Engine>
>   </Service>
></Server>
>
>
>Thanks for helping
>
>Regards
>Vince
>
>-----Message d'origine-----
>De : Dean Hiller [mailto:dhiller@avaya.com]
>Envoye : jeudi 21 mars 2002 15:38
>A : tomcat-user@jakarta.apache.org
>Objet : many java processes
>
>
>On linux did anybody ever get a linux patch for fixing the problem of 
>one process per java thread.  I read on the sun bug parade they were 
>going to port to a new threading model but we needed to update the 
>linux threading????  I have seen many e-mails complaining about how 
>tomcat creates soooo many processes and this is due to a JVM thing not 
>tomcat. Does anybody know or is everyone just sitting by with many many

>java processes on their linux? Any help, pointers you could give me 
>would be great, thanks, Dean
>
>
>--
>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 : many java processes

Posted by Gregor Kovaè <gr...@mikropis.si>.
Hi!

I think that this is because threads are represented like processes under 
Linux.

Best regards,
         Kovi

At 18:25 22.3.2002 +0100, you wrote:
>I am running Tomcat 4.0.3 with j2sdk1.4.0, Apache 1.3 with a webapp
>connector on a Cobalt Raq4 server (kernel 2.2.16C28_III).
>I don't understand there is so many java processes (more than 130).
>There is 8 sites that include a web application.
>
>Here is parts of my configuration files :
>
><Server port="8005" shutdown="SHUTDOWN" debug="0">
>   <Service name="Tomcat-Apache">
>     <Connector
>className="org.apache.catalina.connector.warp.WarpConnector"
>      port="8008" minProcessors="5" maxProcessors="10"
>      enableLookups="true" appBase="webapps"
>      acceptCount="10" debug="debug"/>
>     <Engine className="org.apache.catalina.connector.warp.WarpEngine"
>      name="Apache" debug="0">
>       <Logger className="org.apache.catalina.logger.FileLogger"
>               prefix="apache_log." suffix=".log"
>               timestamp="true"/>
>       <Realm className="org.apache.catalina.realm.MemoryRealm" />
>       <Host name="www.site1.com">
>             <Context path=""
>                      docBase="/home/sites/www.site1.com/web" />
>             <Logger className="org.apache.catalina.logger.FileLogger"
>                     prefix="site1.com." suffix=".log"
>                     timestamp="true" />
>       </Host>
>       <Host name="www.site2.com">
>             <Context path=""
>                      docBase="/home/sites/www.site2.com/web" />
>             <Logger className="org.apache.catalina.logger.FileLogger"
>                     prefix="site2.com." suffix=".log"
>                     timestamp="true" />
>       </Host>
>       <Host name="www.site3.com">
>             <Context path=""
>                      docBase="/home/sites/www.site3.com/web" />
>             <Logger className="org.apache.catalina.logger.FileLogger"
>                     prefix="site3.com." suffix=".log"
>                     timestamp="true" />
>       </Host>
>       <Host name="www.site4.com">
>             <Context path=""
>                      docBase="/home/sites/www.site4.com/web" />
>             <Logger className="org.apache.catalina.logger.FileLogger"
>                     prefix="site4.com." suffix=".log"
>                     timestamp="true" />
>       </Host>
>       <Host name="www.site5.com">
>             <Context path=""
>                      docBase="/home/sites/www.site5.com/web" />
>             <Logger className="org.apache.catalina.logger.FileLogger"
>                     prefix="site5.com." suffix=".log"
>                     timestamp="true" />
>       </Host>
>       <Host name="www.site6.com">
>             <Context path=""
>                      docBase="/home/sites/www.site6.com/web" />
>             <Logger className="org.apache.catalina.logger.FileLogger"
>                     prefix="site6.com." suffix=".log"
>                     timestamp="true" />
>       </Host>      <Host name="www.site7.com">
>             <Context path=""
>                      docBase="/home/sites/www.site7.com/web" />
>             <Logger className="org.apache.catalina.logger.FileLogger"
>                     prefix="site7.com." suffix=".log"
>                     timestamp="true" />
>       </Host>
>       <Host name="www.site8.com">
>             <Context path=""
>                      docBase="/home/sites/www.site8.com/web" />
>             <Logger className="org.apache.catalina.logger.FileLogger"
>                     prefix="site8.com." suffix=".log"
>                     timestamp="true" />
>       </Host>
>     </Engine>
>   </Service>
></Server>
>
>
>Thanks for helping
>
>Regards
>Vince
>
>-----Message d'origine-----
>De : Dean Hiller [mailto:dhiller@avaya.com]
>Envoye : jeudi 21 mars 2002 15:38
>A : tomcat-user@jakarta.apache.org
>Objet : many java processes
>
>
>On linux did anybody ever get a linux patch for fixing the problem of
>one process per java thread.  I read on the sun bug parade they were
>going to port to a new threading model but we needed to update the linux
>threading????  I have seen many e-mails complaining about how tomcat
>creates soooo many processes and this is due to a JVM thing not tomcat.
>Does anybody know or is everyone just sitting by with many many java
>processes on their linux? Any help, pointers you could give me would be
>great, thanks, Dean
>
>
>--
>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>