[Building Sakai] [oae-dev] java heap space

Steve Swinsburg steve.swinsburg at gmail.com
Tue Mar 27 21:24:23 PDT 2012


Hi,

You are posting to the wrong mailing list, please use sakai-dev for Sakai CLE related questions.

To answer, you need to increase the memory available via the JAVA_OPTS environment variable. Here's ine:

JAVA_OPTS=" -server -XX:+UseParallelGC -Xmx1024m -XX:PermSize=512m -XX:MaxPermSize=512m -Djava.awt.headless=true -Dorg.apache.jasper.compiler.Parser.STRICT_QUOTE_ESCAPING=false -Dsun.lang.ClassLoader.allowArraySyntax=true -Dhttp.agent=Sakai"

cheers,
Steve

On 28/03/2012, at 3:20 PM, YUECHUAN DAI wrote:

> When I install sakai 2.8 on my Mac os 10.7.3, I got following error message:
> 
> [INFO] Compiling 4 source files to /Users/daiyuechuan/Downloads/sakai-src-2.8.1/site-manage/site-manage-tool/tool/target/classes
> Exception in thread "Poller SunPKCS11-Darwin" java.lang.OutOfMemoryError: Java heap space
> 	at sun.security.pkcs11.wrapper.PKCS11.C_GetSlotInfo(Native Method)
> 	at sun.security.pkcs11.SunPKCS11.initToken(SunPKCS11.java:767)
> 	at sun.security.pkcs11.SunPKCS11.access$100(SunPKCS11.java:42)
> 	at sun.security.pkcs11.SunPKCS11$TokenPoller.run(SunPKCS11.java:700)
> 	at java.lang.Thread.run(Thread.java:680)
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Fatal error compiling
> 
> Embedded error: Error while executing the compiler.
> Java heap space
> 
> 
> Here is my  "mvn --version":
> 
> Apache Maven 2.2.1 (r801777; 2009-08-07 03:16:01+0800)
> Java version: 1.6.0_29
> Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
> Default locale: zh_CN, platform encoding: EUC_CN
> OS name: "mac os x" version: "10.7.3" arch: "x86_64" Family: "mac"
> 
> Here is my .bash_profile 
> 
> export JAVA_HOME=/Library/Java/Home
> export PATH=$PATH:$JAVA_HOME/bin/
> export M2_HOME=/usr/share/java/apache-maven-2.2.1
> export PATH=$M2_HOME/bin:$PATH
> export CATALINA_HOME=/usr/local/tomcat
> export PATH=$PATH:$CATALINA_HOME/bin
> export MAVEN_OPTS='-Xms1024m -Xmx2048m -XX:PermSize=512m -XX:MaxPermSize=1024m'
> 
> Is anyone have any idea what the problem might be?
> _______________________________________________
> oae-dev mailing list
> oae-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/oae-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20120328/039c59b0/attachment.html 


More information about the sakai-dev mailing list