Why cannot I allocate more than -Xmx700M

Nicklas Johnson freebsd at spatula.net
Tue Aug 19 06:36:36 UTC 2008


2008/8/18 Sharkie <shark.fin.soup at mac.com>

>
> I get the following, which I have no idea how to read
>
> %kdump -t csu | grep -B 1 errno
>
>   1038 java     CALL
>  mmap(0,0x42800000,PROT_READ|PROT_WRITE|PROT_EXEC,MAP_PRIVATE|MAP_NORESERVE|MAP_ANON,0xffffffff,0,0)
>   1038 java     RET   mmap -1 errno 12 Cannot allocate memory
>

There's your answer.

The JVM is trying to mmap 1064MB of contiguous virtual memory, and the OS
says "no".

The limitation isn't coming from the JVM.  It's coming from the OS.  The
problem you'll need to solve is why you can't mmap more.  Either there isn't
that much contiguous virtual memory left, or you're hitting some other
system limitation.

   Nick

-- 
"Courage isn't just a matter of not being frightened, you know. It's being
afraid and doing what you have to do anyway."
-- Doctor Who - Planet of the Daleks
This message has been brought to you by Nick Johnson 2.3b1 and the number 6.
http://healerNick.com/ http://morons.org/ http://spatula.net/


More information about the freebsd-java mailing list