nvuillam / vscode-groovy-lint

VSCode extension to lint , correct and format groovy and Jenkinsfile
https://nvuillam.github.io/vscode-groovy-lint/
MIT License
68 stars 18 forks source link

Possible memory leak #235

Closed uniks37 closed 1 week ago

uniks37 commented 2 months ago

The plugin might be causing huge memory leak. I have been experience the memory leak since past few weeks where the plugin takes up all the resources by spamming the jvm instances. Uninstalling the plugin, however, recovers the system CPU load and frees up memory.

nvuillam commented 1 month ago

@uniks37 VsCode Groovy lint relies on npm-groovy-lint, who launches a local server via JVM, then interrogates it via HTTP calls

I always noticed that CodeNarc (behind npm-groovy-lint) has a heavy memory usage... except creating the local server, I never found a real solution as I'm not java expert

Would you know how to detect from where the memory leak is from, so we could fix it (or maybe directly in CodeNarc) ?

cc @stevenh

github-actions[bot] commented 3 weeks ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.

If you think this issue should stay open, please remove the O: stale 🤖 label or comment on the issue.

stevenh commented 1 week ago

Java us just heavy, without more details hard to say what's happening. I've never noticed a particular issue.