JVM Tweaking Help.... Garbage Collection
I have a server problem in which the heap gets to the maximum, and doesn't free space. This obviously makes the app run extremely slow and some times crash. I know the best solution is to look in code for memory leaks and optimize. I've done everything I can think of and the heap still continues to climb. Most of the apps hosted on the server contain persistent variables and store a lot in the APPLICATION and SESSION scope. I need some magic JVM argument beans that can make the garbage collection go into overdrive to keep the heap small. I dont care about slowing the overall page serving down, it is better than it breaking until I can figure out what is wrong. I've also increased my heap to about 1.2 gb (the most it will allow). Any suggestions would be helpful.