Java 升级后 Sonar Server 5.6 损坏
Sonar Server 5.6 is broken after Java upgrade
我有 Sonar server 5.6,它在 Java 1.8 上运行良好。我将 Java 升级到 1.9,我更新了 wrapper.conf 文件以使用 1.8 JDK
wrapper.java.command=C:\Program Files\Java\jdk1.8.0_102\bin
wrapper.java.command=java
当我 运行 StartSonar.bat 文件时出现以下错误
--> Wrapper Started as Console Launching a JVM... Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.
2018.01.10 17:02:23 INFO app[o.s.a.AppFileSystem] Cleaning or creating temp directory C:\sonar\sonarqube-5.6\temp Error occurred
during initialization of VM agent library failed to init: instrument
Java HotSpot(TM) 64-Bit Server VM warning: Option UseParNewGC was
deprecated in version 9.0 and will likely be removed in a future
release. Java HotSpot(TM) 64-Bit Server VM warning: Option
UseConcMarkSweepGC was deprecated in version 9.0 and will likely be
removed in a future release. Error opening zip file or JAR manifest
missing : C:\Program Files\Java\jre-9.0.1\lib\management-agent.jar
2018.01.10 17:02:23 INFO app[o.s.p.m.JavaProcessLauncher] Launch process[es]: C:\Program Files\Java\jre-9.0.1\bin\java
-Djava.awt.headless=true -Xmx1G -Xms256m -Xss256k -Djava.net.preferIPv4Stack=true -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+HeapDumpOnOutOfMemoryError -Djava.io.tmpdir=C:\sonar\sonarqube-5.6\temp -javaagent:C:\Program Files\Java\jre-9.0.1\lib\management-agent.jar -cp
./lib/common/;./lib/search/ org.sonar.search.SearchServer
C:\sonar\sonarqube-5.6\temp\sq-process5945663641444744932properties
<-- Wrapper Stopped
从日志看来它仍在使用 Java 1.9。谁能告诉我如何解决它?
阿图尔
Java 即使当前的 LTS 6.7 也不支持 9 作为运行时,更不用说之前的 LTS 5.6,它在 Java 9 甚至可用之前发布。
要解决此问题,请降级您的 Java 版本。
我有 Sonar server 5.6,它在 Java 1.8 上运行良好。我将 Java 升级到 1.9,我更新了 wrapper.conf 文件以使用 1.8 JDK
wrapper.java.command=C:\Program Files\Java\jdk1.8.0_102\bin
wrapper.java.command=java
当我 运行 StartSonar.bat 文件时出现以下错误
--> Wrapper Started as Console Launching a JVM... Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.
2018.01.10 17:02:23 INFO app[o.s.a.AppFileSystem] Cleaning or creating temp directory C:\sonar\sonarqube-5.6\temp Error occurred during initialization of VM agent library failed to init: instrument Java HotSpot(TM) 64-Bit Server VM warning: Option UseParNewGC was deprecated in version 9.0 and will likely be removed in a future release. Java HotSpot(TM) 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release. Error opening zip file or JAR manifest missing : C:\Program Files\Java\jre-9.0.1\lib\management-agent.jar 2018.01.10 17:02:23 INFO app[o.s.p.m.JavaProcessLauncher] Launch process[es]: C:\Program Files\Java\jre-9.0.1\bin\java -Djava.awt.headless=true -Xmx1G -Xms256m -Xss256k -Djava.net.preferIPv4Stack=true -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+HeapDumpOnOutOfMemoryError -Djava.io.tmpdir=C:\sonar\sonarqube-5.6\temp -javaagent:C:\Program Files\Java\jre-9.0.1\lib\management-agent.jar -cp ./lib/common/;./lib/search/ org.sonar.search.SearchServer C:\sonar\sonarqube-5.6\temp\sq-process5945663641444744932properties <-- Wrapper Stopped
从日志看来它仍在使用 Java 1.9。谁能告诉我如何解决它?
阿图尔
Java 即使当前的 LTS 6.7 也不支持 9 作为运行时,更不用说之前的 LTS 5.6,它在 Java 9 甚至可用之前发布。
要解决此问题,请降级您的 Java 版本。