check your Connectors:
are you using the tomcatThreadPool executor?
<Executor name="tomcatThreadPool" namePrefix="catalina-exec-"
maxThreads="150" minSpareThreads="4"/>
<Connector executor="tomcatThreadPool" port="tomcatThreadPoolPort"
....
/>
or are you using the NIOConnector?
<Connector port="NIConnectorPort"
useSendfile="true"
useExecutor="true"
acceptorThreadCount="1"
pollerThreadCount="1"
pollerThreadPriority="java.lang.Thread#NORM_PRIORITY"
selectorTimeout="1000"
useComet="true"
prcessCache="200"
socket.directBuffer="false"
socket.rxBufSize="25188"
socket.txBufSize="43800"
socket.appReadBufSize="8192"
socket.appWriteBufSize="8192"
socket.bufferPool="500"
socket.bufferPoolSize="100000000"
socket.processorCache="500"
socket.keyCache="500"
socket.eventCache="500"
socket.tcpNoDelay="false"
socket.soKeepAlive="true"
socket.soTimeout="5000"
protocol="org.apache.coyote.http11.Http11NioProtocol"
maxThreads="150"
connectionTimeout="60000"
redirectPort="8443" />
?
Martin
______________________________________________
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relates to the official business
of Sender. This transmission is of a confidential nature and Sender does not
endorse distribution to any party other than intended recipient. Sender does
not necessarily endorse content contained within this transmission.
> Date: Thu, 5 Mar 2009 00:52:34 +0300
> From: [email protected]
> To: [email protected]
> Subject: Too many threads
>
> Hi.
>
> After daemon starting parenting process creayes too many threads. I
> would like to know if they are useful and if not how to lessen their
> number.
>
> $ pstree -p -a tomcat
> java,10869 -server -Xms128M
> -Xmx256M-Djava.util.logging.manager=org.apache.juli.Cl
> |-{java},10877
> |-{java},10883
> |-{java},10884
> |-{java},10885
> |-{java},10886
> |-{java},10887
> |-{java},10888
> |-{java},10889
> |-{java},10890
> |-{java},10898
> |-{java},10899
> |-{java},10900
> |-{java},10918
> |-{java},10919
> |-{java},10920
> |-{java},10921
> |-{java},10922
> |-{java},11909
> |-{java},11928
> |-{java},7641
> |-{java},10067
> |-{java},10069
> |-{java},10828
> |-{java},28452
> |-{java},28453
> |-{java},28454
> `-{java},8381
>
> $ ps axuwww
>
> 79130 10869 0.0 0.6 610632 105532 pts/5 Sl Mar03 1:37
> /opt/sun-jdk-1.6.0.06/bin/java -server -Xms128M -Xmx256M
> -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
> -Djava.util.logging.config.file=/home/tomcat/http//conf/logging.properties
> -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
> -Djava.util.logging.config.file=/home/tomcat/http//conf/logging.properties
> -classpath
> /home/tomcat/http/lib/:/home/tomcat/http//lib:/opt/sun-jdk-1.6.0.06/lib/tools.jar:/home/tomcat/http//bin/bootstrap.jar:/home/tomcat/http//bin/tomcat-juli.jar:/home/tomcat/http//lib:/opt/sun-jdk-1.6.0.06/lib/tools.jar:/home/tomcat/http//bin/bootstrap.jar:/home/tomcat/http//bin/tomcat-juli.jar
> -Dcatalina.base=/home/tomcat/http/ -Dcatalina.home=/home/tomcat/http/
> -Djava.io.tmpdir=/home/tomcat/http//temp
> org.apache.catalina.startup.Bootstrap start
>
> My server.xml
> <?xml version='1.0' encoding='utf-8'?>
>
> <Server port="50002" shutdown="50002">
> <Listener className="org.apache.catalina.core.AprLifecycleListener"
> SSLEngine="off" />
> <Listener
> className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
> <GlobalNamingResources>
> <Resource name="UserDatabase" auth="Container"
> type="org.apache.catalina.UserDatabase"
> description="User database that can be updated and saved"
>
> factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
> pathname="conf/tomcat-users.xml" />
> </GlobalNamingResources>
> <Service name="Catalina">
> <Connector address="123.123.123.123" port="50002" protocol="HTTP/1.1"
> connectionTimeout="20000" maxThreads="10"
> minSpareThreads="2" maxSpareThreads="5" />
> <Engine name="Catalina" defaultHost="localhost">
> <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
> resourceName="UserDatabase"/>
> <Host name="localhost" appBase="/home/tomcat/http/webapps"
> unpackWARs="true" autoDeploy="true"
> xmlValidation="false" xmlNamespaceAware="false">
> </Host>
> </Engine>
> </Service>
> </Server>
>
>
> --
> BRGDS. Alexey Vlasov.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
_________________________________________________________________
Windows Live⢠Groups: Create an online spot for your favorite groups to meet.
http://windowslive.com/online/groups?ocid=TXT_TAGLM_WL_groups_032009