Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Not able to configure stagemonitor without modifying the application #481

Open
Veer-N opened this issue Feb 10, 2021 · 1 comment
Open

Comments

@Veer-N
Copy link

Veer-N commented Feb 10, 2021

I am not able to install/configure stagemonitor on my app without modifying the application, I followed the same commands as mentioned here: https://github.com/stagemonitor/stagemonitor/wiki/Step-1%3A-In-Browser-Widget#install-stagemonitor-without-modifying-the-application

Steps followed:

  • Copy pasted my App in tomcat/web-apps folder
  • tomcat/web-apps/MyApp/WEB-INF/lib has the following 6 stagemonitor jars (configuration, core, jdbc, jvm, tracing, web-servlet) all version - 0.89.1
  • Created setenv.bat inside tomcat/bin folder with below line:
    set CATALINA_OPTS=%CATALINA_OPTS% -Dstagemonitor.applicationName=MyApp -Dstagemonitor.instanceName=dev -Dstagemonitor.instrument.include=com.package.name
  • Ran startup.bat

Now application starts, but stagemonitor doesn't shows up.
What am I missing/doing wrong.
Thanks
-Veer

@Veer-N
Copy link
Author

Veer-N commented Feb 11, 2021

Got it working..
When I was trying to run from startup.bat, it was compiling from some other version of jre, so I had to explicitly mention the jre version in the setenv.bat as below:

set JRE_HOME=C:\Program Files\Java\jre1.8.0_xxx

That is all that was missing.
-Veer

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant