[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] Java JVM and memory on Xen



On Tue, Nov 10, 2009 at 8:52 PM, Rob Shepherd <rs@xxxxxxxxxxxxx> wrote:

> I finally tracked down the crash to that single 1MB adjustment of RAM.
>
> although the JVM is only configured to use 512MB of RAM MAX (-Xmx512m)
>
> This is very bizarre.  Has anybody seen behaviour before, or have any
> comments about why it may be happening?

Java uses MORE memory then what you set on -Xmx. For example, I set
-Xmx512m on an app and "top" shows 693MB RES, 1392M VIRT.

Perhaps you disable swap so that all VIRT needs to be on memory, thus
oom-killer killed it?

> One thought.... Java requires contiguous memory which I believe Xen does not
> provide to the guest. I would have thought however that the addressable
> memory space that an application sees can be mapped to appear contiguous?

It should be that way.

-- 
Fajar

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.