java.lang.OutOfMemoryError: GC overhead limit exceeded (Nat

Dear JRuby geniuses,

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:

[output]
java.lang.OutOfMemoryError: GC overhead limit exceeded (NativeException)
[/output]

I’ve looked at:

[site]

[/site]

I think it suggests I do:


-XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode \

-XX:+PrintGCDetails -XX:+PrintGCTimeStamps \

-XX:+CMSIncrementalPacing -XX:CMSIncrementalDutyCycleMin=0

-XX:CMSIncrementalDutyCycle=10

My java version:

[Settings]
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)
[/Settings]

Q1: How do I implement that into the java.lang?
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.

Kind Regards,

g000we

On Wed, Jun 16, 2010 at 11:28 AM, Tim C. [email protected]
wrote:

[/output]

My java version:

[Settings]
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)
[/Settings]

Q1: How do I implement that into the java.lang?
Q2: Is there a way of temporary making the Java VM/JDK have better
handled GC overhead?

Have you tried simply bumping up the maximum heap? Pass -J-Xmx1G to
bump up to 1G of heap (JRuby sets it to 512m by default).

Q3: Is this the right area/forum for this post?
Absolutely.

/Nick


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email