Welcome!

Performance. Unified.

Patson Luk

Subscribe to Patson Luk: eMailAlertsEmail Alerts
Get Patson Luk via: homepageHomepage mobileMobile rssRSS facebookFacebook twitterTwitter linkedinLinkedIn


Top Stories by Patson Luk

When it comes to analyzing your web application's performance, TraceView already has instruments in a wide spectrum of Java components, such as application servers, frameworks and JDBC connections, all with the convenience of simply including TraceView Java agent jar in your JVM. However, have you come across situations that make you think, "It would have been nice if this was traced too"? You can do this with the TraceView Java API. Don't feel like coding? Just annotate it! Have you seen a slowdown in your code, and have some methods you'd like to check? The simplest way is to add the @LogMethod or @ProfileMethod annotation to those methods. Invocations to those methods will then be traced by the Java agent and reflected on your TraceView panels. Since you can assign different layer/profile names for those methods, you can easily group them and gather useful sta... (more)

A Painless Introduction to Java’s ThreadLocal Storage

In my last blog, we explored WeakHashMap which is based by WeakReference in Java. Now let's look at some best practices for using another powerful class: ThreadLocal from java.lang, which is also implemented using WeakReference. What is ThreadLocal? A simple example As its name suggests, a single instance of ThreadLocal can store different values for each thread independently. Therefore, the value stored in a ThreadLocal instance is specific (local) to the current running Thread, any other code logic running on the same thread will see the same value, but not the values set on the... (more)

Tracing Black Boxes III: Solr Query Performance Tuning

Solr Server provides JMX statistics that show performance details such as query speed and cache hit/miss rates in a macro level, which James talked about in a previous post. However, it might be tough to trace how a particular operation; for example: how a specific query fared in the system. This week, I'd like to introduce TraceView's latest support for Solr Server, which provides breakdown of each operation, enabling more precise performance monitoring and troubleshooting. How does Solr work, anyway? Requests made to Solr Server can be roughly divided into 3 categories: queri... (more)