i making a web program, and its consume more and more memory from time to time. after searching from google i think i have found the solution.
i use system.gc() for garbage collection, and quite do the work. but its still consume a lot of resource. so i back to google and found about profiling (i use netbean ). after profiling my project i have found that allocated heap for my app is 500 mb, while actually it only use under 200 mb. this is before system.gc() after that less then 100 mb
then here Is there a way to lower Java heap when not in use? it tell me that i can encourage jvm to lower the heap..
any one know how to configure -XX:MaxHeapFreeRatio step to step? cause im still newbie. iam using win 7 right now
if this help, i found that surviving generation keep increasing too here
thank you