question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

memory leak with v6

See original GitHub issue

Expected behaviour:

Since upgrading from V5 to V6 my apps are slowly leaking memory.

It’s seems much worse when running in development mode with web pack but still does it when built.

Have yet to put them in their docker containers - will report back when i do…

They basically just create a connection and keep using it on a timer to send queries.

Actual behaviour:

They shouldn’t Leak

Configuration:

{
      "server": "127.0.0.1",
      "database": "History####",
      "user": "time",
      "password": "letmein",
      "connectionTimeout": 300000,
      "requestTimeout": 0
    }

Software versions

  • NodeJS: 11.14.0
  • node-mssql: 6.0.1
  • SQL Server: 2012

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
dhensbycommented, Dec 5, 2019

Thanks @gilesbradshaw for the thorough write up and analysis - I’m sure this will be helpful to others 👍

1reaction
gilesbradshawcommented, Dec 3, 2019

Ok I have found my issue…

I should have set mssql to use bluebird i’d assumed global.promise = Bluebird line would do that…

import Bluebird from 'bluebird'
import mssql from 'mssql'
import server from './server'

// no memory leaks with bluebird!
global.Promise = Bluebird
mssql.Promise = Bluebird
Read more comments on GitHub >

github_iconTop Results From Across the Web

I found a memory leak in the library! | ArduinoJson 6
The library is thoroughly tested; it's is very unlikely that you found a memory leak. You're probably using the library incorrectly.
Read more >
V6.3.4 -- Memory leak still around? – Capture One
I just downloaded & installed v6.3.4.So far, I really don't see ... It seems like the memory leak still exists, and the use...
Read more >
StyleModule memory leak - v6 - CodeMirror
Hey, For JupyterLab 4, we migrated to CM6. And our memory leak tests are showing a minor memory leak from style-mod.js with a...
Read more >
Memory leak issues in older DSS V6 builds - Open-E
In the DSS V6 builds earlier than b5217 we have discovered a memory leak issue which is commonly called "low space".
Read more >
Unifi Controller / Network Application - Memory Leak in v6 ...
We run a Debian based controller with about 30 sites on it, 1000 aps total. Since the update there is a memory leak...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found