| Analysis Date | JDK | Operating System | CPU Architecture | Debug JVM? |
|---|---|---|---|---|
| 2025-12-30 | OpenJDK17 | Linux | x86 | Y |
Results
Switches Identified
Switch Analysis
| Name | Type | Description | Default Value | Your Value |
|---|---|---|---|---|
| ms | <size> | set initial Java heap size | 256m | |
| Analysis | OK | |||
| Name | Type | Description | Default Value | Your Value |
|---|---|---|---|---|
| mx | <size> | set maximum Java heap size | 512m | |
| Analysis | OK | |||
| Name | Type | Description | Default Value | Your Value |
|---|---|---|---|---|
| ss | <size> | set java thread stack size | 2m | |
| Analysis | OK | |||
| Name | Type | Description | Default Value | Your Value |
|---|---|---|---|---|
| MaxJavaStackTraceDepth | int | The maximum number of lines in the stack trace for Java exceptions (0 means all) |
1024 in range(0, max_jint/2) | 50000 |
| Analysis | Duplicate switch. This is overridden by -XX:MaxJavaStackTraceDepth=50000. | |||
| Name | Type | Description | Default Value | Your Value |
|---|---|---|---|---|
| MetaspaceSize | size_t | Initial threshold (in bytes) at which a garbage collection is done to reduce Metaspace usage |
NOT_LP64(16 * M) LP64_ONLY(21 * M) | 512m |
| Analysis | OK | |||
| Name | Type | Description | Default Value | Your Value |
|---|---|---|---|---|
| MaxMetaspaceSize | size_t | Maximum size of Metaspaces (in bytes) | max_uintx | 1024m |
| Analysis | OK | |||
| Name | Type | Description | Default Value | Your Value | ||||
|---|---|---|---|---|---|---|---|---|
| ReservedCodeCacheSize | int | Reserved code cache size (in bytes) - maximum code cache size |
|
240m | ||||
| Analysis | OK | |||||||
| Name | Type | Description | Default Value | Your Value |
|---|---|---|---|---|
| UseG1GC | boolean | Use the Garbage-First garbage collector | false | true |
| Analysis | OK | |||
| Name | Type | Description | Default Value | Your Value |
|---|---|---|---|---|
| MaxGCPauseMillis | int | Adaptive size policy maximum GC pause time goal in millisecond, or (G1 Only) the maximum GC time per MMU time slice |
max_uintx - 1 in range(1, max_uintx - 1) | 500 |
| Analysis | OK | |||
| Name | Type | Description | Default Value | Your Value |
|---|---|---|---|---|
| UseStringDeduplication | boolean | Use string deduplication | false | true |
| Analysis | OK | |||
| Name | Type | Description | Default Value | Your Value |
|---|---|---|---|---|
| PrintGCDetails | boolean | Print more details at garbage collection. Deprecated, use -Xlog:gc* instead. |
false | true |
| Analysis | OK | |||
| Name | Type | Description | Default Value | Your Value |
|---|---|---|---|---|
| PrintGCDateStamps | boolean | Print date stamps at garbage collection | false | true |
| Analysis | This switch was removed after OpenJDK8. Your analysis was for OpenJDK17 | |||
| Name | Type | Description | Default Value | Your Value |
|---|---|---|---|---|
| PrintAdaptiveSizePolicy | boolean | Print information about AdaptiveSizePolicy | false | true |
| Analysis | This switch was removed after OpenJDK8. Your analysis was for OpenJDK17 | |||
| Name | Type | Description | Default Value | Your Value |
|---|---|---|---|---|
| PrintGCApplicationStoppedTime | boolean | Print the time the application has been stopped | false | true |
| Analysis | This switch was removed after OpenJDK8. Your analysis was for OpenJDK17 | |||
| Name | Type | Description | Default Value | Your Value |
|---|---|---|---|---|
| loggc | <file> | log GC status to a file with time stamps. This option is deprecated and may be removed in a future release. It is replaced by -Xlog:gc:<file>. |
::/opt/tomcat_a/logs/gc-v1-%t-%p.log | |
| Analysis | OK | |||
| Name | Type | Description | Default Value | Your Value |
|---|---|---|---|---|
| DisableExplicitGC | boolean | Ignore calls to System.gc() | false | true |
| Analysis | Duplicate switch. This is overridden by -XX:+DisableExplicitGC. | |||
| Name | Type | Description | Default Value | Your Value |
|---|---|---|---|---|
| MaxJavaStackTraceDepth | int | The maximum number of lines in the stack trace for Java exceptions (0 means all) |
1024 in range(0, max_jint/2) | 50000 |
| Analysis | OK | |||
| Name | Type | Description | Default Value | Your Value |
|---|---|---|---|---|
| DisableExplicitGC | boolean | Ignore calls to System.gc() | false | true |
| Analysis | OK | |||
| Name | Type | Description | Default Value | Your Value |
|---|---|---|---|---|
| PrintGCApplicationStoppedTime | boolean | Print the time the application has been stopped | false | true |
| Analysis | This switch was removed after OpenJDK8. Your analysis was for OpenJDK17 | |||
| Name | Type | Description | Default Value | Your Value |
|---|---|---|---|---|
| HeapDumpOnOutOfMemoryError | boolean | Dump heap to file when java.lang.OutOfMemoryError is thrown from JVM |
false | true |
| Analysis | OK | |||
| Name | Type | Description | Default Value | Your Value |
|---|---|---|---|---|
| HeapDumpPath | string | When HeapDumpOnOutOfMemoryError is on, the path (filename or directory) of the dump file (defaults to java_pid<pid>.hprof in the working directory) |
NULL | /opt/tomcat_a/logs |
| Analysis | OK | |||
| Name | Type | Description | Default Value | Your Value |
|---|---|---|---|---|
| OnOutOfMemoryError | list of strings | Run user-defined commands on first java.lang.OutOfMemoryError thrown from JVM |
/usr/local/sbin/tomcatOutOfMemory.sh | |
| Analysis | OK | |||
| Name | Type | Description | Default Value | Your Value |
|---|---|---|---|---|
| ErrorFile | string | If an error occurs, save the error data to this file [default: ./hs_err_pid%p.log] (%p replaced with pid) |
NULL | /opt/tomcat_a/logs/java_error%p.log |
| Analysis | OK | |||
