OutOfMemoryError: PermGen space on 64-bit Linux

Hi,

I have installed IDEA 8.1 on Fedora Core 10 using the 64-bit installation and JDK 1.6.0 Update 12.  When I run idea, I get the following error:

java.lang.OutOfMemoryError: PermGen space

Firstly, is there a build for 64-bit Linux?  If not, how do I a) increase the heap size; and b) can I use 8.1 on 64-bit Linux?

Thanks for any help.
John

1 comment
Comment actions Permalink

On Sun, 01 Mar 2009 02:57:52 +0300, johndubchak wrote:

I have installed IDEA 8.1 on Fedora Core 10 using the 64-bit
installation and JDK 1.6.0 Update 12.  When I run idea, I get the
following error:

java.lang.OutOfMemoryError: PermGen space

Firstly, is there a build for 64-bit Linux?  If not, how do I a)
increase the heap size; and b) can I use 8.1 on 64-bit Linux?


There's no IDEA build specifically for 64-bit Linux. However, I've been
successfully running IDEA on Debian's AMD64 port for some months now.
Like you, I found it necessary to increase the permgen size - you can do
this by editing $/bin/idea.vmoptions (or whichever file you might have the IDEA_VM_OPTIONS environment variable pointing to). I use 192MB instead of the default 120MB: -XX:MaxPermSize=192m The only other change I found necessary when I switched to the 64-bit port was to replace the 32-bit YourKit native lib that ships with IDEA ($/bin/libyjpagent.so) with the 64-bit version (downloaded
from the YourKit website). But you'll only have to do this if you want
to enable the YourKit agent so you can capture CPU and/or memory
snapshots as IDEA is running (this is often requested if you file a
problem report against IDEA).

HTH.

--
Mark Scott
mark@codebrewer.com

0

Please sign in to leave a comment.