node-serialport icon indicating copy to clipboard operation
node-serialport copied to clipboard

Memory leak when reading GPS data.

Open mikamaunula opened this issue 11 years ago • 1 comments

We have long running GPS logging nodejs software. It seems that process memory consumption is increasing constantly until it exits.

GPS is connected with USB serial and model is Globalsat GPS receiver BU-353.

Enviroment Ubuntu 14.04 lts. [email protected]

Test code:

"use strict";

var util = require('util');
var serialPort = require('../serialport');

var port = new serialPort.SerialPort('/dev/ttyUSB0', null, false);
port.on('error', function(err) {
    console.log(err);
});

port.on('data', function (data) {
});

port.open(function(err) {
    console.log('open',err);
});

setInterval(function() {
    console.log('LogMemory rss:'+process.memoryUsage().rss);
}, 5*60*1000);

mikamaunula avatar Jan 05 '15 08:01 mikamaunula

This was an issue, we've had some real improvements in the past year. Can you let us know if this is still an issue?

reconbot avatar Mar 27 '16 01:03 reconbot