Hi,
We are trying to monitor a batch process that is running in our weblogic environment. What happens is a process is spawned when weblogic starts. The process monitors a mailbox on our exchange server. If it finds a message it processes it. We have determined through trial and error that a method sensor is the way to go. The issue we are having is how to end the purepath that gets started. We would like to get a purepath for each e-mail. Currently a purepath starts but it just goes and goes until it truncates or times out.
Any ideas or suggestions would be appreciated.
Thanks,
Jim
Answer by Andreas G. ·
Hi Jim
It seems you need to find a different Entry Point method to start your PurePath because a PurePath always lasts as long as the entry point method. There is no optin to "stop" a PurePath. I assume you something similar to the following execution pattern
-> waitForNextMessage
--> processMessage(1)
--> processMessage(2)
--> ....
If this is the case you need to start the Purepath one level deeper at the processMessage method (or whathever that method is that is actually doing the processing for a single message in your system. That will make sure that the PurePAth stops after the message is processed.
If you dont know which method to pick you can do a CPU Sampling. There is a dashlet in dynaTrace that allows you to do a "traditional" CPU Sampling Session. This will give you more details on the actual methods called and it will be easy to pick the best entry point method
Let me know if this helps
Your recommendation was spot on. We found the correct entry point and then created a sensor for it. We are now getting a purepath for email being processed. My issue now is creating a business transaction for the purepath created so we can get the activity on the application overview dashboard that Dynatrace gives you out of the box. Any ideas on how to accomplish this?. I can't seem to create a measure or a filter based on the purepath name. I created a measure for the same method that we created the purepath from but for some reason the business transaction is not showing up. I'm going to study the documentation again to see if I can figure out what I'm doing wrong. If you have any ideas I'm all ears.
Thanks for your help. At least we are getting the purepaths now which is very helpful for our development staff.
Jim
I would create a Method Invocation Measure for your Entry Point Method. Set the upper severe threshold to 1 and then use this measure as a Filter. This will then give you all PurePaths where this entry point method is at least called once (which it should). Then you can add it to the App Overview
JANUARY 15, 3:00 PM GMT / 10:00 AM ET