Java Performance Services
Training, Seminars, Benchmarking, Tuning

Java Performance Tuning Course


Chania Crete, May 17-20, 2010


Expert led Training
Including admission to JFokus
Stockholm Sweden
January 25th-29th.

Sun Extreme Learning EXL-2025

Washington, Jan 5-8,2009
San Fransisco, Jan 11-14, 2009
Atlanta, Feb 8-11, 2010
Tokyo, March 1-5, 2010
Hong Kong, TBD



San Francisco, January 11-14

Anti-if

I have joined Anti-IF Campaign

Calendar

««Feb 2010»»
SMTWTFS
  123456
78910111213
14151617181920
21222324252627
28

Performance Anti-Patterns

My Top Tags

                                       

Mailing List

My RSS Feeds








Profiling on the Cloud with NetBeans

posted Tuesday, 14 October 2008

Today I sorted out how to blow through the firewalls and other blockages to get the NetBeans profiler to attach to an instrumented JVM running in the cloud. Here is a blow by blow account of all the action.

 

1) Download the remote profiling pack and install it in the cloud. Remember to run the calibration.

2) Setup ssh port forwarding using "ssh -N  -l login_id -L 5140:localhost:5140 ec2-mycloud.compute-1.amazonaws.com

3) Start your application using the -agentlib parameter configured to point at the correct shared library.

4) Start NetBeans on your local machine and attach to localhost.

 

And with that, you'll be off on profiling. Oh, one last point, if you get and authentication error, just setup private/public key.

With virtualization and clouds all the rage, it was only inevitable that I'd start running into them. I like clouds, they are very useful. Now that I can profile apps running in them, I like them even more.

tags:            




1. anjan bacchu left...
Wednesday, 15 October 2008 3:24 am :: http://anjanb.wordpress.com

hi kirk,

  • So, you used amazon for debugging the JVM in the cloud. Was that for experimental purposes OR you were having a real app ?

  • Why did you use Netbeans ? I'm sure you've used pretty much all the profilers out there in the market ?

Thank you,

BR,<BR> ~A


2. Kirk Pepperdine left...
Wednesday, 15 October 2008 6:49 am

I used NetBeans because I'm hunting down a memory leak and this is the simplist option and yes, it's a live system.

Indeed there are many very good profilers out there. So many in fact that I've not even come close to using all of them.

Kirk


3. William Louth left...
Wednesday, 15 October 2008 7:32 pm :: http://www.jinspired.com

You do know that other tools (not necessarily heap walkers) offer a local and scripted command interface and do not require an outbound port to a client console to run.

Heap walking in a "live" system over a relatively slow line. That is brave if not .....