Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-amd64
Navigation:
Lists: gentoo-amd64: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-amd64@g.o
From: Marco Matthies <marco-ml@...>
Subject: Re: Java memory management
Date: Sun, 16 Jul 2006 14:57:33 +0200
Felipe Ribeiro wrote:
> When running Java on my gentoo amd64 box, 1gb of memory isn`t enough
> to run eclipse and tomcat, i get some OutOfMemory errors. Is there any
> known problem on memory management related to java and linux amd64?
> 
> I`ve tried to use a 32bit vm, but the problem persists.

Hi,

my memory is a bit hazy on this, but I believe i once had similar 
problem with azureus and sun's jvm (and blackdown's i think). The 
problem was basically that java has a maximum memory pool size set to 64 
MB. You can change it with java -Xmxn, where n could be 128m for 128 
Megabytes (see `man java` for the details). For azureus there is a file 
~/.azureus/gentoo.config where you can add parameters for the jvm to the 
environment var JAVA_OPTIONS. Maybe it works similarily in eclipse/tomcat.

While doing a short google i also found these:
http://tomcat.apache.org/faq/memory.html
http://dev.eclipse.org/newslists/news.eclipse.tools.ve/msg06292.html

In the posts regarding eclipse someone mentions adding the parameter 
-XX:MaxPermSize=128M to eclipse.ini. Unfortunately i cannot verify all 
of this as i do not use eclipse or tomcat, so YMMV :)

Marco
-- 
gentoo-amd64@g.o mailing list


References:
Java memory management
-- Felipe Ribeiro
Navigation:
Lists: gentoo-amd64: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: Java memory management
Next by thread:
cdrecord-ProDVD fails after glibc 2.3.6-r4
Previous by date:
Re: Java memory management
Next by date:
[OT] Thunderbird eating email


Updated Jun 17, 2009

Summary: Archive of the gentoo-amd64 mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.