Home / Java Patterns and Pitfalls     frequal.com

Turning Off Hsperfdata To Reduce Java Disk Access

Summary

If you notice a small amount of disk activity during idle periods, hsperfdata (Java performance data monitoring) may be the cause. To turn off:

Confirmation

To confirm the behavior, look in /tmp/hsperfdata_YOUR-USERNAME (on Linux). The folder should be empty. If any folders are present, their names are the process IDs of the processes still writing performance data.

Detection

For detecting this and other similar disk access issues, iotop is useful. To launch:
sudo iotop
Then type a to enter 'accumulate' mode, which will show you cumulative IO over time, letting you see the largest consumers over time. use the left arrow to move to DISK_WRITE or DISK_READ as you prefer to see the largest consumer by category.
Last modified on 18 May 2025 by AO

Copyright © 2025 Andrew Oliver