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

Aaron Zeckoski azeckoski at unicon.net
Wed Mar 28 03:40:37 PDT 2012


More info on this page:
https://confluence.sakaiproject.org/pages/viewpage.action?pageId=75667810

Depending on the version of Sakai you are using, some of those OPTS
are not necessary anymore so you may want to check out the wiki here:
https://confluence.sakaiproject.org/display/BOOT/Development+Environment+Setup+Walkthrough

-AZ


On Wed, Mar 28, 2012 at 12:24 AM, Steve Swinsburg
<steve.swinsburg at gmail.com> wrote:
> 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
>
>
>
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>
> TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org
> with a subject of "unsubscribe"



-- 
Aaron Zeckoski - Software Architect - http://tinyurl.com/azprofile


More information about the sakai-dev mailing list