Stan's Corner

 View Only
  • 1.  Having java issues when monitoring IIB & MQ in Instana

    Posted Thu October 27, 2022 10:19 AM
    Hello,

    My company is a partner with IBM and we are currently deploying Instana on-prem on our client's server.
    The issue we are facing right now is with the Java class sharing enabled (please refer to the attachments).
    Is this some combability issue with the JDK of Instana agent and the JDK of IIB & MQ ?
    Please help us and guide us with this issue of ours its showing the same error in Linux and Windows machines.

    Regards

    ------------------------------
    MJ Hassan
    ------------------------------


  • 2.  RE: Having java issues when monitoring IIB & MQ in Instana

    Posted Thu October 27, 2022 11:09 AM

    1. What happens when you follow the suggestion and turn off shared classes?

    2. For the other one is there anything useful in the agent logs?



    ------------------------------
    Brooke Hedrick
    ------------------------------



  • 3.  RE: Having java issues when monitoring IIB & MQ in Instana

    Posted Fri October 28, 2022 08:33 AM
    Edited by Brooke Hedrick Fri October 28, 2022 08:38 AM
    Per MJ Hassan

    Message From: MJ Hassan

    Hello,
    We are disabling the Xshare class but facing the error. Please find attachment for reference and also for the agent logs.





    ------------------------------
    Brooke Hedrick
    ------------------------------



  • 4.  RE: Having java issues when monitoring IIB & MQ in Instana

    Posted Fri October 28, 2022 08:35 AM
    By looking at https://www.ibm.com/docs/en/sdk-java-technology/8?topic=options-xshareclasses

    You should be trying -Xshareclasses:none to disable it.  Not -Xshareclasses:off

    ------------------------------
    Brooke Hedrick
    ------------------------------



  • 5.  RE: Having java issues when monitoring IIB & MQ in Instana

    IBM TechXchange Speaker
    Posted Thu October 27, 2022 04:22 PM
    With the IBM J9 JVM, you typically have either set Xshareclasses to None or to enableBCI.  And, add the instana-javaagent-1.0.0.jar.   You can see the JVM arguments below on my environment.

    -javaagent:/media/instana-javaagent-1.0.0.jar -Xshareclasses:enableBCI -Dcom.ibm.tools.attach.enable=yes -Xscmx512m -Xcodecachetotal200M -Xgcpolicy:gencon -Xjit:iprofilerMemoryConsumptionLimit=67108864 -Xdump:stack:events=allocation,filter=#300m -Xgc:preferredHeapBase=0x100000000 -Xdisableexplicitgc -Xss2048k -Dsun.net.http.allowRestrictedHeaders=true -Declipse.bundle.setTCCL=false "-javaagent:${WAS_INSTALL_ROOT}/lib/ext/agent.jar"

    ------------------------------
    Ben Stern
    Executive IT Specialist / Monitoring and Analytics Best Practices and Technical Evangelist
    IBM
    Durham NC
    919-224-1593
    ------------------------------



  • 6.  RE: Having java issues when monitoring IIB & MQ in Instana

    Posted Sun October 30, 2022 05:26 AM
    Hello Ben,
    It seems that we have the same issue with Xshareclasses:None and IBM J9 JVM when monitoring IBM Websphere Portal.
    With Xshareclasses:None Websphere Portal does not started correctly.
    We will try enableBCI.
    My question is about addition of  the instana-javaagent-1.0.0.jar ?
    Why this added? 
    Where this jar located ?.
    We have On Prem backend with static host agents.
    I see only file here:  /opt/instana-agent/system/com/instana/sensor-java-javaagent/1.0.18/sensor-java-javaagent-1.2.215.jar .
    Thanks in advance,



    ------------------------------
    Shimon Zaidman
    MATAF
    TEL-AVIV
    ------------------------------



  • 7.  RE: Having java issues when monitoring IIB & MQ in Instana

    Posted Sun October 30, 2022 04:45 PM
    Ticket number 29340 was opened 6 days ago.

    ------------------------------
    Shimon Zaidman
    MATAF
    TEL-AVIV
    ------------------------------



  • 8.  RE: Having java issues when monitoring IIB & MQ in Instana

    IBM TechXchange Speaker
    Posted Mon October 31, 2022 08:15 AM

    This is why I suggested you carefully read the section on IBM J9.   It documents a maven repository where you can download the file.  Here is the link:  https://repo1.maven.org/maven2/com/instana/instana-javaagent/

    Per my previous note, you need to use lower case "n" in "Xshareclasses:none"

    Place these at the beginning of your java arguments.  

    And, send us your full java arguments so that we can see them.



    ------------------------------
    Ben Stern
    Executive IT Specialist / Monitoring and Analytics Best Practices and Technical Evangelist
    IBM
    Durham NC
    919-224-1593
    ------------------------------