g000we
June 15th, 2010, 10:56 PM
Dear Ubuntu Gurus,
I've run a script which I need to parse a lot of data through to a webapp.
I got this error with my ruby script, running through jruby, firing into an apache webapp:
Java/util/Array.java:#### java.lang.OutOfMemoryError: GC overhead limit exceeded (NativeException)
(Where #### was the line number)
I've looked at:
http://java.sun.com/javase/technologies/hotspot/gc/gc_tuning_6.html#par_gc.oom
I think it suggests I do:
http://java.sun.com/im/a.gif
-XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode \
-XX:+PrintGCDetails -XX:+PrintGCTimeStamps \
-XX:+CMSIncrementalPacing -XX:CMSIncrementalDutyCycleMin=0
-XX:CMSIncrementalDutyCycle=10
My java version:
java version "1.6.0_18"
OpenJDK Runtime Environment (IcedTea6 1.8) (6b18-1.8-0ubuntu1)
OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode)
Q1: How do I implement that into the java/util/Arrays.java file?
Q2: Is there a way of temporary making the Java VM/JDK have better handled GC overhead?
Q3: Is this the right area/forum for this post?
Any guidance would be much appreciated.
Regards,
g000we
I've run a script which I need to parse a lot of data through to a webapp.
I got this error with my ruby script, running through jruby, firing into an apache webapp:
Java/util/Array.java:#### java.lang.OutOfMemoryError: GC overhead limit exceeded (NativeException)
(Where #### was the line number)
I've looked at:
http://java.sun.com/javase/technologies/hotspot/gc/gc_tuning_6.html#par_gc.oom
I think it suggests I do:
http://java.sun.com/im/a.gif
-XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode \
-XX:+PrintGCDetails -XX:+PrintGCTimeStamps \
-XX:+CMSIncrementalPacing -XX:CMSIncrementalDutyCycleMin=0
-XX:CMSIncrementalDutyCycle=10
My java version:
java version "1.6.0_18"
OpenJDK Runtime Environment (IcedTea6 1.8) (6b18-1.8-0ubuntu1)
OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode)
Q1: How do I implement that into the java/util/Arrays.java file?
Q2: Is there a way of temporary making the Java VM/JDK have better handled GC overhead?
Q3: Is this the right area/forum for this post?
Any guidance would be much appreciated.
Regards,
g000we