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