Profiling Tomcat Webapp with VisualVM and NetBeans – Pitfalls

Profiling a webapp running on Tomcat with VisualVM or NetBeans wasn’t as easy as expected, so this is a brief record of what to avoid to succeed. Environment: Mac OS X, Java JDK 1.6.0_29, Netbeans 7.1, VisualVM 1.3.3 (installed separately), Tomcat 6. The Pitfalls: VisualVM VisualVM Sampler and Profiler: To be able to drill downContinue reading “Profiling Tomcat Webapp with VisualVM and NetBeans – Pitfalls”

Joshua Bloch: Performance Anxiety – on Performance Unpredictability, Its Measurement and Benchmarking

Joshua Bloch had a great talk called Performance Anxiety (30min, via Parleys; slides also available ) at Devoxx 2010, the main message as I read it was Nowadays, performance is completely non-predictable. You have to measure it and employ proper statistics to get some meaningful results. Microbenchmarking is very, very hard to do correctly. No,Continue reading “Joshua Bloch: Performance Anxiety – on Performance Unpredictability, Its Measurement and Benchmarking”

Eclipse Profile configuration: The launch requires at least one data collector

I just installed TPTP into my Eclipse 3.5 under Ubuntu 9.04 and tried to profile a class. The Profile Configuration opened with a red warning reading “the launch requires at least one data collector to be selected“. Clicking the configuration’s Monitor tab reveals a more detailed error (and nothing to select): IWATO435E An error occuredContinue reading “Eclipse Profile configuration: The launch requires at least one data collector”

RAD: Profiling a portlet

Recently I needed to profile a portlet to find its time performance bottlenecks. Since I developed it in RAD using its WebSphere 5.1 Test Environment, I thought I’d run the server in the Profiling mode and would get the results. The profiler worked very hard, but at the end no results were displayed.  I triedContinue reading “RAD: Profiling a portlet”