Hi dynaTrace Community,
Recently I encountered a situation that a file descriptor was opened but not close by an application. It led to SocketException which indicate too many file opened. We can go through each exception and create incident notification for them. But is there any other way to resolve similar situation?
Thanks,
-Ronald
Answer by Ronald M. ·
Hi Andi,
Thanks for your suggestion. I was also thinking about the similar approach but more on the exception. However, catching the exception and sending out the notification would be a little too late. Your approach is more proactive and appropriate.
One question is though, I am not familiar where to look for those process in dynaTrace. If such information could be obtained under Tomcat that would be great. I would appreciate your guidance.
Thanks,
-Ronald
Hi Ronald
You can create a new measures in your System Profile that returns the Handle Count of your process. Here are the steps
a) Open System Profile
b) Go to Measures
c) Click "Create Measure"
d) Select Server Side Performance->Agent based Measures->Process Perormance->Handle Count
e) from now on you have this measure that you can chart, define a threshold and use for Incidents
Andi
Answer by Andreas G. ·
Hi Ronald
If your application is "leaking" file handles I would start building a dashboard that charts the handle count for your process. That will show you whether your handles are growing over time. You can also set a threshold on that measure and define an Incident that warns you prior to reaching the limit that leads to those SocketExceptions
Andi
JANUARY 15, 3:00 PM GMT / 10:00 AM ET