Tomcat OutOfMemory after switching JVM

Posted by Mathias on Server Fault See other posts from Server Fault or by Mathias
Published on 2012-10-09T22:42:17Z Indexed on 2012/11/01 11:03 UTC
Read the original article Hit count: 264

Filed under:
|
|
|
|

I have a Tomcat6 server running on Debian squeeze there are 4 webapps running on it, and an in-JVM ActiveMQ server.

It has been running for about a year with the same memorysettings, with openjdk-6. Everything has worked dandy, no issues at all.

Now, for various reasons, i need to try out Sun's JDK.

So, I installed sun's jvm with standard apt-get

apt-get install sun-java6-bin , and switched using

update-java-alternatives -s java-6-sun

However, when i start tomcat, i get outofmemory, the server won't even start! If i switch back to openJDK, all works fine again.

I haven't had any memory issues on this server before, so it feels strange that the server suddenly won't start with sun's JDK.

Anybody have any clue as to why this might happen? Have i missed something?

I naturally have set heap sizes etc. in tomcat. Currently running with:

-Xms256m -Xmx1024m

Which as mentioned works in openSDK, outofmemory in sun-jdk...

EDIT: server is 64-bit, openJDK and Sun are 1.6.0, both 64-bit JVMs.

© Server Fault or respective owner

Related posts about tomcat

Related posts about java