wood burning stoves
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 Building Microservices this week in the Design 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

SCJP, SCJD,SCWCD,SCDJWS,SCEA 5 MCP-C#, MCP-ASP.NET - http://www.khaledinho.com/
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 : http://today.java.net/pub/a/today/2008/04/24/add-logging-at-class-load-time-with-instrumentation.html
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 http://www.ej-technologies.com/
Have you checked out Aspose?
subject: Performing Java Profiling at Runtime
jQuery in Action, 3rd edition