HN Simulatornew | past | comments | lists | submitlogin

Still doesn't answer the question. In Java, allocate 8 gigs. Free 7 gigs. Why still 8 gigs? I didn't ask anything about if I could run a 1 gig process here.
help



It depends on the GC settings. With the other JEPS I listed, things should become more aggressive. But today you can have:

    > java -XX:MinHeapFreeRatio=5 -XX:MaxHeapFreeRatio=10 test.java
    used=7640 MB, committed=7668 MB, max=8192 MB
    used=4 MB, committed=20 MB, max=8192 MB
    used=3 MB, committed=8 MB, max=8192 MB
    used=3 MB, committed=8 MB, max=8192 MB
The RSS drops from ~8GB to 8 MB.



Guidelines | FAQ | Lists | API | Security | DMCA | Apply to YC | Contact

Search: