tomcat 6 mysql openvz

Support for webhosts that use CentOS

tomcat 6 mysql openvz

Postby krzysztof86 » 2012/03/11 15:02:36

Hello.
I have problem with setting up tomcat6 in centos 5 system. My vps have 256 mb memory guaranted, and 512mb burst.
Tomcat running in multiple processes, and much memory consuming. here print screen:
[img]http://s10.postimage.org/r34m20oqh/tomcat618procesow.jpg[/img]
here my setenv.sh settings:

#small-ish
JAVA_OPTS="-Xms4m -Xmx6m -Djava.awt.headless=true"
#debug
#JAVA_OPTS="-Xms16m -XX:MaxPermSize=456m -Xmx764m -Dmail.host=localhost -Djava.awt.headless=true -Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n "
#bigish vm
#JAVA_OPTS="-Xms16m -XX:MaxPermSize=456m -Xmx764m -Djava.awt.headless=true "

How to make that only one proces running, and decrease memory usage. because i want to have mysql with innodb running too on this vps. and this time when i run both there no memory. Sorry for my bad english.
Best regards
Krzysztof
krzysztof86
 
Posts: 1
Joined: 2012/03/11 14:48:15

tomcat 6 mysql openvz

Postby pschaff » 2012/03/11 17:18:44

Welcome to the CentOS fora. Please see the recommended reading for new users linked in my signature.

I believe that the number of threads is set by maxThreads, but note that reducing it will cause additional connection requests to be refused. You are running with very limited memory by today's standards.

For OpenVZ you should also read:
Other Voices
When CentOS Is Not CentOS
Broken Virtual Server
pschaff
Retired Moderator
 
Posts: 18277
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America


Return to CentOS 5 - Webhosting Support

Who is online

Users browsing this forum: No registered users and 0 guests