A sample app to reproduce and visualize the memory leak problem with express-pouchdb
and dbs/<db_name>/_changes
GET request. See pouchdb/express-pouchdb#398.
Run npm install
to install the required dependencies.
Create a database by uncommenting line 28 in index.js and run node index
.
Stop the server, remove or comment back line 28 and run the server again.
Make sure that dbs/ directory contains the abc database.
ab -k -c 10 -n 20000 http://localhost:12345/dbs/abc/_changes
The memwatch
memory usage stats are logged to logs/plot-memwatch.csv.