How can I prevent Java from creating hsperfdata files?

后端 未结 8 1880
遥遥无期
遥遥无期 2020-12-24 02:15

I\'m writing a Java application that runs on Linux (using Sun\'s JDK). It keeps creating /tmp/hsperfdata_username directories, which I would like to prevent. Is

8条回答
  •  温柔的废话
    2020-12-24 02:52

    According to the filed bug report there is a work-around:

    This undocumented option will disable the perfdata feature:
    -XX:-UsePerfData

    It's worth mentioning that it is a feature though, not a bug. The above work-around just disables the feature.

提交回复
热议问题