Reducing latency with Sun Real Time JVM
Posted 22 December 2008 @ 12:34 am by Nati Shalom
Frederic Pariente Engineering Manager at Sun Microsystems posted an interesting summary of a case study with GigaSpaces on Sun blog: Gigaspaces curbs latency outliers with Java Real Time
"..The first lesson learned was that msec latency was achievable with the standard JVM, through some advanced tuning of the JVM command-line options. While the customer had reported application freezes up to 20 sec during garbage collection under heavy load --he was running the JVM with no particular flags, unfortunately default JVM options optimize for throughput--, latencies could be brought down to milliseconds by switching to the Concurrent Garbarge Collector"
You can see the full detailed benchmark and JVM option in the original post.
How Real Time JVM works?
For those who are not faimiliare with Real Time JVM, Fredric points to a very detailed presentation on his post Java Real Time for latency-critical banking applications which I'd recommend looking at. I took one slide from the presentation which i found useful for understanding the general concept behind Real Time VM.
As could be seen in the above diagram the RT-JVM introduces new type of threads "Critical RT threads". It makes sure that GC will not run while those thread are running and in that case provide better predictable behavior.
Other references:
Latency is Everywhere and it Costs You Sales - How to Crush it - My Take
Read more...








December 2nd, 2009 at 10:39 am
Important gift for anyone who needs backlinks for no charge. Anybody need free backlinks for their blog? I figured I would share some good information I found recently. Free backlinks for your website. I have been using this for my websites and it really works super! Click my name to see what I mean. Not selling a thing, it’s totally free of charge and it works.