Check the options set for the running Java process

1. Check the java process ID with jps

$ jps
25241 Jps
2506 xxxx.jar

2. Check options with the jcmd command

Specify the process ID confirmed in 1.

$ jcmd 2506 VM.flags
2506:
-XX:CICompilerCount=2 -XX:InitialHeapSize=16777216 -XX:MaxHeapSize=262144000 -XX:MaxNewSize=87359488 -XX:MinHeapDeltaBytes=196608 -XX:NewSize=5570560 -XX:OldSize=11206656 -XX:+UseCompressedClassPointers -XX:+UseCompressedOops

↑ Since it comes out in bytes, it can be converted

https://byte.yonelabo.com/

reference

http://etc9.hatenablog.com/entry/2016/05/11/012037

Recommended Posts

Check the options set for the running Java process
Java check process
[Java] (for MacOS) How to set the classpath
[Android Studio] Set an arbitrary image for the application background [Java]
How to check for the contents of a java fixed-length string
Check the contents of the Java certificate store
Introduction to java for the first time # 2
Java (set)
Memo: [Java] Check the contents of the directory
About the procedure for java to work
Java Programming Style Guide for the Java 11 Era
Prepare the security check environment for Rails 6
[Java] How to set the Date time to 00:00:00
[Java 7] Divide the Java list and execute the process
Learning for the first time java [Introduction]
[Java] Check the number of occurrences of characters
[AWS SDK for Java] Set a retry policy on the S3 client
Specify Java / Kotlin compile-time options for Android apps
Understand Java Serializable while actually running the application
ChatWork4j for using the ChatWork API in Java
[Docker] Check the running container and enter there
[Java] Set the time from the browser with jsoup
What is the volatile modifier for Java variables?
Use Java external library for the time being
Set pop-up display for Java language in vim.
Run Dataflow, Java, streaming for the time being
For JAVA learning (2018-03-16-01)
Java buffering process
Java version check
Set a signed cookie (for CloudFront) with a custom policy using the AWS SDK for Java
2017 IDE for Java
Java for statement
I made a check tool for the release module
[Java] Check the JDK version of the built war file
[For beginners] Quickly understand the basics of Java 8 Lambda
Check the behavior of Java Intrinsic Locks with bpftrace
A note for Initializing Fields in the Java tutorial
Quick learning Java "Introduction?" Part 2 Let's write the process
Learn for the first time java # 3 expressions and operators
Try running Spring Cloud Config for the time being
Learning memo when learning Java for the first time (personal learning memo)
Prepare the environment for java11 and javaFx with Ubuntu 18.4
Credentials referenced by the AWS SDK for Java by default
What Java engineers need to prepare for the Java 11 release
Access Web API on Android with Get and process Json (Java for the time being)