Skip to content
This repository was archived by the owner on Mar 25, 2025. It is now read-only.
/ java_toolkit Public archive

This is a toolkit for debugging java applications in your kubernetes cluster

License

Notifications You must be signed in to change notification settings

robusta-dev/java_toolkit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

1f32e6d · Jul 28, 2024

History

44 Commits
Jul 28, 2024
Feb 21, 2022
Jun 4, 2024
Feb 17, 2022
Feb 13, 2022
Feb 7, 2022
Feb 1, 2022
Jul 28, 2024
Aug 30, 2022
Jul 28, 2024
Jun 11, 2024
Jun 11, 2024
Jun 11, 2024
May 29, 2024

Repository files navigation

How to support your specific jdk

In your docker image copy the jdk to /app/openjdk in your dockerfile
for example 'COPY --from=openjdk:11.0.14-jdk /usr/local/openjdk-11 /app/openjdk'
If needed change the flags of the jdk commands in the config.py file.
Sometimes jdk commands need to be run in a specific way or from a specific file
for example jhsdb jmap --pid ...
example commands
java-toolkit jmap PID_HERE
java-toolkit jstack PID_HERE
For building you can use skaffold
For running on Google Cloud we have a faster build with skaffold
skaffold run -p gcloud-build

For additional manual testing with the JDK there are additional bash commands added from additional_bash_commands.sh
example usages:
first assign environment variable of the pid you want to debug:
PID=1234
push the jdk onto the pod:
push_jdk
open a shell to the pod namespace and run whatever commands you want:
podns_shell
after you exit the interactive shell, remove the jdk from pod:
cleanup