java.lang.OutOfMemoryError: PermGen space

I am on ubuntu 8.04 on 64 bit machine.

java version "1.5.0"
gij (GNU libgcj) version 4.2.4 (Ubuntu 4.2.4-1ubuntu3)

1st problem: ( I think is fixed )

To correct this problem:  Error occurred during initialization of VM
Could not find agent library on the library path or in the local directory: yjpagent

I have replaced bin/libyjpagent.so and /lib/yjp-controller-api-redist.jar with 7.5 version.  This corrected earlier error.. document

Now I am able to start rubymine.

2nd Problem:

Open a rails directory, but when I try to edit a file I am getting...

java.lang.OutOfMemoryError: PermGen space
Dumping heap to java_pid19189.hprof ...
Heap dump file created [114126695 bytes in 1.754 secs]
java.lang.reflect.InvocationTargetException

I have to kill pid to get out of program.

Do I have  a 32 bit Java ???

Should I update to 64 bit JVM ???         

2 comments
Comment actions Permalink

I run RubyMine on Ubuntu(64bit), and have had the best luck with using
the SUN java 6 jdku13. This is the default on Jaunty, but you will have
to install it separately for previous versions:

java version "1.6.0_13"
Java(TM) SE Runtime Environment (build 1.6.0_13-b03)
Java HotSpot(TM) 64-Bit Server VM (build 11.3-b02, mixed mode)


Unfortunately, on linux, if you don't have the right java vm, and the
right vm options, RM will lock up alot.

The following is the rubymine.vmoptions that have been the most
successful for me

-Xms32m
-Xmx512m
-XX:MaxPermSize=128m
-ea

cheers,
Charles


Bartee Lamar wrote:

I am on ubuntu 8.04 on 64 bit machine.

java version "1.5.0"
gij (GNU libgcj) version 4.2.4 (Ubuntu 4.2.4-1ubuntu3)

To correct this problem: Error occurred during initialization of VM
Could not find agent library on the library path or in the local directory: yjpagent

I have replaced bin/libyjpagent.so and /lib/yjp-controller-api-redist.jar with 7.5 version. This corrected earlier error.. document

Now I am able to start rubymine.

Open a rails directory, but when I try to edit a file I am getting...

java.lang.OutOfMemoryError: PermGen space
Dumping heap to java_pid19189.hprof ...
Heap dump file created
java.lang.reflect.InvocationTargetException

I have to kill pid to get out of program.

Do I have a 32 bit Java ???

Should I update to 64 bit JVM ???

---
Original message URL: http://www.jetbrains.net/devnet/message/5237137#5237137

0
Comment actions Permalink

Hello Bartee,

We recommend you run 32 bit Java even if are on 64bit OS.
64 bit Java consumpts much more memory. Default Java memory parameters where given for 32bit Java.

Regards,
Oleg

0

Please sign in to leave a comment.