>You are drastically misinterpreting some things.
Unfortunately, nope.

>Java without a memory argument, e.g. -Xmx, will allocate up to 64MB of
>RAM to the heap in total.  After that, you will get OutOfMemoryErrors.

        While this seems to be true in windows we do not get the same behavior in
Linux, in fact we get better memory usage if we omit the java memory
parameters in Linux. I agree this goes against the java documentation but
this is what we experienced.

>On linux, the top command (as well as vmstat and some others) are
>misleading with respect to Java memory usage.  Each JVM thread shows as
>a separate process using the same amount of memory, but really the
>amount shown is more or less the total across all threads.  For example,
>if top shows 20 threads using 30MB of RAM each, you really have a 30MB
>heap being shared by all 20 threads.

Correct, so we saw 8 entries for java with 1 Gig of memory each (our machine
had 2 gigs of memory) with log4j code in, and we saw 8 entries with 100meg
of memory each with log4j code removed.

>There has been extensive discussion about this on the tomcat mailing
>list.  You may wish to search its archives.

>I hope this helps,
        I appreciate the input, wish it were that easy.

>Yoav Shapira
>Millennium ChemInformatics

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to