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:
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.