Changes between Version 1 and Version 2 of Ticket #5331, comment 12
- Timestamp:
- 2012-03-23T02:58:16+01:00 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #5331, comment 12
v1 v2 5 5 Without data clear the heap uses 320 MB of which 280 belong to DataSet. The follow-ups are again GTKEngine and bufImgs in MapView. 6 6 7 Unfortunately, Java rarely shrinks the heap once allocated. So even if you system is running OOM, Java will not free the "free heap". Apparently there are some JVM options (see [1]), but they did not work for me (somewhere on stackoverflow it was mentioned that the Min/MaxFreeHeapRatio won’t work with the parallel(?) GC and that the JVM auto-detects this because of multiple CPUs and enough RAM. This applies to my system, thus my heap will probably never shrink).7 Unfortunately, Java rarely shrinks the heap once allocated. So even if you system is running OOM, Java will not free the "free heap". Apparently there are some JVM options (see (1)), but they did not work for me (somewhere on stackoverflow it was mentioned that the Min/MaxFreeHeapRatio won’t work with the parallel(?) GC and that the JVM auto-detects this because of multiple CPUs and enough RAM. This applies to my system, thus my heap will probably never shrink). 8 8 9 9 In any case I’ll attach the patch since having a free heap is still better than nothing. If I find no more issues, I’ll commit it. 10 10 11 [1]https://stopcoding.wordpress.com/2010/04/12/more-on-the-incredible-shrinking-jvm-heap/11 (1) https://stopcoding.wordpress.com/2010/04/12/more-on-the-incredible-shrinking-jvm-heap/


