Experimental: Garbage-First garbage collector (G1): In the Sun Java 6 (Update 14 or greater) release, there is a new garbage collector
that is in the experimental stage. It is designed for low pause time, high-throughput applications such as Wowza Media Server.
It is an option to explore. There is more information below. To enable this garbage collector, the additional settings are:
The third question is about optimisation as well.
Zero sized function We have read
moreaboutthe bug, how can we solve the bug with right settings and optimisation?
The tuning guide, especially the GC tuning suggestions, are occasionally updated. What is current is as up to date as we know and have documented. Note the advice to avoid special GC options unless there is problem. Then you have to see if any of the suggestions actually help.
This post has extensive comments from Charlie on the "Zero sized function":