Hi! I want add a instroscope agent on a application running on a container, the application runs with the following " FROM" in the Dockerfile
FROM openjdk:8-jre-alpine
Next, When a I Tried to add a java agent and start the container the following error appears and the application does not start
[ec2-user@ip-172-31-42-230 docker-apm]$ docker logs docker-apm
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f4ead540335, pid=1, tid=0x00007f4e9993fae8
#
# JRE version: OpenJDK Runtime Environment (8.0_181-b13) (build 1.8.0_181-b13)
# Java VM: OpenJDK 64-Bit Server VM (25.181-b13 mixed mode linux-amd64 compressed oops)
# Derivative: IcedTea 3.9.0
# Distribution: Custom build (Tue Oct 23 11:27:22 UTC 2018)
# Problematic frame:
# C [ld-musl-x86_64.so.1+0x49335] getdelim+0x1b7
#
# Core dump written. Default location: /wily/core or core.1
#
# An error report file with more information is saved as:
# /wily/hs_err_pid1.log
#
# If you would like to submit a bug report, please include
# instructions on how to reproduce the bug and visit:
# http://icedtea.classpath.org/bugzilla
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007fb59ea07335, pid=1, tid=0x00007fb58ae06ae8
#
# JRE version: OpenJDK Runtime Environment (8.0_181-b13) (build 1.8.0_181-b13)
# Java VM: OpenJDK 64-Bit Server VM (25.181-b13 mixed mode linux-amd64 compressed oops)
# Derivative: IcedTea 3.9.0
# Distribution: Custom build (Tue Oct 23 11:27:22 UTC 2018)
# Problematic frame:
# C [ld-musl-x86_64.so.1+0x49335] getdelim+0x1b7
#
# Core dump written. Default location: /wily/core or core.1
#
# An error report file with more information is saved as:
# /tmp/hs_err_pid1.log
#
# If you would like to submit a bug report, please include
# instructions on how to reproduce the bug and visit:
# http://icedtea.classpath.org/bugzilla
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
Then If I change the "from" to openjdk:8 the application start correctly and the agent start sending metrics.
Any idea how can I add the javaagent?
This is the .Dockerfile
FROM openjdk:8-jre-alpine ####NOT WORK
FROM openjdk:8 #### WORKS FINE
ADD docker-spring-boot.jar docker-spring-boot.jar
EXPOSE 8080
ADD wily wily
RUN apt-get update && apt-get install telnet
#RUN chmod -R o+x wily
#RUN chmod 777 /wily
WORKDIR /wily
ENV JAVA_OPTS='-javaagent:Agent.jar -Dcom.wily.introscope.agentProfile=core/config/IntroscopeAgent.profile'
ENTRYPOINT [ "sh", "-c", "java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar /docker-spring-boot.jar" ]
#ENTRYPOINT [ "sh", "-c", "java -Djava.security.egd=file:/dev/./urandom -jar /docker-spring-boot.jar" ]