The Java Heap problem has raised it's head again with Orbeon. It occurs
with the July 30 09 nightly build if that makes a difference. I'm also writing FB forms and data to eXist 1.3 not the embedded eXist. Is it in catalina.sh that I make the change or some other place? Also, I know the form is something like -xms256m -xmx512m but I'm not sure how to add that to the $JavaOPTS??????? Thanks, Randy -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Just add those to the JAVA_OPTS in the catalina.sh. There should be
something like this: JAVA_OPTS="$JAVA_OPTS - Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager" and you should change it to this: JAVA_OPTS="$JAVA_OPTS - Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager - Xms512m -Xmx512m" - Kalle On 11.8.2009, at 1.58, Randy Smith wrote: > The Java Heap problem has raised it's head again with Orbeon. It > occurs with the July 30 09 nightly build if that makes a difference. > I'm also writing FB forms and data to eXist 1.3 not the embedded > eXist. Is it in catalina.sh that I make the change or some other > place? Also, I know the form is something like -xms256m -xmx512m > but I'm not sure how to add that to the $JavaOPTS??????? > Thanks, > Randy > > > -- > You receive this message as a subscriber of the [hidden email] > mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
In reply to this post by Randy Smith-9
To be more sure you can put it in catalina.sh, yes. Try:
JAVA_OPTS="-Xms256m -Xmx512m -XX:MaxPermSize=128m" export JAVA_OPTS -Erik On Mon, Aug 10, 2009 at 3:58 PM, Randy Smith<[hidden email]> wrote: > The Java Heap problem has raised it's head again with Orbeon. It occurs with > the July 30 09 nightly build if that makes a difference. I'm also writing FB > forms and data to eXist 1.3 not the embedded eXist. Is it in catalina.sh > that I make the change or some other place? Also, I know the form is > something like -xms256m -xmx512m but I'm not sure how to add that to the > $JavaOPTS??????? > Thanks, > Randy > > > > -- > You receive this message as a subscriber of the [hidden email] mailing > list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws > > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
In reply to this post by Kalle Säilä
Originally it was this:
# Set juli LogManager if it is present
if [ -r "$CATALINA_HOME"/bin/tomcat-juli.jar
]; then
JAVA_OPTS="$JAVA_OPTS
"-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager"
"-Djava.util.logging.config.file="$CATALINA_BASE/conf/logging.properties"
fi
# ----- Execute The Requested Command
-----------------------------------------
Changed it to this:
# Set juli LogManager if it is present
if [ -r "$CATALINA_HOME"/bin/tomcat-juli.jar
]; then
JAVA_OPTS="$JAVA_OPTS
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -
Xms512m -Xmx512m"
fi
# ----- Execute The Requested Command
-----------------------------------------
I'm running on a Mac. When I start exist 1.3 I do this command in
a Terminal window :
cd /Applications/eXist1.3 Then this java -Xmx1024M -Djava.endorsed.dirs=lib/endorsed -jar start.jar jetty
Then I do this to get Orbeon forms running:
cd /Applications/tomcat/apache-tomcat-5.5.25 bin/start_tomcat
This worked fine for a long time on my previous Macbook, however I do have a Macbook Pro now with 2gb memory. Same code though.
Thanks for any other thoughts. Kalle Säilä wrote: Just add those to the JAVA_OPTS in the catalina.sh. There should be something like this: -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
Randy,
If you are setting the -Xmx to some larger value (512m or 1024m) and still get an out of memory error, then I recommend you start by checking that the parameter you set was indeed understood by the VM. One way to do this is to set the same value for -Xmx and -Xms (so you'd have, say, -Xms=512m -Xmx=512m) and to add the option -verbosegc. When starting Tomcat (./catalina.sh run) you'll see in the console lines like: [GC 51192K->5487K(518464K), 0.1086032 secs] The number in parenthesis (here: 518464K) should correspond to the heap size you set (512 MB in my case). Alex |
Free forum by Nabble | Edit this page |