I have a long-running Java server, and I'd like to measure its disk I/O activity when I tell it to perform a certain task. On Linux, is there a way to start monitoring disk I/O on a process (or a JVM, if that helps) and then stop monitoring later, and get the total bytes read and written to disk during that time period?
Installing and running iotop will allow you to see I/O information for individual processes: http://guichaz.free.fr/iotop/
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.