mysmartgrid/hexabus — Issue #40: hexalog keeps all data in ram and re-writes logfiles all the time
Author: eBrnd
Created: 2011-12-18 21:31:53+00:00
State: open

From what I gather, hexalog keeps all the measurements in RAM and writes the logfile from beginning to end each time enough new measurements are recorded. I'm using two sensors which broadcast their measurements every 4 seconds. This results to lots of memory and CPU usage after a day or two, even if I reduce the number of measurements needed to trigger writing the file.
It'd be more elegant to just append newly received measurements to the logfile. At the moment, there is no need to keep everything in RAM anyway. It'd also be more convenient if the logfile weren't overwritten each time hexalog is restarted (just open them in append mode all the time).