From owner-freebsd-java@FreeBSD.ORG Wed May 30 16:13:35 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 279BF16A4EE for ; Wed, 30 May 2007 16:13:35 +0000 (UTC) (envelope-from jacksonlima@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.183]) by mx1.freebsd.org (Postfix) with ESMTP id F1A3E13C50D for ; Wed, 30 May 2007 16:13:31 +0000 (UTC) (envelope-from jacksonlima@gmail.com) Received: by py-out-1112.google.com with SMTP id a29so4040129pyi for ; Wed, 30 May 2007 09:13:26 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=A5NNOLfuxN40/AgnBe0ds8k7/xT3+2a6LGB85PxVSqqV2zoIMI4ypxBxp93XvdMmi+R6Mg7d4oPeFu+Jt05j4L9/VHUOXVGWZxzkAyYt7AooLAtgw0KTffCvONPks2i335dktH2RHWOKFk4W7uz4ZMIHyVSemWut2wURcJG6kLY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=EzHavkcE6y7H/QIkSWmPNxuAsCflRVtHlw0u8ulw4yFdWB5APq1EoxPyhByA7YtXjTPNWjZeRxMv/8efu0cLPQA1Z+A3bjE5cHMR88rxwR91b+g28ExelUVLAEaApDXCFNfuW0GeoSpl+zW8srUhPtar/2pbBa3boqZwOBNfmvY= Received: by 10.65.163.8 with SMTP id q8mr15674224qbo.1180540108234; Wed, 30 May 2007 08:48:28 -0700 (PDT) Received: by 10.64.250.19 with HTTP; Wed, 30 May 2007 08:48:28 -0700 (PDT) Message-ID: Date: Wed, 30 May 2007 12:48:28 -0300 From: "Jackson Lima" To: freebsd-java@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: 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 16:13:35 -0000 Hi to all! I am trying to run the TreeAnnotator program, that sumariza the phylogenetics trees generated by the BEAST. The two programs run in java, try to run the program and it it gives this message of error: "java.lang.OutofMemoryError: Java heap space" The code standard of the TreeAnnotator is: #!/bin/sh if [ -z "$BEAST" ]; then LS_OUT=$(ls -l "$0")' -> '"$0" FILENAME0=${LS_OUT#*-> } FILENAME=${FILENAME0% -> *} BEAST=`dirname "$FILENAME"`/.. fi BEAST_LIB=$BEAST/lib java -Xms64m -Xmx256m -Djava.library.path=$BEAST_LIB -cp $BEAST_LIB/beast.jar dr.app.tools.TreeAnnotator $* 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 coredumpsize unlimited memoryuse unlimited vmemoryuse unlimited descriptors 11095 memorylocked unlimited maxproc 5547 sbsize unlimited The CPU: FreeBSD 6.2-RELEASE-p3 FreeBSD 6.2-RELEASE-p3 #1: Thu Apr 26 13:14:47 UTC 2007 /usr/obj/usr/src/sys/GENERIC i386 Have 4 Gb of Memory. Thanks. Jackson Lima Ps: Sorry my poor english.