tomcat6 and java-1.7.0-openjdk.x86_64 eats all cpu

Danik

Active Member
Jan 13, 2012
38
1
28
have installed centos 64 standart openvz container
installed tomcat6 and java-1.7.0-openjdk.x86_64

service tomcat6 start
eats 100% cpu with java process

is there any solution?
 
assign two cpu´s to the container and test again.
 
have already tried 1,2,4,8 cpus with the same result

also have tried using cpumask with no luck
 
Try with another java version and check tomcat log. Tomcat6 is power hungry, especially when combined with wrong java version or when loading a misconfigured application.
 
have tried the same configuration in vmware and it works ok
on slower hardware with idle cpu

I have provided i7 8 cores with 10gb of ram
and it just loads all cpu
 
If it works with the same configuration in Vmware, it's hard to tell. Maybe you can try to install CentOS on KVM instead of using a container and see if it keeps eating all CPU.
 
it is iside openvz container I have installed it inside kvm just to test
and yes after kernel update to 2.6.32-19-pve it works ok

so the problem was in kernel
thanks
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!