Monthly Archives: February 2012

How do I get rid of ‘java.lang.OutOfMemoryError: PermGen space’?

You can tune MaxPermSize/PermSize parameters and set it above the default value e.g. add -XX:MaxPermSize=96m to JAVA_OPTS variable in ~/appservers/apache-tomcat/conf/ file (~/appservers/jboss/bin/ in case of JBoss). PermSize is addition to the heap so the total reserved memory will increase. Alternatively … Continue reading

Posted in Java | Leave a comment

How to run PHP applications in Tomcat 7 with PHP-Java bridge?

Sometimes Java hosting clients need ability to combine their Java code with PHP code. This is sometimes done by leaving PHP code in a directory under Apache Document Root (e.g. ~/public_html/drupal) and excluding requests to it from being passed to … Continue reading

Posted in Java, Tomcat | Leave a comment