爲什麼我只看到兩個新的Relic庫條目?我是否在某處冗餘地引用New Relic jar?New Relic系統內存頁面顯示了三個New Relic庫而不是兩個
我在我的pom.xml
<dependency>
<groupId>com.newrelic.agent.java</groupId>
<artifactId>newrelic-agent</artifactId>
<version>3.0.1</version>
</dependency>
<dependency>
<groupId>com.newrelic.agent.java</groupId>
<artifactId>newrelic-api</artifactId>
<version>3.0.1</version>
</dependency>
以下但在設置 - >環境頁(https://rpm.newrelic.com/accounts/<account_id>/applications/<app_id>/environment
)我看到三個條目:
newrelic-agent 3.0.1
newrelic-api 3.0.1
newrelic 3.0.1
我第一次看到這個當javaagent我的JVM指向的版本與我在pom.xml中描述的版本不同。看起來我已經在pom中定義了兩個(我需要編譯使用New Relic API的Java代碼),並且在啓動JVM時指向了代理。