Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.0.0RC2
-
Fix Version/s: JRuby 1.0.2, JRuby 1.1b1
-
Component/s: None
-
Labels:None
-
Environment:Hide# uname -a
Linux server 2.6.20-1.2952.fc6 #1 SMP Wed May 16 18:18:22 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux
# java -version
java version "1.6.0_01"
Java(TM) SE Runtime Environment (build 1.6.0_01-b06)
Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_01-b06, mixed mode)
Show# uname -a Linux server 2.6.20-1.2952.fc6 #1 SMP Wed May 16 18:18:22 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux # java -version java version "1.6.0_01" Java(TM) SE Runtime Environment (build 1.6.0_01-b06) Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_01-b06, mixed mode)
-
Number of attachments :
Description
Using Fedora Linux 6 on an AMD Opteron-based system, with JDK 1.6.0 and JRuby 1.0.0RC2, all attempts to install the rails gem fail with an OutOfMemoryError. The stack trace differs slightly each time, but it is happening while processing a yaml file (see attachment).
I was hoping to run my Rails projects using JRuby in Glassfish, but I can't even get Rails installed using JRuby. This bug blocks all progress in that direction.
Can you try it again with RC3? If you get the OOM error, try passing -J-Xmx512M to JRuby when running gem, as in:
FYI, I have noticed tha AMD64 version of Java 6 always runs in server mode, which makes it slower to start up and makes it use more memory. I'm not sure if there are plans to release a non-server version or not.