<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I have this in my .profile:<div><br></div><div><div>JAVA_OPTS="-Xmx1000m"</div><div>export JAVA_OPTS</div><div><br></div><div>because I have 2G of RAM (on both my MacBook and MacBook Pro, </div><div>both running OSX 10.5.6).</div><div><br></div><div>I remember reading somewhere that you should set max memory to </div><div>somewhere near half of your available RAM. Any higher would be bad. </div><div>Sorry, I don't remember why, but I think this was on the Apache site for</div><div>Tomcat.</div><div><br></div><div>As to <a href="http://wiki.openlaszlo.org/SubversionBuildInstructions">http://wiki.openlaszlo.org/SubversionBuildInstructions,</a></div><div>I'm sure it could stand some improvement, but I don't know enough</div><div>about all the supported operating systems to fix it.</div><div><br></div><div>Lou</div><div><br></div><div><div>On Dec 30, 2008, at 5:01 PM, P T Withington wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Santa must have thought you were on the 'good list' :P I'm jealous. You might want to check out:<br><br><a href="http://svn.openlaszlo.org/sandbox/ptw/">http://svn.openlaszlo.org/sandbox/ptw/</a><br><br>For useful things. Especially in .openlaszlorc.<br><br>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.<br><br>As to memory, I get by with:<br><br>export JAVA_OPTS=-ea -Xmx384m<br><br>(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.)<br><br>On 2008-12-30, at 14:45EST, Sarah Allen wrote:<br><br><blockquote type="cite">Hi all,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">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<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">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<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Then when I did ant build, I the OutOfMemoryError below. I tried making my java memory really big:<br></blockquote><blockquote type="cite">JAVA_OPTS="-Xms1024m -Xmx3072m"with no luck.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Any ideas?<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Thanks,<br></blockquote><blockquote type="cite">Sarah<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">------------------------------------------------<br></blockquote><blockquote type="cite">Here's the complete text of the error:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">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] <span class="Apple-tab-span" style="white-space:pre">        </span>at org.openlaszlo.sc.Compiler.compile(Compiler.java:401) [java] <span class="Apple-tab-span" style="white-space:pre">        </span>at org.openlaszlo.sc.lzsc.compile(lzsc.java:110) [java] <span class="Apple-tab-span" style="white-space:pre">        </span>at org.openlaszlo.sc.lzsc.compile(lzsc.java:325) [java] <span class="Apple-tab-span" style="white-space:pre">        </span>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<br></blockquote><br></div></blockquote></div><br></div></body></html>