corymickelson / NoPoDoFo

node pdf native bindings
GNU Affero General Public License v3.0
26 stars 6 forks source link

1.0.0-pre rss #89

Closed corymickelson closed 5 years ago

corymickelson commented 5 years ago

The 1.0.0-pre looks like it maybe leaking memory. In a lambda(aws) that is running a batch operation of a couple hundred separate document generations, the resident set(rss) grows constant, while the heap and external remain within a 10-30mb range throughout.

corymickelson commented 5 years ago

Added Bug89.ts in specs, checking for growing RSS over the generation of 100 documents. RSS stays within a constant += 10mb from it's starting allocation. This test will remain as a gate to prevent pushing/publishing code that leaks memory in the resident set.