Tomcat 5.5-7 hangs on proxmox's pve kernel

ArtemZ

New Member
May 23, 2012
12
0
1
Hello,
I recently discovered that apache tomcat (all actual versions) hangs on 2.6.32-pve kernel when running in openvz container. It works normally with usual openvz kernel.

There is it's log:
Code:
[root@test logs]# cat catalina.out 
May 21, 2012 8:17:34 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64/server:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
May 21, 2012 8:17:34 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
May 21, 2012 8:17:34 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
May 21, 2012 8:17:34 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 803 ms
May 21, 2012 8:17:34 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
May 21, 2012 8:17:34 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.27
May 21, 2012 8:17:34 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /root/apache-tomcat-7.0.27/webapps/manager
[I](here it stops bootstrapping and hangs)[/I]
[root@test logs]#

Where to look to get it solved?
 
Looks like I fixed it by installing 2.6.32-5-openvz-amd64 kernel from debian on host.
 
Assign more than one CPU to your container.
 
Hi Tom

thanks this has work for us.

Any pointer on why having a second cpu make tomcat hapier ?

Regards, Guillaume