Measuring time spent on GC

I guess that when GC (Garbage Collector) is working the application stops and resumes when GC finishes I don’t think that is a safe assumption. Are you sure the garbage collector is not working in parallel with your application code? To measure the time spent in collecting garbage you can query the Garbage Collector MXBean. … Read more

What GC parameters is a JVM running with?

-XX:+PrintCommandLineFlags Prints flags passed on command line or configured by the ergonomics (auto-sizing) features. -XX:+PrintFlagsInitial Dumps ALL the default flags and values. -XX:+PrintFlagsFinal Dumps ALL the flags after processing command line and ergonomics. So I think the latter will do for you, just add it to your command line script.

requestAnimationFrame garbage collection

I have found out the following: If you change your RAF function into two “ping-pong” like functions, you get alot less garbage. You can’t avoid the first initial “big GC”, but after that you see only minor GCs of about 50kb instead of 700kb-1mb GCs. The code will look like this: <script type=”text/javascript” charset=”utf-8″> window.frameA … Read more