VMware Cloud Community
Killerpcs
Contributor
Contributor

Tomcat6 running on Win2K3 Server Virtual machine - High CPU/Memory Utilization

I have a virtual machine running Win2K3 Server, CPU and memory utilization has been extermely high when Tomcat6 is started up (running as a service). Allocated memory for the VM has been changed from 1gig, to 2 gig, to 4 gig, and processors from 1, to 2, to 4, but none of those changes have helped to speed up the startup time for Tomcat 6. After about an hour things seem to level off, with the tomcat6 exectuable showing 700-800K of memory used. Are there known issues that I may be hitting running tomcat6 as a service on a virtual 2003 server? Or do I need to do some performance tuning based on the work thats being done via tomcat6 (adaptive authentication)?

0 Kudos
3 Replies
AndreTheGiant
Immortal
Immortal

Tomcat6 require a lot of RAM.

It's a know "issue".

See, for example:

Andre

Andrew | http://about.me/amauro | http://vinfrastructure.it/ | @Andrea_Mauro
0 Kudos
LucasAlbers
Expert
Expert

Read the java best practices document.

You need to adjust a few things on a java vm, and specifically on a windows java vm you need to adjust the timer settings.

Best Practices

On linux we found drastic cpu reduction by enabling the timekeeping options for the kernel.

Killerpcs
Contributor
Contributor

Thanks for the replies, most of the slowdown was attributable to a 350 meg GeoIP database that was getting loaded. With that removed the VPC was more responsive. I have read some info that more vCPU's is not necessarily going to make the box more responsive, it may have the opposite effect as ESX has to find 4 available CPU's every time the VPC requests CPU resources, so we will try running it with 2 instead of 4 and see how it runs.

0 Kudos