[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [virgo-dev] fail unexpected exception -- (OutOfMemoryError) PermGen space

Hi,

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.

# Workaround
# Java JVM issue in relation to the churn of the PERM cache.
export ANT_OPTS="-Xms64m -Xmx512m -XX:PermSize=128m
-XX:MaxPermSize=756m"

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
-XX:MaxPermSize=756m"





On Fri, 2010-07-16 at 16:31 +0200, Florian Waibel wrote:
> Hi,
> 
> 
> 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
> space
>      [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?
> 
> 
> Thanks,
>   florian
> 
> 
> _______________________________________________
> virgo-dev mailing list
> virgo-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/virgo-dev