Java 64 bit consumes excessive native memory (c-heap) due to JIT Compilation

Vitaly Davidovich vitalyd at gmail.com
Wed Aug 22 09:36:19 PDT 2012


Reserving a 64mb private heap sounds fine on 64bit, but it sounds like that
memory is being committed since RSS goes up?

Sent from my phone
On Aug 22, 2012 12:34 PM, "Andrew Haley" <aph at redhat.com> wrote:

> On 08/22/2012 05:26 PM, Ashish Saxena wrote:
> > I doubt if this is thread local memory area, for this disappears when
> > moving to interpreted mode(-Xint) or static compilation mode (-Xcomp).
> > Moreover, this occurs when JIT Compiler tries to do optimizations
> > related to inlining. On disabling the inling optimizations using
> > -XX:-Inline   the 64 MB blocks disappears.
>
> Point taken.  I would expect to see those 64M blocks on 64-bit systems,
> and I would expect to see about ten of them, but it's unconnected with
> JIT compilation.
>
> > Moreover, why would thread local area be so large ... 64 MB when
> > thread stack size is usually 1 MB. Any thoughts ?
>
> That's because address space is almost free on 64-bit systems: the C
> heap might as well allocate a block of address space to make malloc()
> extra fast.
>
> Andrew.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/hotspot-compiler-dev/attachments/20120822/232a7fd8/attachment.html 


More information about the hotspot-compiler-dev mailing list