Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 May 2007 12:11:57 -0700
From:      Landon Fuller <landonf@threerings.net>
To:        Jackson Lima <jacksonlima@gmail.com>
Cc:        freebsd-java@freebsd.org
Subject:   Re: java.lang.OutofMemoryError: Java heap space
Message-ID:  <9921E3D2-6F66-47B1-97AB-8A8D929F671C@threerings.net>
In-Reply-To: <dc2b54950705300848q67fb5237t681f7e1a228d1b0f@mail.gmail.com>
References:  <dc2b54950705300848q67fb5237t681f7e1a228d1b0f@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--Apple-Mail-2-381654693
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed


On May 30, 2007, at 08:48, Jackson Lima wrote:

> In the page of the program
> (http://beast.bio.ed.ac.uk/Increasing_Memory_Usage) the author
> suggests to modify the code of the TreeAnnotator,  the parameters -
> Xmx and - Xms, I tried - Xms1024m - Xmx1024m but I did not obtain
> success when run the program, therefore this message of error:
>
> "Error occurred during initialization of VM
> Could not reserve enough space for object heap
> Could not create the Java virtual machine.
> Exit 1
> "
> But my limits are:
>
> cputime      unlimited
> filesize     unlimited
> datasize     2097152 kbytes
> stacksize    2097152 kbytes

> Have 4 Gb of Memory.

Java allocates its heap via mmap(MAP_ANON) -- increasing the data  
segment size does the opposite of what you would expect, reserving  
address space that won't be used by mmap(), and causing the above  
failure.

See vm/vm_mmap.c vm_mmap() -- From my cursory reading, mappings'  
'start address' is set after the end of the largest possible heap  
(RLIMIT_DATA).

Try dropping RLIMIT_DATA back to 512Mb.

-landonf

--Apple-Mail-2-381654693
content-type: application/pgp-signature; x-mac-type=70674453;
	name=PGP.sig
content-description: This is a digitally signed message part
content-disposition: inline; filename=PGP.sig
content-transfer-encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)

iD8DBQFGXcx9lplZCE/15mMRAhcCAJoDSsUg/DEcbwLllT8/5q0J95LCwQCeOaZE
kMnSnyqdUcwISJ8+w5EEgUU=
=+k5R
-----END PGP SIGNATURE-----

--Apple-Mail-2-381654693--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9921E3D2-6F66-47B1-97AB-8A8D929F671C>