Problem with Dynamic attach
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
Research direction
Start at com.singularity.ee.agent.appagent.AgentEntryPoint.main, reported at AgentEntryPoint.java:1127, and trace the Dynamic attach path that calls the Java Attach API. Reproduce the error while monitoring a Java process and inspect why the AttachProvider is unavailable; done means identifying a supported cause and documenting or validating the resulting fix.
Written by the indexing model from the issue text.
Description
(Sorry about the stupid title...)
I just used it today. thanks.
Trying to monitor my java processes, got many messages similar to:
Dynamic attach successful
Attaching to VM [1]
▒java.util.ServiceConfigurationError: com.sun.tools.attach.spi.AttachProvider: Provider sun.tools.attach.LinuxAttachProvider not found
v at java.base/java.util.ServiceLoader.fail(ServiceLoader.java:588)
at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.nextProviderClass(ServiceLoader.java:1211)
at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNextService(ServiceLoader.java:1220)
at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNext(ServiceLoader.java:1264)
at java.base/java.util.ServiceLoader$2.hasNext(ServiceLoader.java:1299)
at java.base/java.util.ServiceLoader$3.hasNext(ServiceLoader.java:1384)
at jdk.attach/com.sun.tools.attach.spi.AttachProvider.providers(AttachProvider.java:258)
at jdk.attach/com.sun.tools.attach.VirtualMachine.attach(VirtualMachine.java:200)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.singularity.ee.agent.appagent.AgentEntryPoint.main(AgentEntryPoint.java:1127)
0agent path >>>/opt/AppServerAgent/javaagent.jar
<WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.singularity.ee.agent.appagent.AgentEntryPoint (file:/opt/AppServerAgent/javaagent.jar) to method sun.tools.attach.HotSpotVirtualMachine.loadAgent(java.lang.String,java.lang.String)
WARNING: Please consider reporting this to the maintainers of com.singularity.ee.agent.appagent.AgentEntryPoint
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Any idea why?
Thanks!
Asaf
- Dominant language
- Shell
- Stars
- 0
- Forks
- 6
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Appdynamics/Dynamic-Agent-MA
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
Appdynamics/Dynamic-Agent-MA#3 · 3 comments ·
All issues in Appdynamics/Dynamic-Agent-MA
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
astral-sh/python-build-standalone#1293 ·
-
package-update
Difficulty 1/5 Under an hour Newbie friendliness 90/100
oSoWoSo/vOid_Community_repOsitory#185 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
carbon-language/carbon-lang#7821 ·