I noticed when I run a big job in my grails application (that reads huge amounts of data from db) I have this log(no idea what generates the log, maybe the melody plugin?): Memory usage: used=588MB free=14MB total=683MB
in the console and soon I receive:
Exception in thread "http-nio-8180-AsyncTimeout" Exception in thread "http-nio-8180-ClientPoller-1" Exception in thread "Thread-11" java.lang.OutOfMemoryError: GC overhead limit exceeded
,
even though the heap memory seems to have much more memory left as displayed in intellij:
.
Also, starting the application I explicitly added JVM params:-Xmx40968m -Xms2048m
.
On what type of memory do I run low?