简体   繁体   中英

Disk IO per process in cent os

I have three java processes running on cent os.

I want to monitor disk io for these processes individually and I want to find out minimum, maximum and average disk io for them in a given time frame.

I looked at IOTOP command for this thinking that I can run a script over IOTOP output to get min, max and average values.

But when I ran IOTOP command using process id, I found that it is not showing any IO in those process ids.

Then I ran following command: iotop -o , and I saw that IOTOP is reporting activity on thread level in java processes.

I would like to get the disk io on process level in linux and I assume that io for all the threads belonging to the process should be accounted on process level.

What command I can use for such output ?

Is there any tool which can also find min, max and average of these values for given time window ?

Try to use iotop -p process_id .
To get min, max and average values you need to use monitoring system

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM