Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个想要分享的 Java 飞行记录。不幸的是,Java 飞行记录在系统属性和环境变量中包含用户名和密码(JMC 正确地警告了这一点)。有没有办法从 Java 飞行记录中删除所有系统属性和环境变量,以便我可以共享它?
不。
这可能无济于事,但无论如何。
在 JMC 的录制向导中,可以禁用系统属性和环境变量事件。在窗口 -> 模板管理器中,可以导出关闭事件的自定义 .jfc 文件。然后可以这样使用
$ java -XX:StartFlightRecording=settings=path/custom.jfc