• 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

해결책

자바 에이전트 jar 파일의 경로는 -javaagent JVM 스위치에서 정규화되어야 합니다. 경로가 올바르게 지정되지 않으면 앱 서버 시작 시 오류가 발생하고 JVM이 종료됩니다.

이 문제를 해결하려면 -javaagent 스위치에서 newrelic.jar 파일의 전체 경로를 지정하십시오. 예를 들어, newrelic.jar 파일이 Tomcat 홈 디렉토리 /home/tomcat 내의 newrelic 이라는 디렉토리에 있는 경우 다음과 같이 스위치를 지정합니다.

-javaagent:/home/tomcat/newrelic/newrelic.jar
Copyright © 2024 New Relic Inc.

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