Hacker News new | ask | show | jobs
by t1o5 3158 days ago
Cant you put java apps on the leash with Xmax and Xmin memory ? I might be wrong, but I thought that was the case.
1 comments

Yes, but within that leashes it will prefer not releasing back what it has. E.g. if you say minimum 256, maximum 1G, if you used 1G for a short time it tends to hold onto it. This is a performance optimization iirc - it is far cheaper to wait a bit if you need that memory again than releasing it to the OS and then requesting it back again.