• Forums
    • Public Forums
      • Community Connect
      • Dynatrace
        • Dynatrace Open Q&A
      • Application Monitoring & UEM
        • AppMon & UEM Open Q&A
      • Network Application Monitoring
        • NAM Open Q&A
  • Home /
  • Public Forums /
  • Application Monitoring & UEM /
  • AppMon & UEM Open Q&A /
avatar image
Question by Ronald M. · Mar 21, 2012 at 05:28 AM ·

Way to detect detect files, sockets or other external resource opened but not close

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

Comment
Chad T.

People who like this

1 Show 0
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

2 Replies

  • Sort: 
  • Most voted
  • Newest
  • Oldest
avatar image

Answer by Ronald M. · Mar 29, 2012 at 04:18 AM

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

Comment
Chad T.

People who like this

1 Show 1 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image Andreas G. ♦ · Mar 29, 2012 at 02:16 PM 1
Share

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

avatar image

Answer by Andreas G. · Mar 21, 2012 at 02:18 PM

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

Comment
Chad T.

People who like this

1 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

How to get started

First steps in the forum
Read Community User Guide
Best practices of using forum

NAM 2019 SP5 is available


Check the RHEL support added in the latest NAM service pack.

Learn more

LIVE WEBINAR

"Performance Clinic - Monitoring as a Self Service with Dynatrace"


JANUARY 15, 3:00 PM GMT / 10:00 AM ET

Register here

Follow this Question

Answers Answers and Comments

2 People are following this question.

avatar image avatar image

Forum Tags

dotnet mobile monitoring load iis 6.5 kubernetes mainframe rest api dashboard framework 7.0 appmon 7 health monitoring adk log monitoring services auto-detection uem webserver test automation license web performance monitoring ios nam probe collector migration mq web services knowledge sharing reports window java hybris javascript appmon sensors good to know extensions search 6.3+ server documentation easytravel web dashboard kibana system profile purelytics docker splunk 6.1 process groups account 7.2 rest dynatrace saas spa guardian appmon administration production user actions postgresql upgrade oneagent measures security Dynatrace Managed transactionflow technologies diagnostics user session monitoring unique users continuous delivery sharing configuration alerting NGINX splitting business transaction client 6.3 installation database scheduler apache mobileapp RUM php dashlet azure purepath agent 7.1 appmonsaas messagebroker nodejs 6.2 android sensor performance warehouse
  • Forums
  • Public Forums
    • Community Connect
    • Dynatrace
      • Dynatrace Open Q&A
    • Application Monitoring & UEM
      • AppMon & UEM Open Q&A
    • Network Application Monitoring
      • NAM Open Q&A