• 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 Bill R. · Mar 03, 2015 at 02:14 AM ·

Jboss 6 on Win 7 Agent Connect Problem

Hi Folks,

Total newbie to dynaTrace here.

Platform:  Windows 7 SP1, 64 Bit, JBoss EAP 6.3.0 (Can't tell if it is 64 or 32 bit, the JBoss downloader didn't give me a choice)

JBoss server (standalone) comes up without any errors.

dynaTrace 6.1.0

 

Problem:  When making a profile to create the JBoss tier, the system tells me to:  "add the following configuration string ..." and the string is:

-agentpath:"C:\Program Files (x86)\dynaTrace\dynaTrace 6.1.0\agent\lib64\dtagent.dll"=name=JBoss_JBoss6,server=bill-pc-2:9998

I go into the file <jboss-eap-home>\bin\standalone.conf.bat and I add the following two lines:

rem # For dynaTrace
set "JAVA_OPTS=%JAVA_OPTS% -agentpath:"C:\Program Files (x86)\dynaTrace\dynaTrace 6.1.0\agent\lib64\dtagent.dll"=name=JBoss_JBoss6,server=bill-pc-2:9998"

 

When I restart JBoss, by running "standalone.bat" as is described in the menu selection properties (inside an administrator's window so I can capture the output), I get:

C:\Program Files\EAP630\jboss-eap-6.3\bin>standalone.bat

Calling "C:\Program Files\EAP630\jboss-eap-6.3\bin\standalone.conf.bat"

\dynaTrace\dynaTrace was unexpected at this time.

I have tried fiddling with the double quotes and backslashes in the statement and do not seem to be able to get it to work.

 

Do you have any advise?

 

Thanks,

Bill

 

 

 

 

 

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.

4 Replies

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

Answer by Wolfgang G. · Mar 03, 2015 at 05:15 PM

Another possible solution - I'm notoriously lazy when it comes to typing path names, so I prefer to use mklink /j to create a short alias that I use afterwards. So for example, I use 

mklink /j c:\dt61 "c:\Program Files\dynaTrace\dynaTrace 6.1.0"

and then I can use

set JAVA_OPTS=%JAVA_OPTS% -agentpath:"C:\dt61\agent\lib64\dtagent.dll"=name=MyAwesomeAgent_SystemProfile,server=wolfgang-pc:9998

without having to worry about spaces. 

 

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 Bill R. · Mar 03, 2015 at 09:14 PM 0
Share

This worked perfecty.

Perhaps this thread should be renamed something like "Dealing with blank spaces in path names"?

Thanks,

Bill

avatar image

Answer by Rob V. · Mar 03, 2015 at 09:47 AM

Hey Bill,

It seems you have too many wrapping double-quotes. After the SET there should not be a double-quote before JAVA_OPTS. You'll need to remove the matching trailing double-quote too.

Rob

 

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 Bill R. · Mar 03, 2015 at 09:16 PM 0
Share

Hi Rob,

All the other entries in the existing file have double quotes after the SET and at the end of the line.  So I'm going to leave those there.  I found Wolfgang's solution (using mklink) worked.

 

Thanks,

Bill

avatar image

Answer by Kristof R. · Mar 03, 2015 at 09:40 AM

Hi Bill,

I do see a double quote in front of JAVA: rem set "JAVA.

Perhaps that is the culprit?

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 Bill R. · Mar 03, 2015 at 09:19 PM 0
Share

Hi Kristof,

All the other lines in the existing file have double quotes there so I'm letting them stay.

I found Wolfgang's solution worked (using mklink).

Thanks,

Bill

avatar image

Answer by Bill R. · Mar 03, 2015 at 09:13 AM

More: 

Here are three versions I've tried so far, and gotten identical results (imagine the "rem" is not in the line) ...

rem # For dynaTrace
rem set "JAVA_OPTS=%JAVA_OPTS% -agentpath:"C:\Program Files (x86)\dynaTrace\dynaTrace 6.1.0\agent\lib64\dtagent.dll"=name=JBoss_JBoss6,server=bill-pc-2:9998"
rem set "JAVA_OPTS=%JAVA_OPTS% -agentpath:\"C:\Program Files (x86)\dynaTrace\dynaTrace 6.1.0\agent\lib64\dtagent.dll\"=name=JBoss_JBoss6,server=bill-pc-2:9998"
rem set "JAVA_OPTS=%JAVA_OPTS% -agentpath:\"C:\Program Files (x86)\dynaTrace\dynaTrace 6.1.0\agent\lib64\dtagent.dll\\"=name=JBoss_JBoss6,server=bill-pc-2:9998"

I suspect the best approach is to uninstall dynaTrace and re-install it in C:\ and thereby get rid of the spaces in the path.

Bill

 

Comment

People who like this

0 Show 2 · 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 Reinhard W. · Mar 03, 2015 at 10:38 AM 0
Share

Try with double backslashes C:\\Program Files (x86)\\ ... I think you can even use forward slashes when they are passed to java

avatar image Bill R. Reinhard W. · Mar 03, 2015 at 09:21 PM 0
Share

Hi Reinhard,

I tried Wolfgang's mklink trick and it worked, so went with it.

Thanks,

Bill

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

4 People are following this question.

avatar image avatar image 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