• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Access & Method Tracing

 
Moenieb Davids
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 862
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not exactly what you are looking for, but have you tried visualvm which comes for free with java?
 
Moenieb Davids
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 862
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic