8000 Memory leak with sandbox.isolateModules and older mssql module · Issue #1236 · jsreport/jsreport · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Memory leak with sandbox.isolateModules and older mssql module #1236

8A6A
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
pofider opened this issue May 30, 2025 · 0 comments
Open

Memory leak with sandbox.isolateModules and older mssql module #1236

pofider opened this issue May 30, 2025 · 0 comments

Comments

@pofider
Copy link
Contributor
pofider commented May 30, 2025

jsreport leaks memory with the default config, with the following script

const sql = require('mssql')

function beforeRender(req, res) {
}

This happens only with older mssql package version 7.3.5 and doesn't happen with the latest 11.0.1.
This also doesn't happen when the sandbox.isolateModules is false.

To easily replicate the issue is the best to limit workers memory

 "workers": {
    "numberOfWorkers": 1,
    "resourcesLimits": {
      "maxOldGenerationSizeMb ": "10MB"    
    }
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0