• 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 Jose I. · Apr 20, 2015 at 10:37 PM ·

How to monitoring an exe file (as dtclient.exe)?

Hi guys.

 

I've a customer that needs to monitor the client side of a client/server application, with a fat client based in Java. The issue is that the application is an exe file with plugins that are configured with an ini file:

-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20120522-1813
-nl
es_ES
--launcher.appendVmargs
-vmargs
-XX:+UnlockDiagnosticVMOptions
-XX:+UnsyncloadClass
-XX:+HeapDumpOnOutOfMemoryError
-XX:HeapDumpPath=P:\\pyxis_dumps\\
-Dfile.encoding=UTF8
-Dosgi.requiredJavaVersion=1.6
-Dorg.eclipse.net.core.enableProxyService=false
-Dsun.net.client.defaultConnectTimeout=5000
-Dsun.net.client.defaultReadTimeout=60000

Is pretty similar as dtclient.exe structure... so... Is it possible to hook an agent to this kind of applications? If the answer is yes... where has the agent be deployed? Anybody has hooked the dtclient.exe?

Thanks in advance and best regards

JMI

 

Comment

People who like this

0 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.

5 Replies

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

Answer by Jose I. · Apr 21, 2015 at 03:34 AM

Hi.

 

Finally I've hooked the dtclient.exe adding the agent in the dtclient.ini in the path C:\Users\cwes-jiglesia\.dynaTrace\dynaTrace 6.1.0... and it works fine... so i guess that the application of the customer should be similar... the only point is find the correct place to put the agent.

Thanks!

JMI

Comment

People who like this

0 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.

avatar image

Answer by Jose I. · Apr 21, 2015 at 03:08 AM

Hi, David.

I'm trying with the dtclient.exe and the command line that is being executed is this:

"D:\Program Files\dynaTrace\dynaTrace 6.1.0\jre\bin\javaw.exe" -Xmx1536M -XX:MaxPermSize=128M -Djava.library.path=plugins -Dosgi.checkConfiguration=true -Dosgi.bundles.defaultStartLevel=4 -Declipse.registry.nulltoken=true "-Dosgi.instance.area=@user.home/.dynaTrace/dynaTrace 6.1.0/" "-Dosgi.configuration.area=@user.home/.dynaTrace/dynaTrace 6.1.0/client/osgi" -Declipse.product=com.dynatrace.diagnostics.client.productId "-Dosgi.splashPath=platform:/base/plugins/com.dynatrace.diagnostics.client.branding, platform:/base/plugins/com.dynatrace.diagnostics.client.branding.jar" "-Dosgi.bundles=org.eclipse.equinox.common@2:start, org.eclipse.core.jobs@2:start, org.eclipse.equinox.registry@2:start, org.eclipse.core.runtime@2:start, org.eclipse.equinox.app@2:start, org.eclipse.update.configurator@3:start, org.eclipse.equinox.event@start, org.eclipse.equinox.ds@start, org.eclipse.equinox.preferences@start, org.eclipse.core.contenttype@start" -Dorg.osgi.framework.language=en -Dosgi.framework.extensions=com.dynatrace.diagnostics.bootstrap.hook -Dosgi.nl=en_US -Deof=eof -Duser.home=C:\Users\cwes-jiglesia -Dcom.dynatrace.diagnostics.WatchDogTimeout=0 "-Dcom.dynatrace.client.configPath=C:\Users\cwes-jiglesia\.dynaTrace\dynaTrace 6.1.0" -Dcom.dynatrace.client.restartCount=0 "-Dcom.dynatrace.diagnostics.server.ini=C:\Users\cwes-jiglesia\.dynaTrace\dynaTrace 6.1.0\dtclient.ini" -Dosgi.os=win32 -Dosgi.ws=win32 -Dosgi.arch=x86_64 -Dcom.dynatrace.diagnostics.WatchDogPort=50000 -jar "D:\Program Files\dynaTrace\dynaTrace 6.1.0\client\plugins\org.eclipse.equinox.launcher_1.2.0.v20110502.jar" -name dtclient -showsplash -launcher "D:\Program Files\dynaTrace\dynaTrace 6.1.0\dtclient.exe"

If i try to execute it directly, the splash windows is shown, but the dtclient is not starting... also, I've tried to insert the -agenpath in several places... and doesn't work.

 

Thanks!

JMI

Comment

People who like this

0 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.

avatar image

Answer by Jose I. · Apr 21, 2015 at 02:41 AM

Hi, guys.

I've tried adding the -agentpath:D:\agent\lib\dtagent.dll=name=Pyxis_Clientes_JMI,server=localhost:9998 to the .ini and nothing happens... is like this line is not being recongnized by the javaw.exe launcher.

 

All the best

JMI

Comment

People who like this

0 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 Dave M. · Apr 21, 2015 at 02:53 AM 0
Share

Have you checked the command line in task manager to see if it was passed as an argument?  Have you tried inserting after the "vmargs" line or after the "-nl" line (after the "es_ES" line)?

avatar image

Answer by Dave M. · Apr 21, 2015 at 12:24 AM

I have instrumented our dtserver in the past for troubleshooting and you basically just add the agentpath in the settings.

For the dtserver, support told me that the agentpath should be added to dtserver.ini right before the line that says "-server".

Disclaimer:  Please do not instrument your DT server without involvement from Dynatrace Support...

Comment

People who like this

0 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.

avatar image

Answer by Sreerag M. · Apr 20, 2015 at 11:57 PM

Never tried this. My guess is that you can add the agent params in the ini file where the JVM memory settings are present.

-Sreerag

Comment

People who like this

0 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