From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.54) id 1FKN63-0005D6-Lw for garchives@archives.gentoo.org; Fri, 17 Mar 2006 22:07:00 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.5.20060308/8.13.5) with SMTP id k2HM6UqD028360; Fri, 17 Mar 2006 22:06:30 GMT Received: from banta-im.com (roy-rogers.nfic.com [208.231.230.100]) by robin.gentoo.org (8.13.5.20060308/8.13.5) with ESMTP id k2HM6TTN003575 for ; Fri, 17 Mar 2006 22:06:29 GMT Received: from by banta-im.com (8.9.3/8.9.3) with ESMTP id RAA23663; Fri, 17 Mar 2006 17:01:09 -0500 (EST) Message-ID: <441B31A5.9080407@gentoo.org> Date: Fri, 17 Mar 2006 17:01:09 -0500 From: Joshua Nichols User-Agent: Thunderbird 1.5 (X11/20051201) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-java@gentoo.org MIME-Version: 1.0 To: Sebastiaan CC: gentoo-java@lists.gentoo.org Subject: Re: [gentoo-java] java.lang.OutOfMemoryError on amd64 References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: b6a241d5-9ca4-434f-99e2-b3a5ffd1a71a X-Archives-Hash: 926af8937992a0b93883fddbe0d555f6 Whoops... accidentally replied off list much earlier today. Sebastiaan wrote: > I have tried to increase the amount of memory java can use by adding > -J-Xms48m to the command (right after configuration, since a second > compilation attempt always works), but without succes. > -Xms sets the initial memory allocated. You probably want -Xmx, which sets the maximum amount of memory that will be allocated, and you probably want this to be fairly high, or at least more than 48m. If you're going to patch the makefiles, a clean way to do it may be to add like a variable JAVACFLAGS, which we can then set in the ebuild like: use amd64 && JAVACFLAGS="-J-Xmx256m ${JAVACFLAGS}" > Does anyone have an idea what the problem can be? I am unsure if the > problem lies within VTK or Blackdown. Sun-jdk does not have a 64 bit > version available, so I cannot compare with that. > I'm pretty sure it's a blackdown on amd64 thing. We do encounter it for a few packages, like net-p2p/azureus. For the record, there is a amd64 version of sun-jdk-1.5 (and 1.6...), but I'm sure at this point I shouldn't have to go into the concerns about using them ;) > References: > I have previously posted this to > http://bugs.gentoo.org/show_bug.cgi?id=123178 as well. > Hope this helps, - Josh -- gentoo-java@gentoo.org mailing list