How to get Java running parameters from Spring Boot running inside container in pod where no ps exist

36 views Asked by At

I like to get the parameters of running Java process running inside pod. When Bash ssh inside the container I can't do:

bash-4.4$ ps
bash: ps: command not found

Also looping through all procs give me too much process ids with no hint regarding the Java process. I'm doing it using this:

for di in $(ls -1 /proc/*); do  echo "$di"; done

results in me 1106 running process which I can't do cat on them when running.

Also when invoking:

ash-4.4$ jcmd -l
bash-4.4$ 

I still get nothing.

0

There are 0 answers