Announcement Announcement Module
Collapse
No announcement yet.
vfabric server 2.6.1 crashes periodically, shows java.lang.outofmemory error. Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • vfabric server 2.6.1 crashes periodically, shows java.lang.outofmemory error.

    Hii to all, I am new to spring framework this is my first project on spring. I am using STS 2.8.1 with above mentioned Vfabric which is inbuilt. Now the problem occurs when ever I make changes in my Controller class the server reloads the application, now all this done successfully for several times, but then if fails and error is java.lang.outofmemory error:
    I searched over the internet and find some solutions increasing size of PermGen space and I did it in my setenv.sh.
    JAVA_HOME="/usr/java/jdk1.7.0_10/jre"
    AGENT_PATHS=""
    JAVA_AGENTS=""
    JAVA_LIBRARY_PATH=""
    CLASSPATH="$CATALINA_BASE/bin/insight-bootstrap-tcserver-1.5.1.SR2.jar:$CATALINA_BASE/lib/aspectjweaver-1.6.11.SR1.jar"
    JVM_OPTS="-Xmx1000M -Xss192K -Dinsight.base=$CATALINA_BASE/insight -Dinsight.logs=$CATALINA_BASE/logs -Djava.awt.headless=true -Dgemfire.disableShutdownHook=true -Dgemfire.ignoreMisses=true -XX:MaxPermSize=512m -XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled"
    JAVA_OPTS="$JVM_OPTS $AGENT_PATHS $JAVA_AGENTS $JAVA_LIBRARY_PATH"
    Now still I get this error .
    Another thing is I have kept my application-context.xml, persistence.xml, servlet-context.xml and other properties file under the META-INF folder still I have to provide an import of application-context.xml inside servlet-context.xml. Without doing this my persistence-unit is not created it says beandefination not found.
Working...
X