[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [virgo-dev] fail unexpected exception -- (OutOfMemoryError) PermGen space
- From: "Iliev, Hristo" <hristo.iliev@xxxxxxx>
- Date: Mon, 19 Jul 2010 08:13:34 +0200
- Accept-language: en-US, de-DE
- Acceptlanguage: en-US, de-DE
- Delivered-to: firstname.lastname@example.org
- Thread-index: Acsk9j5tDtWXiQTqRXKVQEt2DVJJ7QCEdeqw
- Thread-topic: [virgo-dev] fail unexpected exception -- (OutOfMemoryError) PermGen space
What is actually the JVM issue we are talking about? I'm asking because afaik perm is used for class definitions and object/sting pools and it sounds strange to have so big perm area.
Judging from my experience having a perm area bigger than the heap is often a sign for problems. Are there any measurements in this regard? If not I can try to make a heap dump and analyze it with the Memory Analyzer (http://www.eclipse.org/mat/) to see if this will bring something.
From: virgo-dev-bounces@xxxxxxxxxxx [mailto:virgo-dev-bounces@xxxxxxxxxxx] On Behalf Of Patsy Phelan
Sent: Friday, July 16, 2010 5:50 PM
To: Virgo Project
Subject: Re: [virgo-dev] fail unexpected exception -- (OutOfMemoryError) PermGen space
You will have to add this to the environment variables for ANT, possibly
also for Virgo once you are running it. It is a known JVM issue.
# Java JVM issue in relation to the churn of the PERM cache.
export ANT_OPTS="-Xms64m -Xmx512m -XX:PermSize=128m
before you run ant for builds.
If it happens running Virgo, you can create a file called setenv.sh in
the virgo/bin directory and add the following in it:
export JAVA_OPTS="-Xms64m -Xmx512m -XX:PermSize=128m
On Fri, 2010-07-16 at 16:31 +0200, Florian Waibel wrote:
> i tried to compile the kernel (Core runtime) as written in
> http://wiki.eclipse.org/Virgo/[Source|Build] :
> After getting the source, running the command:
> ant clean clean-integration test
> results in
> [iajc] fail unexpected exception -- (OutOfMemoryError) PermGen
> [iajc] PermGen space
> [iajc] java.lang.OutOfMemoryError: PermGen space
> Am i missing something? I tried OSX/2GB RAM and Ubuntu/2GB
> java version "1.6.0_20"
> Java(TM) SE Runtime Environment (build 1.6.0_20-b02-279-10M3065)
> Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01-279, mixed mode)
> Any ideas?
> virgo-dev mailing list
virgo-dev mailing list