Weblogic Java Agent is being configured according to the document, but when we start the agent, the following error occurs:
[WARN] [IntroscopeAgent.ConnectionThread] Failed to connect to the Introscope Enterprise Manager at localhost:5001,com.wily.isengard.postofficehub.link.net.DefaultSocketFactory (Connection refused (Connection refused)).
Error: Could not find or load main class –DagentProfile=......wily.core.config.IntroscopeAgent.profile
Stopping Derby server...
The .profile file is already configured with the IP address of the EM which is not localhost, but agent is not take the value from agent profile and not connecting to EM.
Environment
Release : 10.7.0
Component : APM Agents
Resolution
The message indicates that JVM is not able to read the agent profile properly, and thus agent is trying to connect to localhost:5001 which is default value for EM connection. Please review the JVM arguments carefully and make sure that JVM is taking these arguments properly. Validate the JVM arguments by reviewing the application server log. -javaagent:/<wily-home>/Agent.jar -Dcom.wily.introscope.agentProfile=/<wily-home>/core/config/IntroscopeAgent.profile