pinpoint icon indicating copy to clipboard operation
pinpoint copied to clipboard

Unable to configure pinpoint on docker container application

Open shaisthajabeen610 opened this issue 1 year ago • 5 comments

  • [x] I have checked the FAQ, and issues and found no answer.

shaisthajabeen610 avatar Aug 08 '22 08:08 shaisthajabeen610

@shaisthajabeen610 if you dont detail your problem we wont be able to help.

dv-morais avatar Aug 08 '22 12:08 dv-morais

Hi all,

I am trying to configure Pinpoint on my java application container, to monitor application using Pinpoint.

I have downloaded pinpoint agent in the container. and then tried to run -javaagent:$AGENT_PATH/pinpoint-bootstrap-$VERSION.jar

I got error after running javaagent. please find below screenshot.

image

Is there anything I missed,

Help is really appreciated

shaisthajabeen610 avatar Aug 08 '22 12:08 shaisthajabeen610

You should configure your ApplicationName with -Dpinpoint.applicationName=${APP_NAME} option. Please see JAVA_OPTS in docker-compose file. Screen Shot 2022-08-09 at 10 49 35 AM

ga-ram avatar Aug 09 '22 01:08 ga-ram

Hi Ram,

This is my repo https://github.com/shaisthajabeen610/smartopsdemo.git

Please let me know what else changes are need to be done.

Thanks in advance

shaisthajabeen610 avatar Aug 10 '22 11:08 shaisthajabeen610

@shaisthajabeen610

It seems the smartops-server.tar.gz is a tomcat.

My suggestion would be create a file called setenv.sh inside the bin folder of your tomcat.

Inside it you should put your agent properties as already described by @ga-ram

CATALINA_OPTS="$CATALINA_OPTS -javaagent:/..."

dv-morais avatar Aug 10 '22 13:08 dv-morais