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 <a href="http://forums.devx.com/showthread.php?t=147403">here</a> replacing ls -l with virt-top --csv file2.csv.<br>
<br>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.<br>Thanks a lot! <br>
Preethi<br>