« The interactive cloud | Main | The technology behind Tornado, FriendFeed's web server »

When optimizing - don't forget the Java Virtual Machine (JVM) 

Recently, I was working on a project that was coming to a close. It was related to optimizing a database using a Java based in-memory cache to reduce the load. The application had to process up to a million objects per day and was characterized by its heavy use of memory and the high number of read, write and update operations. These operations were found to be the most costly, which meant that optimization efforts were concentrated here.

The project had already achieved impressive performance increases, but one question remained unanswered - would changing the JVM increase performance?

Read more at:

Reader Comments (3)

Yet nowhere in the article did I see any JVM profiling used?

November 29, 1990 | Unregistered CommenterAnonymous

Yeah I have a similar post on my blog for Perl since we're mostly a mod_perl shop. I used strace and debuggers to look for where the smallest change to the core Perl would give use the biggest payoff.


November 29, 1990 | Unregistered Commenterjstephens

The major issue with large in-memory cache in Java is garbage collector. Tracking millions of objects can not be done efficiently. Cache performance has nothing to do with general JVM performance.

November 29, 1990 | Unregistered CommenterVlad

PostPost a New Comment

Enter your information below to add a new comment.
Author Email (optional):
Author URL (optional):
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>