According to this, the default for setting memory is bytes; I'm
pretty sure you want to change
--JvmMs 512 --JvmMx 1024
to
--JvmMs 512m --JvmMx 1024m
This will depend on how much memory your machine has. On my 2G
Macbook, I have this in
my .profile:
JAVA_OPTS="-Xmx1000m"
export JAVA_OPTS
On Jan 6, 2008, at 10:03 PM, Sarah Allen wrote:
restarting tomcat didn't help
Henry Minsky wrote:
Did you kill and restart your tomcat server? Just
undeploy/redeploying too many times without resrarting tomcat will
eventually
run out of memory.
I have this in my bash init (.bash_profile)
export JAVA_OPTS="-Xmx500m"
That gets picked up by the Tomcat startup scripts, and give me 500
mB of heap.
On Jan 6, 2008 8:24 PM, Sarah Allen <[EMAIL PROTECTED]> wrote:
I just sync'd with trunk and got the following error when I tried to
compile an lzx file. I don't know why the Max memory is 493.06
MB. I
started tomcat with --JvmMs 512 --JvmMx 1024, but it didn't seem
to make
a difference
2008-01-06 17:16:21 StandardContext[/trunk]LPS: LPS_HOME is
C:\laszlo\src\svn\openlaszlo\trunk
2008-01-06 17:16:21 StandardContext[/trunk]LPS: LPS config
directory is:
C:\laszlo\src\svn\openlaszlo\trunk\WEB-INF\lps\config
2008-01-06 17:16:22 StandardContext[/trunk]LPS: Detailed LPS log
is at
C:/laszlo/src/svn/openlaszlo/trunk/WEB-INF/lps/work/logs/lps.log
2008-01-06 17:16:22 StandardContext[/trunk]LPS: LPS log
configured with
C:\laszlo\src\svn\openlaszlo\trunk\WEB-INF\lps\config\lps.xml
2008-01-06 17:16:22 StandardContext[/trunk]LPS:
------------------------------------
2008-01-06 17:16:22 StandardContext[/trunk]LPS: Laszlo Presentation
Server, 4.1.x, initialized
2008-01-06 17:16:22 StandardContext[/trunk]LPS: Running in
context:Apache Tomcat/5.0.30
2008-01-06 17:16:22 StandardContext[/trunk]LPS: Build: 7745
C:\laszlo\src\svn\openlaszlo\trunk
2008-01-06 17:16:22 StandardContext[/trunk]LPS: Built on:
2008-01-06T10:39:16-0800
2008-01-06 17:16:22 StandardContext[/trunk]LPS: Running against
JRE 1.5.0_13
2008-01-06 17:16:22 StandardContext[/trunk]LPS: Running with Java
CLASSPATH: C:\java\jdk1.5.0_13\lib\tools.jar;C:\tomcat5\bin
\bootstrap.jar
2008-01-06 17:16:22 StandardContext[/trunk]LPS: Running on
Windows XP 5.1
2008-01-06 17:16:22 StandardContext[/trunk]LPS: Running as user
SYSTEM
2008-01-06 17:16:22 StandardContext[/trunk]LPS: Max memory:
493.06 MB
2008-01-06 17:16:22 StandardContext[/trunk]LPS: Total memory:
59.5 MB
2008-01-06 17:16:22 StandardContext[/trunk]LPS: Available memory:
30.41 MB
2008-01-06 17:16:22 StandardContext[/trunk]LPS: throwable: null
2008-01-06 17:16:22 StandardContext[/trunk]LPS:
javax.servlet.ServletException
at org.openlaszlo.servlets.LZServlet.getResponder
(LZServlet.java:496)
at org.openlaszlo.servlets.LZServlet.initLPS(LZServlet.java:260)
at org.openlaszlo.servlets.LZServlet.doGet(LZServlet.java:345)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke
(StandardWrapperValve.java:214)
at
org.apache.catalina.core.StandardValveContext.invokeNext
(StandardValveContext.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:520)