Skip to content

statically linked jcmd which you can run in a Java container

License

Notifications You must be signed in to change notification settings

chlunde/standalone-jcmd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

statically linked jcmd which you can run in a Java container

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published