tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Warnier>
Subject Re: memory heap size
Date Tue, 14 Feb 2012 20:41:34 GMT
Pid * wrote:
> On 14 Feb 2012, at 17:11, Christopher Schultz
> <> wrote:
>> Hash: SHA1
>> Alfredo,
>> On 2/14/12 10:05 AM, Alfredo Alessandrini wrote:
>>> Now I've put in this settings:
>>> export JAVA_OPTS="-Xms64m -Xmx128m -XX:MaxPermSize=128m"
>> So, you have a user limit of 256MiB and you have your heap set to
>> 128MiB and your max perm gen set to 128MiB. What about thread stacks?
>> What about native stack and heap?
>> There's a lot to a Java process besides what -Xmx can limit.
>> Also, if your *user* is limited to 256MiB then you also have to think
>> about all the other things you are going to want to run -- like
>> /bin/sh, /bin/ls, etc. that also take a bit of memory. You're going to
>> need to start up a JVM in order to shut-down Tomcat if you want to use
>> bin/ (there are other ways to shut down Tomcat if that's a
>> problem).
>> I'm not sure there is a way to tell Java not to use more than a
>> particular amount of total memory. If it were me, I'd make the maximum
>> heap size as small as you think you can get away with (can you do
>> 32MiB? 64MiB?) and leave everything else alone until you have a problem.
> Or just get a mess restrictive hosting environment.
Or a lore permissive one.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message