Re: Memory settings.

Zaphod B <[email protected]> Wed, 2 Feb 2005 02:57:31 -0800 (PST)
Newsgroups gmane.comp.web.webobjects.admin
Message-ID <[email protected]>
Oh great, thanks. Seems like having the settings in additional argument works. When launching the app, I see in the webobjects.log 3 sets of this memory settings. It seems like the first set is the default, the second is the settings in the XCode project, and the third set is the one I put in the additional argument.
 
I suppose the second one overwrites the first one, and the third one (the one I put in additional argument) overwrites the second one. Is this right?
 
Z

Denis Stanton <[email protected]> wrote:
Hi Zaphod

On 28/01/2005, at 12:33 AM, Zaphod B wrote:

> 1. At the moment, for me to change the Xmx and Xms settings, I have to 
> change that settings in the XCode project settings, and then rebuild 
> the project. So I have to rebuild everytime I want to adjust the 
> settings. Is there an easier way of doing this, without having to 
> rebuild?

Yes, there is an easier way for this part. You don't need to rebuild 
if you set the ram requirements at at runtime. In JavaMonitor 
/Applications / Config add something like the following to whatever you 
have in the Additional Arguments box:

-Xms64M -Xmx256M

Those are the numbers I use for a fairly large app. Your numbers look 
very large to me. It would be normal to run multiple instances of your 
application, but if you give each one 3GB then you will not be running 
very many in a 5GB computer :-). Does each instance really need this 
much?

Denis Stanton
[email protected]
Home: (09) 533 0391
mobile: 021 1433622

		
---------------------------------
Do you Yahoo!?
 The all-new My Yahoo! – Get yours free!