4 【オプション情報の取得方法】ネイティブ・イメージのプロセス情報を ps コマンドで表示 $ ps aux | grep <native_image_name> user 1327261 2.5 0.3 1828040 213956 pts/0 Sl+ 17:26 0:00 ./target/spring-petclinic -XX:+PrintGC -XX:+PrintGCSummary user 1327379 0.0 0.0 10072 720 pts/2 S+ 17:26 0:00 grep --color=auto petclinic ps コマンドで実行中のネイティブ・イメージのプロセスを確認することで、指定したオプション情報を確認できる。 なおネイティブ・イメージの実行時に指定可能なオプションの一覧取得にはオプション -XX:PrintFlags= を用いる。 オプション一覧はオプション名と概要の記述がセットで出力される。 $ <native_image> -XX:PrintFlags= -XX:ActiveProcessorCount=-1 Overwrites the available number of processors provided by the OS. Any value <= 0 means using the processor count from the OS. -XX:±AutomaticReferenceHandling Determines if the reference handling is executed automatically or manually. Default: + (enabled). (以下略)
daemon thread=0x00007f28d0000b80 state=WAITING i SP 0x00007f28db9feb60 IP 0x000055dfbcc86755 size=112 com.oracle.svm.core.posix.headers.Pthread.pthread_cond_wait(Pthread.java) A SP 0x00007f28db9feb60 IP 0x000055dfbcc86755 size=112 com.oracle.svm.core.posix.thread.PosixParker.park0(PosixPlatformThreads.java:395) A SP 0x00007f28db9febd0 IP 0x000055dfbcc8653b size=48 com.oracle.svm.core.posix.thread.PosixParker.park(PosixPlatformThreads.java:375) A SP 0x00007f28db9fec00 IP 0x000055dfbcd03e46 size=64 com.oracle.svm.core.thread.PlatformThreads.parkCurrentPlatformOrCarrierThread(PlatformThreads.java:938) A SP 0x00007f28db9fec40 IP 0x000055dfbe180c89 size=48 jdk.internal.misc.Unsafe.park(Unsafe.java:56) A SP 0x00007f28db9fec70 IP 0x000055dfbddb5c80 size=16 java.util.concurrent.locks.LockSupport.park(LockSupport.java:371) (省略) A SP 0x00007f28db9fee30 IP 0x000055dfbd7bce19 size=32 java.lang.Thread.run(Thread.java:1583) A SP 0x00007f28db9fee50 IP 0x000055dfbcd0605e size=48 com.oracle.svm.core.thread.PlatformThreads.threadStartRoutine(PlatformThreads.java:833) A SP 0x00007f28db9fee80 IP 0x000055dfbcc87127 size=32 com.oracle.svm.core.posix.thread.PosixPlatformThreads.pthreadStartRoutine(PosixPlatformThreads.java:211) A SP 0x00007f28db9feea0 IP 0x000055dfbcbab390 size=96 com.oracle.svm.core.code.IsolateEnterStub.PosixPlatformThreads_pthreadStartRoutine_38d96cbc1a188a6051c29be1299a fe681d67942e(IsolateEnterStub.java:0) Substrate VM 実装の Java コード
SubstrateSegfaultHandler caught a segfault in thread… シグナルハンドラがキャッチしたシグナル情報&発生スレッド General purpose register values レジスタ値一覧 Printing instructions インストラクション一覧 Top of stack スタックのトップアドレス一覧 VM thread locals for the failing thread 問題発生スレッドの VM スレッドローカル一覧 Java frame anchors for the failing thread 問題発生スレッドの Java フレームアンカー(アドレス) Stacktrace for the failing thread 問題発生スレッドの Threads スレッド一覧 The 30 most recent VM operation status changes 直近30個の VM オペレーションログ VM mutexes VM ミューテックス一覧 General information 一般情報 Command line アプリケーションのコマンドライン引数 Heap settings and statistics ヒープ設定と統計 Heap usage ヒープ使用量 Native image heap boundaries ネイティブ・イメージのヒープ境界 Heap chunks ヒープチャンク