I have a Java flight recording that I want to share. Unfortunately the Java flight recording contains usernames and passwords in system properties and environment variables (JMC correctly warns of this). Is there a way to remove all system properties and environment variables from the Java flight recording so that I can share it?
No.
This may not help, but anyway.
In the recording wizard of JMC, the System Property and Environment Variable events can be disabled. In Window -> Template manager a custom .jfc file with the events turned off can be exported. It can then be used like this
$ java -XX:StartFlightRecording=settings=path/custom.jfc
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.