Two Laptop Bag*
The moose likes Performance and the fly likes Performing Java Profiling at Runtime Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Performance
Bookmark "Performing Java Profiling at Runtime" Watch "Performing Java Profiling at Runtime" New topic

Performing Java Profiling at Runtime

Khaled Mahmoud
Ranch Hand

Joined: Jul 15, 2006
Posts: 361
Hello all,

There is a way in Java to perform Java profiling programatically (By using an API) and on demand.
Below is an example of what I am looking for

Life is the biggest school
Khaled Mahmoud
Ranch Hand

Joined: Jul 15, 2006
Posts: 361
Since I have got no reply, I did some thorough investigation about it and a found a somewhat near solution to what I am looking for.

This can be enabled through the Java instrumentation API which allows you to insert "programming statements"
to a method at runtime and upon the start of the Java virtual machine. What you have to do is to write a class
in a specific form that and pass it to JVM as an argument when it starts.

Check this tutorial :
ejaz khan

Joined: Apr 08, 2013
Posts: 5
Dear Friend,

You can use Jprofiler 7.2.2 for dynamic instrumentation of your Java program
You will be abl to do remotely perform profiling very easily
Download a copy
I agree. Here's the link:
subject: Performing Java Profiling at Runtime
Similar Threads
JVM profiling - java ??
What is MethodArea? Is it stack itself?
Stack Memory
refactoring, final keyword and JVM tuning