• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: out of memory (wo 5.3)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: out of memory (wo 5.3)


  • Subject: Re: out of memory (wo 5.3)
  • From: Thomas Pelaia II <email@hidden>
  • Date: Wed, 30 Aug 2006 13:10:03 -0400

Marc,

If you display dynamic images (e.g. from generated from a database) then I would recommend looking there for the source of the memory leak. Under certain circumstances the resource manager fails to free up the resources. I no longer use WOImage and WOActiveImage. Instead I created a custom image element starting from code someone on this site donated. That fixed the memory leak for my application.

-tom




On Aug 30, 2006, at 1:00 PM, email@hidden wrote:


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

_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Prev by Date: Re: Restore and Save Session
  • Next by Date: Re: Wonder Ajax Application Example
  • Previous by thread: Re: out of memory (wo 5.3)
  • Next by thread: Javascript in a framework
  • Index(es):
    • Date
    • Thread