tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Jerger <jer...@jerger.org>
Subject How to limit tomcats thread consumption?
Date Mon, 04 Apr 2011 14:43:41 GMT
Hi all,

last days I leased a virtual host at 1und1 (a german hoster). Unfortunately 
1und1 found a new, creative  way to limit the joy of using their VPH - they 
limit the number of operating-system processes to 256 processes in total.

Thats quite a huge issue, because I want to operate two virtual hosts:
             
apache-dev -- tomcat-dev -- mysql
apache-www -- tomcat-prod -- mysql

* mysql uses 50 threads in total
* apache uses 5
* tomcat_prod - 109
* tomcat_dev - 73

As u see, there is not much space left for chron jobs / ssh-shells a.s.o.

I tried to limit 
* apache Maxclients (50 in total)
* mod_jk connection_pool_size (3/40), socket_keepalive=false
* server.xml:

<Executor name="tomcatDevThreadPool" namePrefix="catalina-exec-" 
        daemon="false" maxThreads="(3/40)" maxSpareThreads="5" 
minSpareThreads="1"/>

 <Connector executor="tomcatDevThreadPool" port="8009" 
      protocol="AJP/1.3" URIEncoding="UTF-8"/>


But all of these actions result in no change - and pstree shows the same 
number of processes without any change (I use ubunut 10.4, java 1.6.0_20, 
tomcat 7.0.11).

Any idea how to cope with this silly process limit?


Kind regards,
Michael 
-- 
Informatikb├╝ro Jerger http://www.jerger.org
Zeppelinstr. 13, D-72770 Reutlingen

fon: +49-7121-578913 mob: +49-178-8189878

Mime
View raw message