The error I got is:
Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: GC overhead limit exceeded
The script I run is:
msql.query("SELECT duration FROM table");
while (msql.next()){
println(msql.getInt("duration"));
}
The java version (Fedora 25):
# java -version
openjdk version "1.8.0_121"
OpenJDK Runtime Environment (build 1.8.0_121-b14)
OpenJDK 64-Bit Server VM (build 25.121-b14, mixed mode)
If I use debug then the script working and freezing in the end.
The ulimit command told me:
$ ulimit
unlimited