Using Frameworks? – 2 JVM Changes to Rock Your World
JVM Tuning has been long a favorite subject of mine. Maybe some day I’ll share our JVM Settings in full, but for now you need to do two things.
Update to JDK 1.6 Update 10 – Once CF8 came out, people started complaining that their frameworks loaded slowly, initial page loads were long, that CFC generation took a while, etc. The conventional wisdom was to move back down to 1.5, which didn’t have these issues. No more. Update 10, which has long been in beta, is now fully launched, and our CFC generation, slow loading issues are nearly gone. Whereas before it would take minutes, it now takes less than 15 seconds. Besides the other benefits of running the latest 1.6, this one rocks. Download info available @ http://java.sun.com/javase/downloads/index.jsp.
Garbage Collection Settings just for Frameworks – We would occasionally notice hiccups, slight slow downs for GC despite our numerous JVM tweaks. No more since adding two lines. More information is available @ Mike Brunt’s blog – http://www.cfwhisperer.com/post.cfm/sun-jvm-1-6-heap-memory-behavior-with-coldfusion-frameworks.
The Two JVM Tweaks:
-Dsun.rmi.dgc.client.gcInterval=600000 -Dsun.rmi.dgc.server.gcInterval=600000
I was fortunate enough to be asked to perform an early access review (unedited) of Tariq Ahmed’s Flex 3 in Action. While I read through the book, I was side-tracked, and its definitely my bad I didn’t get this review out earlier.