Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Aug 2008 08:53:52 +0200
From:      Yuri Khotyaintsev <yuri@irfu.se>
To:        Nicklas Johnson <freebsd@spatula.net>
Cc:        freebsd-java@freebsd.org, Sharkie <shark.fin.soup@mac.com>
Subject:   Re: Why cannot I allocate more than -Xmx700M
Message-ID:  <48AA6E00.7040408@irfu.se>
In-Reply-To: <be800d230808182336i550ea3cekab622ede99f52d34@mail.gmail.com>
References:  <2849C2B9-6990-4F51-A430-06E99D745816@mac.com>	<97C57C69-1708-4176-86BC-E2B733BF0ACA@kjkoster.org>	<7B413A97-AC11-4FD4-9BD5-40CC21593488@mac.com>	<be800d230808181304p7f8ad74fx8c92bdb511c08062@mail.gmail.com>	<6E041876-88CC-45CB-9739-C3EB5686EEF5@mac.com>	<be800d230808182251u16c051dfw64185de393ec92df@mail.gmail.com>	<5AD97FD4-50C1-4C43-93FE-4EA7F782D03E@mac.com> <be800d230808182336i550ea3cekab622ede99f52d34@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Nicklas Johnson wrote:
> 2008/8/18 Sharkie <shark.fin.soup@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.
>
>   
You can try reducing kern.maxdsiz and kern.dfldsiz in order to give mmap 
more space.

Yuri

-- 
Dr. Yuri Khotyaintsev
Institutet för rymdfysik (IRF), Uppsala




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48AA6E00.7040408>