forked from docs/doc-exports
Reviewed-by: Mützel, Andrea <andrea.muetzel@t-systems.com> Co-authored-by: Li, Qiao <qiaoli@huawei.com> Co-committed-by: Li, Qiao <qiaoli@huawei.com>
21 lines
4.1 KiB
HTML
21 lines
4.1 KiB
HTML
<a name="apm_03_0004"></a><a name="apm_03_0004"></a>
|
|
|
|
<h1 class="topictitle1">Why Does Metric Data Collection Fail?</h1>
|
|
<div id="body8662426"><ol id="apm_03_0004__en-us_topic_0000001240584493_ol148411902554"><li id="apm_03_0004__en-us_topic_0000001240584493_li168413045513">You can view metric data several minutes after you connect Agents.</li><li id="apm_03_0004__en-us_topic_0000001240584493_li984113010554">If data collection is stopped, the possible causes are as follows:<ul id="apm_03_0004__en-us_topic_0000001240584493_ul1743619362317"><li id="apm_03_0004__en-us_topic_0000001240584493_li19923833532">Instance level: Agents are stopped on the <strong id="apm_03_0004__en-us_topic_0000001240584493_b153121522711">Instance</strong> tab page.</li><li id="apm_03_0004__en-us_topic_0000001240584493_li1492319331130">Monitoring item level: Monitoring items are manually disabled on the <strong id="apm_03_0004__en-us_topic_0000001240584493_b773315313717">Monitoring Item</strong> tab page.</li><li id="apm_03_0004__en-us_topic_0000001240584493_li203373346569">Global level: The <strong id="apm_03_0004__en-us_topic_0000001240584493_b7558144204312">Stop Collecting Data Through Bytecode Instrumentation</strong> option is enabled on the <strong id="apm_03_0004__en-us_topic_0000001240584493_b1018714532716">General Configuration</strong> page.</li></ul>
|
|
</li></ol><ol start="3" id="apm_03_0004__en-us_topic_0000001240584493_ol20780132310571"><li id="apm_03_0004__en-us_topic_0000001240584493_li1469511418230">If no data is collected for a long time, the possible causes are as follows:<ul id="apm_03_0004__en-us_topic_0000001240584493_ul10229840181913"><li id="apm_03_0004__en-us_topic_0000001240584493_li1122915408199">Java 9 prompts that the <strong id="apm_03_0004__en-us_topic_0000001240584493_b1042920557714">sql.time</strong> class cannot be found.<p id="apm_03_0004__en-us_topic_0000001240584493_p1212213819597">Cause analysis: Agents are developed using JDK 1.7. However, after Java 9 modularization, no SQL package is provided by default.</p>
|
|
<p id="apm_03_0004__en-us_topic_0000001240584493_p4542121013597">Occurrence probability: This problem occurs under certain conditions.</p>
|
|
<p id="apm_03_0004__en-us_topic_0000001240584493_p154271011597">Workaround: Ensure that the component can proactively import <strong id="apm_03_0004__en-us_topic_0000001240584493_b63506595717">java.sql</strong> to <strong id="apm_03_0004__en-us_topic_0000001240584493_b193566599711">module-info.java</strong>.</p>
|
|
</li><li id="apm_03_0004__en-us_topic_0000001240584493_li927820534194">Java 11 prompts that "Caused by: java.lang.NoClassDefFoundError: sun/misc/Unsafe class cannot be found."<p id="apm_03_0004__en-us_topic_0000001240584493_p5175200118"><a name="apm_03_0004__en-us_topic_0000001240584493_li927820534194"></a><a name="en-us_topic_0000001240584493_li927820534194"></a>Cause analysis: Agents are developed using JDK 1.7, but the Java 11 Unsafe class is categorized to a different package.</p>
|
|
<p id="apm_03_0004__en-us_topic_0000001240584493_p517518010112">Occurrence probability: This problem occurs inevitably.</p>
|
|
<p id="apm_03_0004__en-us_topic_0000001240584493_p201751501219">Workaround: Ensure that the application can proactively import <strong id="apm_03_0004__en-us_topic_0000001240584493_b64713619815">jdk.unsupported</strong> to <strong id="apm_03_0004__en-us_topic_0000001240584493_b4531663814">module-info.java</strong>.</p>
|
|
</li><li id="apm_03_0004__en-us_topic_0000001240584493_li10528139209">Java 9 reports an illegal reflective access alarm. (This problem will be solved in versions later than Java 9.)<p id="apm_03_0004__en-us_topic_0000001240584493_p156141727142419"><a name="apm_03_0004__en-us_topic_0000001240584493_li10528139209"></a><a name="en-us_topic_0000001240584493_li10528139209"></a>Workaround: Set <strong id="apm_03_0004__en-us_topic_0000001240584493_b1335297811">--illegal-access</strong> to <strong id="apm_03_0004__en-us_topic_0000001240584493_b1136098814">warn</strong> or delete this option.</p>
|
|
</li></ul>
|
|
</li></ol>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="apm_01_1000.html">FAQs</a></div>
|
|
</div>
|
|
</div>
|
|
|