Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get the full command line in JVMTI?

Tags:

java

jvmti

Is it possible to get full command line with all arguments which was used to launch current Java process and to get that during OnLoad phase in JVMTI?

like image 932
Vladimir Šor Avatar asked Dec 19 '25 22:12

Vladimir Šor


1 Answers

I have consulted the JVMTI reference and I think that it is not natively provided, I guess your best shot is to use Byte Code Instrumentation (BCI).

like image 133
Konrad Reiche Avatar answered Dec 21 '25 12:12

Konrad Reiche