0
VisualVMでサンプラーを使用できません。私はしかし、概要&の監視を遠隔で見ることができます。ここに私の問題が表示されるビデオ、Javaアプリケーション&の起動スクリプトがあります。 CentOSを使用します。VisualVM - CPU /メモリをサンプラーできません
https://www.youtube.com/watch?v=w4jqH4x1Rzg
スタートアップスクリプト
screen -d -m -S SG java -server -Xmx8G -Xms1G -XX:+DisableExplicitGC -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:MaxGCPauseMillis=30 -XX:+UseBiasedLocking -XX:+OptimizeStringConcat -XX:+UseFastAccessorMethods -XX:+AggressiveOpts -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=8766 -Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmxremote.authenticate=true -Dcom.sun.management.jmxremote.ssl=false -jar spigot.jar
エラーメッセージ
CPU sampling:
Not available. Cannot access threads in target application. Check the logfile for details (use Help | About | Logfile).
Memory sampling:
Not available. Failed to read objects in target application. Check the logfile for details (use Help | About | Logfile).
あなたのアプリケーションとVisualVMではJavaのバージョンが同じですか? –
フライトレコーダーを使用できる場合は、それが良いかもしれません。 –
@ PeterLawrey私は専用サーバでJava 1.8.0_77を使用しており、コンピュータ上では1.8.0_74を使用しています。同じバージョン番号が必要ですか?そして、提案に感謝します。 –