question

Joachim B. avatar image
Joachim B. asked ·

Put Script Output into Measure

I want to measure the CodeCache committed size in a SAP JavaVM. In an Oracle Java VM it's possible by JMX. Out of the box.

A SAP Java VM doesn't have such a JMX metric.

Is it possible, maybe by the help of plugin, to call a script regullary and put the result into a dynatrace measure?

/opt/hybris/java/sapjdk8.1.050/sapjvm_8/bin/jvmmon -pid 73526 -c "print jit info"

======================
   General JIT info   
======================
            JIT is :      on
    Total CPU time :  463,29 s
  Compiler threads :       2
CodeCache overview
--------------------------------------------------------
         Reserved size :  512000 KB
        Committed size :  179840 KB
  Unallocated capacity :  334281 KB
         Stubs :  1225 blobs,    0 not-entrant,  2502 KB
  comp level 0 :   270 blobs,    0 not-entrant,   225 KB
  comp level 1 :  7393 blobs,    0 not-entrant,  5877 KB
  comp level 2 :  4821 blobs,    0 not-entrant, 10464 KB
  comp level 3 : 18803 blobs,   16 not-entrant, 90811 KB
  comp level 4 : 12258 blobs,    0 not-entrant, 63125 KB
CodeCache cleaning overview
...
appmon7.2measures
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

1 Answer

Sebastian K. avatar image
Sebastian K. answered ·

tge answer for your question are Dynatrace monitors:

https://www.dynatrace.com/support/doc/appmon/infrastructure-monitoring/monitors/

You can’t write own monitor that will do what you need.

https://github.com/Dynatrace/Dynatrace-AppMon-BizTalk-Monitor-Plugin

Here you have sample monitor that can be used by you as starting point for writing your own. Monitor is executed on collector so it may be needed to find way how it can fetch data you need.

Possibly some script on sap host side.

Sebastian

Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.