cancel
Showing results for 
Search instead for 
Did you mean: 

Problem Launching Alfresco

anirelles
Champ in-the-making
Champ in-the-making
Hi,

I struggled quite a lot to succeed to compile Alfresco. I finally succeed to generate alfresco.war but when I deploy it into
tomcat I have this error :




23:57:19,100 User:System INFO  [service.descriptor.DescriptorService] Alfresco JVM - v1.6.0_06-b02; maximum heap size 448.000MB
23:57:19,100 User:System WARN  [service.descriptor.DescriptorService] Alfresco JVM - WARNING - maximum heap size 448.000MB is less than recommended 512MB



INFO: Server startup in 53137 ms
23:58:06,752  ERROR [[localhost].[/alfresco].[jsp]] Servlet.service() for servlet jsp threw exception
java.lang.OutOfMemoryError: PermGen space
   at java.lang.ClassLoader.defineClass1(Native Method)
   at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
   at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
   at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
   at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
   at java.net.URLClassLoader$1.run(URLClassLoader.java:195)

Where can I configure this maximum heap size please?

Thank you
2 REPLIES 2

anirelles
Champ in-the-making
Champ in-the-making
I solved my problem and it is working  Smiley Very Happy

I had to modify catalina.sh and replace this line :


JAVA_OPTS="$JAVA_OPTS -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager"

with this line :


JAVA_OPTS="$JAVA_OPTS -Xms256m -Xmx1024m -XX:MaxPermSize=256m -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager"

derek
Star Contributor
Star Contributor
Hi,
Since you're running 1.6, I'd recommend that you take a read of the Wiki page on JVM tuning.  Having a decent NewSize helps absorbe all those temporary objects that are created and thrown away by the bucket load.
Regards