Results 1 to 2 of 2

Thread: Java: How do I Increase GC overhead limit

  1. #1
    Join Date
    Dec 2009

    Java: How do I Increase GC overhead limit

    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/ java.lang.OutOfMemoryError: GC overhead limit exceeded (NativeException)

    (Where #### was the line number)

    I've looked at:

    I think it suggests I do:

    -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode \
    -XX:+PrintGCDetails -XX:+PrintGCTimeStamps \
    -XX:+CMSIncrementalPacing -XX:CMSIncrementalDutyCycleMin=0
    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/ 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.



  2. #2
    Join Date
    Oct 2009
    Huntsville, AL, USA
    Ubuntu 10.04 Lucid Lynx

    Re: Java: How do I Increase GC overhead limit

    For how to pass java command line options, you'd probably have better luck posting to the jruby user list.

    However, most likely your script needs to be changed rather than the GC handling. Try to rewrite it without so many objects being created and deleted. Can't really be more specific than that since I haven't seen your script and don't know much Ruby anyway.

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts