Java VM RAM Problem on vServer
Posted: Thu Feb 28, 2008 7:47 am
Hello,
I installed the Scalix Server in a VMware on my local machine with a CentOS5 image, limited to ~300 and everything worked great.
I thus assumed I would have no trouble running Scalix on my vServer with guaranteed 384MB RAM.
Unfortunately, it is not that easy… Apparently when scalix-tomcat starts, the JAVA VM tries to reserve a LOT of memory (my tech support told me I could be more than 700MB) but as the vServer does not have any swap file the memory limitation kicks in and the Java VM quits.
The Xmem Parameters seem to have no affect while creating the VM…
Used RAM with everything running except the Tomcat Server is ~128MB, so there should be enough RAM left during normal operation.
As I see it, there are three ways to solve this:
1.) Is there any way to limit the Java VM during initialisation? If so, that would be the best solution
2.) As mentioned, I have a working Scalix Installation on my local machine. Could I somehow reconfigure that Tomcat Server to connect to my vServer? I don’t really need the webmail interface, but the SAC Configuration would be nice.
3.) Is there any way to configure Scalix from the CLI? This would obviously be not as comfortable, but I could live with it.
Any help and ideas are greatly appreciated.
Thanks in advance,
gerbi
I installed the Scalix Server in a VMware on my local machine with a CentOS5 image, limited to ~300 and everything worked great.
I thus assumed I would have no trouble running Scalix on my vServer with guaranteed 384MB RAM.
Unfortunately, it is not that easy… Apparently when scalix-tomcat starts, the JAVA VM tries to reserve a LOT of memory (my tech support told me I could be more than 700MB) but as the vServer does not have any swap file the memory limitation kicks in and the Java VM quits.
The Xmem Parameters seem to have no affect while creating the VM…
Used RAM with everything running except the Tomcat Server is ~128MB, so there should be enough RAM left during normal operation.
As I see it, there are three ways to solve this:
1.) Is there any way to limit the Java VM during initialisation? If so, that would be the best solution
2.) As mentioned, I have a working Scalix Installation on my local machine. Could I somehow reconfigure that Tomcat Server to connect to my vServer? I don’t really need the webmail interface, but the SAC Configuration would be nice.
3.) Is there any way to configure Scalix from the CLI? This would obviously be not as comfortable, but I could live with it.
Any help and ideas are greatly appreciated.
Thanks in advance,
gerbi