Re: WO and Memory Management
Re: WO and Memory Management
- Subject: Re: WO and Memory Management
- From: Chuck Hill <email@hidden>
- Date: Thu, 13 Jul 2006 18:53:07 -0700
On Jul 13, 2006, at 6:15 PM, Owen McKerrow wrote:
Hi All,
We are setting up an application of ours on a clients server, they
did some stress testing to see if they needed a bigger box and
discovered something strange.
Their comments ....
The webobjects versions have been stress tested further, we are
getting ok
results but far worse then I was hoping. RIS Public faired worse
the RIS
with it starting to get error with only 5 simultaneous users
making simple
request 5 seconds apart (running with 2 instances each with -mx512M.
That is odd. Are you dispatching requests concurrently?
A major point of interest is that garbage collection does not
appear to be
active for these instances.
Check for I/O and DB usage. How long does the average request take
to process?
We ran the tests yesterday and the started to
consume over 500M per instance (2 instance running for RIS and
RISPublic).
This morning after no activity all night the process are still
using the
full memory set. To me this is a bit of a concern, can you guys
check your
side to see if it the same there, or if there is some
configuration options
that can be put in place to improve this?
The strange thing here is that the instances don't seem to be
releasing memory. Is this normal ? Is there a setting I need to
tweak somewhere in JavaMonitor ?
This is normal for the JVM on OS X. Once the JVM has allocated
memory, it does not return it to the OS until it terminates. You can
have the instances restart more often to return this memory to the
OS. 500M seems like a lot, but that depends on what the app is doing.
And while we are talking abou memory, can someone refresh my memory
( no pun intended ), but its better to explicitly call System.gc()
in WO App's. Whats the rule of thumb here in terms of how often, is
there a better spot than others etc etc ?
It is only ever a hint, never a demand. I have resorted to this
infrequently.
Chuck
--
Coming sometime... - an introduction to web applications using
WebObjects and Xcode http://www.global-village.net/wointro
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems. http://www.global-village.net/products/practical_webobjects
_______________________________________________
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