Awesome news.

With Dynatrace 6.1 we added 2 classes to ClassLoader sensor pack in order for Dynatrace to be able to monitor WAS Liberty Profile Server. This was done on WAS Liberty profile server 8.5.5.4

In order to make the change go into debug ctrl + Shift + F9. Select Sensor Packs, edit the ClassLoader sensor pack. Click add class and add one at a time.

org.eclipse.osgi.internal.loader.EquinoxClassLoader

org.eclipse.osgi.internal.loader.ModuleClassLoader

After adding each class edit the method and change the method from all methods to loadClass(*)

The screenshot specifies all the changes needed. Visibility needs to change to public / default/ protected

Apply and then restart the JVM

Additional info.

There was an initial support ticket SUPDT-6650 with additional details on the error message that you might see, it effected the initial log in to the application with Null Pointer Exceptions and NoClassDef Errors.Again this was resolved with the addition of the class loaders.

Here is the where the agentpath is added to the WAS Liberty Profile Server

command line is /opt/IBM/WebSphere/AppServer/java/jre/bin/java -javaagent:/opt/IBM/WebSphere/Liberty/bin/tools/ws-javaagent.jar -Djava.awt.headless=true -XX:MaxPermSize=256m -Xmx1024m -verbose:class -verbose:gc -Xverbosegclog:logs/verbosegc.log -agentpath:/opt/dynatrace-6.1.0/agent/lib64/libdtagent.so=name=WebSphere_App,server=ipaddress:9998 -jar /opt/IBM/WebSphere/Liberty/bin/tools/ws-server.jar ApplicationName

This was installed on Linux. 64 bit. On IBM J9 VM 2.6

Dynatrace 6.1.0.7880 build was used with fix pack 8054 applied.

WAS liberty Profile Server sensor pack attached.

In the attachments is a sensor pack that Jeff Yarbrough put together. Simple import this sensor pack into your Dynatrace server. Click on Tools in the top right hand corner and then select attachments. From there you can download the sensor pack and import it into Dynatrace. Nick work Jeff.

  1. Anonymous (login to see details)

    We can use a sensor pack to apply the changes, this would be preferred, as we are not changing the OOB sensor.

    You can then simply import the sensor pack into the server configuration.

    Thanks,

     

  2. Anonymous (login to see details)

    In the attachments is a sensor pack that Jeff Yarbrough put together. Simple import this sensor pack into your Dynatrace server. Click on Tools in the top right hand corner and then select attachments. From there you can download the sensor pack and import it into Dynatrace. Nick work Jeff.

     

    MIke

  3. Anonymous (login to see details)

    Hello All,

    I tried making this work with a sensorpack, with no luck.

    For starters, these classes are misspelled and incomplete in the article. The correct classes are:

    org.eclipse.osgi.internal.loader.EquinoxClassLoader

    org.eclipse.osgi.internal.loader.ModuleClassLoader

    When I add these classes and the method listed in the article to the built in ClassLoader sensorpack, everything works. However, when I import the attached sensor pack (and fix the typos), it doesn't work.

    I also tried creating my own sensor pack, and I still have the same issues. I can confirm this works (and doesn't work) on 5.6 and 6.1.

    Any ideas?

  4. Anonymous (login to see details)

    Thanks Cesar for the information I have corrected the spelling mistake in the posting. Apologize for the inconvenience. I corrected the spelling mistakes in the sensor pack as well, but I expect the same result as you had. Unfortunately I do not have a WAS liberty profile server to test against. We put the sensor pack together to make it easier for customers. Also there is a very good chance these classes will be added to the ClassLoader sensor in 6.2.

    Once you have added your(s) or this new sensor pack and the JVM Is bounced, do you see these classes deployed in the agent overview dashboard?

    Thanks

    Mike

  5. Anonymous (login to see details)

    How about liberty in CICS on ZOS?

    Thanks

    Peter

    1. Anonymous (login to see details)

      Hi Peter

      Never tried it out. Sorry.

      Mike