Persistent instrumentantion for Java

  • Thread starter Deleted member 43669
  • Start date
Status
Not open for further replies.
D

Deleted member 43669

Guest
Hi,

We have an application at work that we'd like to monitor for performance. Actually, what we want to monitor is not our app's performance, but things like response time for external web services we invoke.

Years ago, using ATG Dynamo, you could instrument your code with something like...

Code:
Performance.monitorStart("my.operation");
try {
  // code goes here
}
finally {
  Performance.monitorEnd("my.operation");
}

; this generated a nice report of the time spent in diverse operations, in a friendlier way than hprof. Ideally, the time should be persisted (db or otherwise).

I recall seeing somewhere (here? Dzone? TSS?) about a new library that does this, but googling reveals nothing.

Thoughts?

Alex
 

benInMa

Ars Tribunus Militum
2,201
There are a large # of products that can do this at runtime now without you changing any of your code at all.. they are very powerful but also fairly expensive. They basically insert them selves into the bytecode at runtime to add the instrumentation. A lot of them can even run in production systems full time.. the performance hit is <5%.

You might want to look at those depending on what environment you're in.. if you're a student or a tiny development shop they'll be out of reach but if you're at a big company those types of performance tools pay for themselves very quickly.
 
Status
Not open for further replies.