I've been trying to run virt-top to save the usage statistics to a csv file from my Java code using process builder. However, this gets executed in the Java file but I don't seem to find the file created anywhere. Is executing virt-top possible via a Java code? I'm using the example here replacing ls -l with virt-top --csv file2.csv.
I plan to generate the graphs from the csv files to load them on to my Java UI. If there are other alternatives to my method, please tell me as I've been trying to get one for almost a week now.
Thanks a lot!
Preethi