wood burning stoves 2.0*
The moose likes Performance and the fly likes Access & Method Tracing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Performance
Bookmark "Access & Method Tracing" Watch "Access & Method Tracing" New topic
Author

Access & Method Tracing

Moenieb Davids
Greenhorn

Joined: Aug 22, 2011
Posts: 3
Hi,

Was wondering if it is possible to to deploy an applet that will listen to every instances of methods on a server.

For example:
When a message enters the server, i would like to know
1: where it is coming from,
2: who is sending it,
3: which method/s is being invoked
4: and how long it took.

can an applet like this be deployed on the server and attached itself to the runtime? or the server application? or the OS?
steve souza
Ranch Hand

Joined: Jun 26, 2002
Posts: 860
Not exactly what you are looking for, but have you tried visualvm which comes for free with java?


http://www.jamonapi.com/ - a fast, free open source performance tuning api.
JavaRanch Performance FAQ
Moenieb Davids
Greenhorn

Joined: Aug 22, 2011
Posts: 3
I dont think VisualVM will be able to tell you which methods were invoked, who invoked it and how long it took
Or am i wrong?
Thanks for the reply
steve souza
Ranch Hand

Joined: Jun 26, 2002
Posts: 860
what do you mean by 'who'? User name? or calling code? It may not do everything you need, but if you haven't tried it I suggest you do. It does have the ability to track method level calls.

JAMon also allows you to monitor some things with no code changes (page info, sql info, ejb info). It tracks hits, time, exceptions and more. You can also add jamon monitors to your own code and monitor just about anything you want. However, it isn't a code profiler in the sense of looking at calling stacks. You may need to look at some of the commercial code profilers if you want a completely full featured profiler.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Access & Method Tracing
 
Similar Threads
call applet problem
onclick()...
Started learning Go
Tracing Mechannisms
How to make an applet signed?