0

I am running a loop in Jython and have a loop of 100K elements which fills up dictionary slowly and eventually crash the app with error:

java.lang.OutOfMemoryError: GC overhead limit exceeded

I can track how many elements were processed with a print out to terminal of a current index every 10K elements.

How to print current memory when running app in Jython ?

Want to create output similar to this:

10k - 50MB used so far.  
20k - 100MB used so far. 
30k - 150MB used so far. 
...

Thanks.

Joe
  • 10,493
  • 23
  • 85
  • 159

0 Answers0