Re: 501 user for wo apps?
Re: 501 user for wo apps?
- Subject: Re: 501 user for wo apps?
- From: Pascal Robert <email@hidden>
- Date: Tue, 12 Apr 2011 14:13:31 -0400
Le 2011-04-12 à 13:56, Jesse Tayler a écrit :
>
> what should I set my memory to in Javamonitor then? something very low?
Well, it depends if you actually need to start your app with 128 MB of RAM :-) Maybe you could start it with only the maximum setting (-Xmx256m) while not setting the minimum so that your instances use 32 MB to start with.
But I strongly suggest that you monitor your RAM usage or else you might have problems with both of your instances are reaching 256 MB. Adding a swap space would help in those cases, but even there if your swap usage goes over 50%.
And I suggest that you restart your apps every day, because at the OS level, even if your apps get garbage collected, the RAM usage at the OS level will not go down. For example, if your app is reaching near 256 MB of RAM because of a "big" request, and 10 minutes later the GC does its job and clear up 50 MB of heap space, your app will still use 256 MB at the OS level.
The secret? Monitoring!
> Or do you suggest something with the Java VM? I don't understand?
>
> On Apr 12, 2011, at 1:41 PM, Pascal Robert wrote:
>
>> Java memory settings reminds me of the "good old" Mac OS 9 days where we had to adjust manually how much RAM each app would use.
>
> ya, I know -- but I guess it makes server reliability easier...
>
> iPhone iOS just kills your app if it takes too much memory.
>
>
_______________________________________________
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