Open MathavanN opened 5 years ago
We also use Seneca (v2) in huge projects and experienced same problem. We found that there is a cache enabled by default in seneca/seneca.js (row 118 for our installation). Once set actcache.active to false the memory leak do not occur anymore.
@alloyit I am using Seneca v3.8.4, below is the Seneca configuration, already disabled history. let seneca = require('seneca')({ log: 'silent', timeout: mqConfig.timeout || 14400000, history: { active: false } });
I am currently using Seneca as NodeJs microservices tool kit. We are experiencing memory leak. below is my Heap snapshot details. Snapshot 3, considered after we processed a large payload. below is the comparison of Snapshot 1 and Snapshot 3 Trying to analyze the snapshots. Found that, Array size increasing. I guess, it keep storing Seneca metadata log info. Please correct me, If my assumption is wrong. Can anybody guide me to fix this problem