title: Exception in thread "main" java.lang.OutOfMemoryError: GC overhead limit exceeded - Eclipse
body: <p>I am working with a Java program (reading large files) on Eclipse - Windows. After running my program I get the error:</p>
  
  <p>Exception in thread "main" java.lang.OutOfMemoryError: GC overhead limit exceeded</p>
  
  <p>I see on <a href="http://www.oracle.com/technetwork/java/javase/gc-tuning-6-140523.html#par_gc.oom" rel="nofollow">http://www.oracle.com/technetwork/java/javase/gc-tuning-6-140523.html#par_gc.oom</a> that I should add the option -XX:-UseGCOverheadLimit to the command line. </p>
  
  <p>Where should I add this option? How can I solve this?</p>