Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 644 Bytes

README.md

File metadata and controls

31 lines (22 loc) · 644 Bytes

standalone-jcmd

Standalone jcmd

Why?

sh-4.2$ ./jcmd
./jcmd: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory

copying libjli.so does not seem to work, with a number of different combinations of LD_LIBRARY_PATH and JAVA_HOME:

sh-4.2$ LD_LIBRARY_PATH=.:.... JAVA_HOME=... ./jcmd
Error: could not find libjava.so
Error: Could not find Java SE Runtime Environment.

Usage

make

oc cp -n $NAMESPACE standalone-jcmd $CONTAINER:/tmp

ps -ef

# assuming Java is PID 1:
cd /tmp; ./standalone-jcmd 1 help

./standalone-jcmd 1 GC.class_histogram