1. 问题:
当用collectd去监控Application的时候,collectd会周期性的生成rrdfile,这些生成的rrdfile可以使用rrdtool xport来解析,但是在高并发的情况下,有可能出现collectd写rrdfile的同时,rrdtool xport来读这些rrdfile,这些时候就会出现如下异常:
Premature end of file
2.解决办法:
1. 问题:
当用collectd去监控Application的时候,collectd会周期性的生成rrdfile,这些生成的rrdfile可以使用rrdtool xport来解析,但是在高并发的情况下,有可能出现collectd写rrdfile的同时,rrdtool xport来读这些rrdfile,这些时候就会出现如下异常:
Premature end of file
2.解决办法: