我正在尝试在测量CPU和内存并将数据上传到vmstax后从dstat生成我的数据图,从而出现此错误:
我没有使用java的经验。
Parsing error, line : 9 (java.lang.NumberFormatException: For input string: "12-04 10:00:35") Server.Processing
这是包含数据的文件:
"Dstat 0.7.2 CSV output"
"Author:","Dag Wieers <dag@wieers.com>",,,,"URL:","http://dag.wieers.com/home-made/dstat/"
"Host:","load-haproxy",,,,"User:","root"
"Cmdline:","dstat -tcmn --output dstat.csv",,,,"Date:","12 Apr 2015 10:00:34 UTC"
"system","total cpu usage",,,,,,"memory usage",,,,"net/total",
"time","usr","sys","idl","wai","hiq","siq","used","buff","cach","free","recv","send"
12-04 10:00:34,0.106,0.089,99.784,0.018,0.0,0.003,185634816.0,78569472.0,609361920.0,3273592832.0,0.0,0.0
12-04 10:00:35,0.0,0.0,100.0,0.0,0.0,0.0,185630720.0,78569472.0,609366016.0,3273592832.0,132.0,114.0
12-04 10:00:36,0.500,0.0,99.500,0.0,0.0,0.0,185630720.0,78569472.0,609366016.0,3273592832.0,412.0,1830.0
12-04 10:00:37,0.0,0.0,100.0,0.0,0.0,0.0,185622528.0,78569472.0,609374208.0,3273592832.0,132.0,180.0
12-04 10:00:38,0.0,0.0,100.0,0.0,0.0,0.0,185622528.0,78569472.0,609374208.0,3273592832.0,412.0,1300.0
12-04 10:00:39,0.498,0.0,99.502,0.0,0.0,0.0,185622528.0,78569472.0,609374208.0,3273592832.0,132.0,180.0