Hi @AntonioSousa I appreciate your response and keen interest. I wanted to understand the work logic behind it. Please try to explain or respond to my below concerns.
1- The link shared has all the information that mentions how jvm works and how the garbage collection takes place. It helped me learn Java objects and memory consumption. But no part of it mentions how all of this is monitored by Dynatrace. I searched the word Dynatrace and all the occurrences specified how all that JVM is monitored by a brilliant tool like Dynatrace. So the page does not contain any information that how JVM consumption is monitored by Dynatrace.
2- How come Dynatrace is gathering all the metrics from the server? By metrics, I’m specific to the JVM metrics.
If I run a top command on the server I see the following processes.
top - 14:23:19 up 22 days, 12:48, 1 user, load average: 5.34, 5.45, 5.50
Tasks: 256 total, 2 running, 254 sleeping, 0 stopped, 0 zombie
%Cpu(s): 24.1 us, 6.0 sy, 0.0 ni, 67.7 id, 0.9 wa, 0.0 hi, 1.4 si, 0.0 st
KiB Mem : 24679436 total, 203384 free, 18097288 used, 6378764 buff/cache
KiB Swap: 2097148 total, 0 free, 2097148 used. 6079224 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
2471 gateway 20 0 22.7g 13.4g 23856 S 324.6 57.1 75665:29 java
1847 mysql 20 0 9477928 1.5g 10160 S 144.5 6.3 42150:25 mysqld
2025 dtuser 20 0 501868 210212 44632 S 24.9 0.9 5467:54 oneagentnetwork
1452 root 20 0 2407836 43080 7552 S 7.0 0.2 778:30.25 metricbeat
1471 root 20 0 1758292 92108 5308 S 3.0 0.4 346:44.36 filebeat
6 root 20 0 0 0 0 S 1.7 0.0 391:54.17 ksoftirqd/0
1675 fndsrv 20 0 10.9g 439292 22812 S 1.7 1.8 416:12.37 java
911 root 20 0 0 0 0 S 1.3 0.0 346:35.91 jbd2/dm-2-8
2095 layer7 20 0 12.9g 530564 19344 S 0.7 2.1 202:04.88 java
34216 root 20 0 1963048 15476 6156 S 0.7 0.1 35:02.95 filebeat
9 root 20 0 0 0 0 R 0.3 0.0 101:01.73 rcu_sched
1120 root 20 0 469136 4756 3872 S 0.3 0.0 91:43.35 NetworkManager
2029 dtuser 20 0 625676 26760 3644 S 0.3 0.1 26:25.88 oneagentplugin
So I know that dynatrace is actually monitoring the gateway process to report those metrics that I just pasted in a screenshot above. But how is it monitoring the gateway process? the process id of which is 2471
3- If we review your statement as you specified, OneAgent loads agent code into the JVM process. How does it do it? Is there a configuration file or a parameter that sets this up? It also uses JVM data sources to get JVM metrics. Where are these JVM data sources how dynatrace has been provided access to those data sources? **JMX is one of the possible data sources.**Where are these JMX data sources how dynatrace has been provided access to those data sources? Is JMX and JVM data sources different from each other?
Please help. @AntonioSousa @Julius_Loman