• EnglishEspañol日本語한국어Português
  • ログイン今すぐ開始

この機械翻訳は、参考として提供されています。

In the event of any inconsistency between the English version and the translated version, the English versionwill take priority. Please visit this page for more information.

問題を作成する

Javaアプリのサーバー起動時のエラー

問題

Javaアプリケーションのアプリサーバーの起動時にエラーメッセージが表示される。例えば、以下のようなものです。

Error opening zip file: newrelic.jar
Error occurred during initialization of VM
Agent library failed to init: instrument

解決

Java エージェントjarファイルへのパスは、 -javaagent JVM スイッチで完全修飾されている必要があります。パスが正しく指定されていない場合、アプリ サーバーの起動時にエラーがスローされ、JVM が終了します。

この問題を解決するには、 -javaagentスイッチにnewrelic.jarファイルへの絶対パスを指定します。たとえば、 newrelic.jarファイルが Tomcat ホーム ディレクトリ/home/tomcat内のnewrelicという名前のディレクトリにある場合、次のようにスイッチを指定します。

-javaagent:/home/tomcat/newrelic/newrelic.jar
Copyright © 2024 New Relic株式会社。

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.