From owner-freebsd-java@FreeBSD.ORG Wed May 30 19:33:00 2007 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 52EC916A41F for ; Wed, 30 May 2007 19:33:00 +0000 (UTC) (envelope-from landonf@threerings.net) Received: from smtp.earth.threerings.net (smtp1.earth.threerings.net [64.127.109.108]) by mx1.freebsd.org (Postfix) with ESMTP id 3A47713C46E for ; Wed, 30 May 2007 19:33:00 +0000 (UTC) (envelope-from landonf@threerings.net) Received: from [192.168.54.11] (timor.sea.earth.threerings.net [192.168.54.11]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: landonf) by smtp.earth.threerings.net (Postfix) with ESMTP id 85D4061C2B; Wed, 30 May 2007 12:12:01 -0700 (PDT) In-Reply-To: References: Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="Apple-Mail-2-381654693" Message-Id: <9921E3D2-6F66-47B1-97AB-8A8D929F671C@threerings.net> Content-Transfer-Encoding: 7bit From: Landon Fuller Date: Wed, 30 May 2007 12:11:57 -0700 To: Jackson Lima X-Pgp-Agent: GPGMail 1.1.2 (Tiger) X-Mailer: Apple Mail (2.752.3) Cc: freebsd-java@freebsd.org Subject: Re: java.lang.OutofMemoryError: Java heap space X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 May 2007 19:33:00 -0000 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--