File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Implementing a Java Agent Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Implementing a Java Agent" Watch "Implementing a Java Agent" New topic

Implementing a Java Agent

Arun C Mohan

Joined: Aug 24, 2012
Posts: 2
I am required to build a Java Profiler Agent using YourKit Java Profiler that can be a attached to a Virtual Machine that is listed. The Virtual Machines running can be listed using the following code:

There is also provision for self profiling an application. The code is:

The situation that I have encountered is to convert the above profiling code to an Agent that can be attached to the Virtual Machine. I am not familiar with the norms of building an agent and my searches haven't produced any utilizable results for this situation. So at this point, any and every help in this regard is more than welcome.
I agree. Here's the link:
subject: Implementing a Java Agent
It's not a secret anymore!