Debian 5 Lenny Sun Java JDK / JRE on VPS install problem solved
After upgrading my VPS from Debian 4 (Etch) to Debain 5 (Lenny) I revisited an old problem I had to solve while trying to install the Sun Java virtual machine from the standard Debian package sun-java6-jdk. It's described in my old blog entry. The problem was the postinstall routine optimizes the performance with active class data sharing and tries to dynamically calculate the amount of main memory available for sharing. This calculation fails on some virtual servers.
Now the new postinstall routine under
/var/lib/dpkg/info/sun-java6-bin.postinst
from the sun-java6-jdk does not try to be so smart:
$basedir/bin/java -client -Xshare:dump -Xmx256m -XX:PermSize=128m
So if the installation fails, do the following:
- before installing / upgrading Sun java, stop all memory intensive daemons (ps aux |grep -i java)
- especially stop all Java processes like Tomcat
- retry to install
If it fails again
- reduce to e.g. -Xmx128m and -XX:PermSize=64m
- try to reconfigure the package
If it fails again
- comment out the whole block beginning with: # activate class data sharing
- try to reconfigure the package
And if all this fails switch to PHP or upgrade your virtual server hosting contract to the next one with more main memory.
Since the parallels / virtuozzo virtualization gives you some extra ram memory if other clients don't use it, installation may succeed or fail on different times, depending on the memory usage and number of other virtual machines on the same node.

Hi ,
My Problem is that I am using grails Weceem CMS Plugin .
I want to combine Jsecurity plugin with this weceem cms plugin.
how to do it ?
Please help me to find the solution.
Regards
DINESH T
Gesendet von Sigma Infosolutions am August 04, 2010 at 05:16 PM CEST #
Although looking at weceem CMS for a website of mine is on my todo list I'm afraid I cannot help you with integrating JSecurity plugin due to lack of experience with both.
Gesendet von Frerk am August 28, 2010 at 05:57 PM CEST #