I not shure which problem you have :

- Why do I have so many processes
  (You havn't, that are threads, search google or the archives on that one)

- Why does the process take this amount of memory
  Depens on several factors. (Memory setting of the vm, amount of 
  servlets, jsp's, number of features you use in tomcat, current
  number of active sessions, ....)

- How can I give the process more memory
  Set the option in the environment variable CATALINA_OPTS or JAVA_OPTS
  befor starting tomcat.

> -----Original Message-----
> From: software [mailto:[EMAIL PROTECTED]
> Sent: Friday, February 27, 2004 5:36 PM
> To: [EMAIL PROTECTED]
> Subject: Help tomcat problem with memory
> Importance: High
> 
> 
> Hi i have installed apache 13.24 with 2 tomcats 4.0.3 with 
> loadbalancer 
> is woring fine but the problem when  i'm using the ps -ef | 
> grep java  
> command  i've saw many java process  justa like these:
> 21430 root      15   0  139M 139M 49444 S     0.0 13.8   0:00 java
> 21431 root      15   0  139M 139M 49444 S     0.0 13.8   0:00 java
> 21443 root      15   0  139M 139M 49444 S     0.0 13.8   0:07 java
> 21444 root      20   0  139M 139M 49444 S     0.0 13.8   0:00 java
> 21445 root      20   0  139M 139M 49444 S     0.0 13.8   0:00 java
> 21446 root      15   0  139M 139M 49444 S     0.0 13.8   0:06 java
> 21454 root      15   0  139M 139M 49444 S     0.0 13.8   0:00 java
> 21457 root      15   0  139M 139M 49444 S     0.0 13.8   0:00 java
> 21458 root      15   0  139M 139M 49444 S     0.0 13.8   0:00 java
> 21460 root      15   0  139M 139M 49444 S     0.0 13.8   0:00 java
> 21462 root      15   0  139M 139M 49444 S     0.0 13.8   0:00 java
> 21464 root      15   0  139M 139M 49444 S     0.0 13.8   0:00 java
> 21466 root      15   0  139M 139M 49444 S     0.0 13.8   0:00 java
> 21468 root      16   0  139M 139M 49444 S     0.0 13.8   0:04 java
> 21469 root      15   0  139M 139M 49444 S     0.0 13.8   0:03 java
> 
> looking the internet, the solution is use the -Xmx , -Xms and use the 
> className="org.apache.tomcat.service.PoolTcpConnector"   and 
> i'm working 
> with Ajp13
> 
> <!-- A pooled AJPV12 Connector for out-of-process operation --> 
> <Connector className="org.apache.tomcat.service.PoolTcpConnector">
> <Parameter name="handler" 
> value="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"/>
> <Parameter name="port" value="8007"/>
> <Parameter name="max_threads" value="30"/>
> <Parameter name="max_spare_threads" value="20"/>
> <Parameter name="min_spare_threads" value="5" />
> </Connector>
> 
> Thanks
> Fabian
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to