Date: Wed, 30 Aug 2006 12:53:46 -0400
From: Marc Respass <email@hidden>
Subject: out of memory (wo 5.3)
To: WebObjects-Dev Apple <email@hidden>
Message-ID: <email@hidden>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
Hi All,
I'm getting out of memory exceptions in my app. I do need to go
through it and see if there is anything I can do to manage memory
better, but until then, I tried increasing the memory of the JVM. I
did it by adding
-Xmx256M -Xms128m to the Additional Arguments section of the apps
configuration in Monitor. When I check the running processes using
ps axwww | grep Xmx
I see my app but it has two occurrences as you can see below.
java -XX:NewSize=2m -Xmx64m -Xms32m -DWORootDirectory=/System -
DWOLocalRootDirectory= -DWOUserDirectory=/System/Library/WebObjects/
JavaApplications/wotaskd.woa -DWOEnvClassPath= -
DWOApplicationClass=gov.maine.oit.BailMonitor.Application -
DWOPlatform=MacOS -Dcom.webobjects.pid=9181 -
DNSDebugLevel=NSLog.DebugLevelCritical -Xmx256M -Xms128m
I'm questioning which of those is taken. I would think that the
arguments are checked as they are encountered and that the last one
is the one used but I don't know any way to be sure.
Can anyone confirm that the Additional Arguments section in Monitor
is the right place to put that and that it is the last argument that
takes effect?
Thanks
Marc