DX Application Performance Management

 View Only
  • 1.  Add Agent On OpenJDK:8-jre-alpine

    Posted Nov 28, 2018 10:02 AM

    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" ]


  • 2.  Re: Add Agent On OpenJDK:8-jre-alpine

    Broadcom Employee
    Posted Nov 28, 2018 10:16 AM

    alpine JVM is not supported, there is a certification request DE393918 to have Alphine Linux supported.

     

    For now use the openjdk:8

     

    Regards,

    Sergio



  • 3.  Re: Add Agent On OpenJDK:8-jre-alpine

    Posted Nov 28, 2018 01:37 PM

    Thanks Sergio, is there any subscription alert for that Development Case?



  • 4.  Re: Add Agent On OpenJDK:8-jre-alpine
    Best Answer

    Broadcom Employee
    Posted Nov 29, 2018 04:36 AM

    Hi Walter,

     

    I am afraid it is not possible. It seems adding this support requires code changes so my suggestion for you is to open a support case and for the engineer to link your case with the above DE.  This will help Product management and Development prioritize this request, make sure to include the priority and business impact.

     

    As far I can see, this support has already been classified as a Enhancement, that means to be fixed in a future release, there is no ETA.

     

    I hope this helps,

    Regards,

    Sergio