1

パーマ剤の中身を分析したい。そこで、実行中の JVM の文字列リテラル プールを出力するユーティリティを試してみました (Utility is available here , from How to analyze PermGen content?から) 。

しかし、私はこのエラーが発生しています:

プロセス ID 8980 にアタッチしています。お待ちください... プロセスへのアタッチ中にエラーが発生しました: デバッグ サーバーへの接続中にタイムアウトになりました (SwDbgSrv.exe を開始してください)。

SwDbgSrv.exeWindows 7で起動する方法はありますか?

4

2 に答える 2

0

You can attach the debug daemon to your Java program by running jsadebugd . Then you can run the HotSpot Serviceability Agent GUI:

java -cp %JAVA_HOME%\lib\sa-jdi.jar sun.jvm.hotspot.HSDB

and File -> connect to debug server -> localhost. Although this isn't a programmatic dump of all String literals, you will be able to explore more information about your process.

于 2012-07-20T20:59:26.480 に答える