RSS Feed for This PostCurrent Article

Java: Performance Bottleneck at Singleton Synchronized Method

Well, this is what happened after I resolved my lock contention issue as described in my previous article. Now lock contention still happened but is in different method.

lock_contention

The bottleneck is at one of the synchronized method is a Singleton class.

lock_singleton

The method is synchronized because the class is a Singleton. As I described in one of my article, we should avoid using Singleton if possible.

I will show you how I refactored the code in subsequent post.


Trackback URL


Sorry, comments for this entry are closed at this time.