Java Performance Services
Training, Seminars, Benchmarking, Tuning

Java Performance Tuning Course


Chania Crete, May 17-20, 2010


Sun Extreme Learning EXL-2025

Houston, December 1-4,2009
New York, December 8-11, 2009
Washington DC, January 5-8, 2010



San Francisco, January 11-14

Anti-if

I have joined Anti-IF Campaign

Calendar

««Nov 2009»»
SMTWTFS
1234
5
67
891011121314
15161718192021
22232425262728
2930

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 .....