Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: out of memory (wo 5.3)



The second one should win, though you can print Runtime.getRuntime ().maxMemory() in your app startup to be sure. You can also edit your woa startup script and remove the first -Xmx (which is probably where that is coming from).

ms

On Aug 30, 2006, at 12:53 PM, Marc Respass wrote:

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
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/mschrag% 40mdimension.com


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/email@hidden

This email sent to email@hidden
References: 
 >out of memory (wo 5.3) (From: Marc Respass <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.