MaintainJ Blog

September 21, 2011

So you hate clicking ‘Start’ and ‘Stop Tracing’ buttons

Filed under: Uncategorized — maintainj @ 4:24 pm

If you are generating trace files for lot of use cases, clicking the ‘Start Tracing’ and ‘Stop Tracing’ buttons can be tedious.

You don’t need to keep clicking

You do not really need to do it as documented in an earlier blog. Contact us if you need any further help and we will be glad to work with you to customize it for your application.

The problem with generating a trace file for every server hit

The main problem with this approach is that the name of the generated trace files does not indicate the use case for which it is generated. The trace file name is auto-generated and is like ‘traceFileXX_threadName.ser, where XX is the trace file count starting from 1.

When you click the ‘Stop Tracing’ button, you provide the use case name, which becomes the trace file name. When you are not clicking buttons, you are not giving the use case name.

How do we solve this problem?

The solution has to be application specific. If you are dealing with a web application, there is probably a unique identifier with every request to the server in the url or in the parameters passed. This unique identifier can be used to make the trace file name more meaningful.

For now, contact us if you need to do this. We will give you an updated MaintainJAspect.jar file with the logic to produce the trace files with meaningful names. In future releases we will provide a way for you to implement this logic yourself.

Choudary Kothapalli.

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

You must be logged in to post a comment.

Powered by WordPress