[Laszlo-dev] building from source: java.lang.OutOfMemoryError
Lou Iorio
lou at louiorio.com
Tue Dec 30 13:18:40 PST 2008
I have this in my .profile:
JAVA_OPTS="-Xmx1000m"
export JAVA_OPTS
because I have 2G of RAM (on both my MacBook and MacBook Pro,
both running OSX 10.5.6).
I remember reading somewhere that you should set max memory to
somewhere near half of your available RAM. Any higher would be bad.
Sorry, I don't remember why, but I think this was on the Apache site for
Tomcat.
As to http://wiki.openlaszlo.org/SubversionBuildInstructions,
I'm sure it could stand some improvement, but I don't know enough
about all the supported operating systems to fix it.
Lou
On Dec 30, 2008, at 5:01 PM, P T Withington wrote:
> Santa must have thought you were on the 'good list' :P I'm
> jealous. You might want to check out:
>
> http://svn.openlaszlo.org/sandbox/ptw/
>
> For useful things. Especially in .openlaszlorc.
>
> We don't automatically set LPS_HOME, because you might have several
> playpens you are working in. At least I find that useful. See my
> alias set-lps which I execute in my playpen root. If you start a
> build without LPS_HOME set, it will tell you what to set it to.
>
> As to memory, I get by with:
>
> export JAVA_OPTS=-ea -Xmx384m
>
> (You _do_ have to say export to have it take in sub-shells. You
> don't need the -ea, I just use that for debugging.)
>
> On 2008-12-30, at 14:45EST, Sarah Allen wrote:
>
>> Hi all,
>>
>> I decided to try building trunk from source on my super cool
>> MacBook Pro that I have at home running OSX 10.5.6 -- I followed
>> all of the instructions on http://wiki.openlaszlo.org/SubversionBuildInstructions
>>
>> Everything seemed to go well except that $LPS_HOME wasn't
>> automatically defined by the script, but I guessed it should be ~/
>> src/svn/openlaszlo/trunk
>>
>> Then when I did ant build, I the OutOfMemoryError below. I tried
>> making my java memory really big:
>> JAVA_OPTS="-Xms1024m -Xmx3072m"with no luck.
>>
>> Any ideas?
>>
>> Thanks,
>> Sarah
>>
>> ------------------------------------------------
>> Here's the complete text of the error:
>>
>> lzl: [echo] Compiling /Users/sarah/src/svn/openlaszlo/trunk/lps/
>> includes/lfc/LFC9-debug.swc [java] Executing compiler: (cd /tmp/
>> lzswf9/lzgen33805; /Users/sarah/src/svn/openlaszlo/trunk/WEB-INF/
>> bin/compc -load-config=/Users/sarah/src/svn/openlaszlo/trunk/WEB-
>> INF/frameworks/flex-config.xml -compiler.show-actionscript-
>> warnings=false -compiler.source-path+=/tmp/lzswf9/lzgen33805 -
>> debug=true -compiler.headless-server=true -compiler.fonts.advanced-
>> anti-aliasing=true -output /tmp/lzswf9/lzgen33805/app.swc -include-
>> classes \$lzsc\$runtime LzDebugConsole LzBootstrapDebugConsole
>> LzBootstrapDebugLogger LzBootstrapDebugService LzBootstrapMessage
>> LzFormatter LzDebugMessage LzMessage LzSourceMessage LzWarning
>> LzError LzInfo LzDebug LzDebugService LzAS3DebugService
>> LzFlashRemoteDebugConsole LzDebuggerWindowConsoleBridge LzBacktrace
>> LzDeclaredEventClass LzValueExpr LzInitExpr LzOnceExpr
>> LzConstraintExpr LzAlwaysExpr LzStyleExpr LzStyleAttr LzStyleIdent
>> LzInheritedHash LzCache LzEventable LzStyleAttrBinder
>> PresentationType GenericPresentationType BooleanPresentationType
>> NumberPresentationType ColorPresentationType
>> ExpressionPresentationType SizePresentationType LzNode \$lzc\
>> $class_userClassPlacement LzDelegate LzEvent LzLibraryCleanup
>> LFCApplication LzIdleKernel LzSprite LzTextSprite LzInputTextSprite
>> LzFontManager LzTimeKernelClass LzLibrary LzXMLParser
>> LzXMLTranslator LzHTTPLoader LzMouseKernel LzBrowserKernel
>> LzKeyboardKernelClass LzScreenKernel LzContextMenuKernel
>> LzContextMenuItemKernel LzAudioKernel LzAsset
>> DojoExternalInterfaceClass LzView LzText LzInputText LzViewLinkage
>> LzCanvas LzScript LzAnimatorGroup LzAnimator LzLayout LzFont
>> LzSelectionManager LzDataSelectionManager LzCommand LzState
>> LzDataNodeMixin LzDataNode LzDataElementMixin LzDataElement
>> LzDataText LzDataRequest LzDataProvider LzHTTPDataRequest
>> LzHTTPDataProvider LzDataset __LzHttpDatasetPoolClass LzDatapointer
>> LzParam LzParsedPath AnonDatasetGenerator LzDatapath
>> LzReplicationManager LzRefNode LzDataAttrBind
>> LzLazyReplicationManager LzResizeReplicationManager
>> LzColorUtilsWrapperClass LzColorUtils LzUtilsClass
>> LzInstantiatorService LzGlobalMouseService LzBrowserService
>> LzContextMenu LzContextMenuItem LzModeManagerService
>> LzCursorService LzURL LzKeysService LzAudioService LzHistoryService
>> LzTrackService LzIdleService LzCSSStyleRule LzCSSStyleClass
>> LzCSSStyleDeclaration LzStyleSheet LzCSSStyleSheet LzFocusService
>> LzTimerService \$lzsc\$mixin\$LzDataNodeMixin\$LzNode \$lzsc\$mixin\
>> $LzFormatter\$LzBootstrapDebugService \$lzsc\$mixin\
>> $LzDataElementMixin\$LzDataNodeMixin\$LzNode \$lzsc\$mixin\
>> $LzDataNodeMixin\$LzDataNode \$lzsc\$mixin\$LzDataElementMixin\
>> $LzDataNodeMixin\$LzDataNode \$lzsc\$mixin\$LzFormatter\$LzView
>> LzCSSStyle \$dhtml canvas \$swf7 \$swf8 _ LzDeclaredEvent \$svg
>> LzKeyboardKernel global LzTimeKernel __ES3Globals \
>> $reportUndefinedMethod \$reportNotFunction LzUtils \$profile \
>> $runtime \$swf10 __LzDebug \$reportSourceWarning Debug \$debug __ \
>> $j2me \$as3 \$js1 \$modules \$as2 ___ globalValue \
>> $reportUndefinedVariable DojoExternalInterface LzHttpDatasetPool \
>> $swf9 \$reportUndefinedProperty lz LzResourceLibrary \
>> $reportUndefinedObjectProperty _Copyright) [java] compiler
>> output is Loading configuration file /Users/sarah/src/svn/
>> openlaszlo/trunk/WEB-INF/frameworks/flex-config.xml [java] Stray
>> error string from external compiler: [java] compiler
>> output: [java] Loading configuration file /Users/sarah/src/svn/
>> openlaszlo/trunk/WEB-INF/frameworks/flex-config.xml [java] SEVERE
>> ERROR: Error: Java heap space [java] SEVERE ERROR:
>> java.lang.OutOfMemoryError: Java heap space [java] FAIL:
>> compiler returned 1 [java] Done executing compiler [java]
>> Intermediate file /tmp/lzswf9/lzgen33805/app.swc: does not
>> exist [java] Exception compiling scriptfile:
>> org.openlaszlo.sc.CompilerError: SEVERE ERROR: Error: Java heap
>> space [java] SEVERE ERROR: java.lang.OutOfMemoryError: Java
>> heap space [java] org.openlaszlo.sc.CompilerException:
>> org.openlaszlo.sc.CompilerError: SEVERE ERROR: Error: Java heap
>> space [java] SEVERE ERROR: java.lang.OutOfMemoryError: Java
>> heap space [java] at
>> org.openlaszlo.sc.Compiler.compile(Compiler.java:401) [java]
>> at org.openlaszlo.sc.lzsc.compile(lzsc.java:110) [java] at
>> org.openlaszlo.sc.lzsc.compile(lzsc.java:325) [java] at
>> org.openlaszlo.sc.Main.main(Main.java:10) [java] Compilation
>> aborted.BUILD FAILED/Users/sarah/src/svn/openlaszlo/trunk/build.xml:
>> 608: The following error occurred while executing this line:/Users/
>> sarah/src/svn/openlaszlo/trunk/WEB-INF/lps/lfc/build.xml:132: The
>> following error occurred while executing this line:/Users/sarah/src/
>> svn/openlaszlo/trunk/WEB-INF/lps/lfc/build.xml:84: Java returned: 1
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-dev/attachments/20081230/6faa45c3/attachment-0001.html
More information about the Laszlo-dev
mailing list