8000 Potential Memory Leak · Issue #98 · jazz-soft/JZZ · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Potential Memory Leak #98
Open
Open
@djipco

Description

@djipco

A potential memory leak issue was reported to me by a user of the WEBMIDI.js library. This library uses jzz in the Node.js environment to emulate the Web MIDI API.

Based on the info reported by the user, I ran the following script to troubleshoot the problem:

const express = require('express');
const navigator = require('jzz');

// jzz
navigator.requestMIDIAccess({sysex: true}).then(
  () => console.log("MIDI Started"),
  () => console.log("MIDI Failed"),
);

// express
const app = express();
app.post('/test', (req, res) => {
  res.json({ success: `Yeah!` });
});
app.use(express.json());
app.listen(3001, () => console.log("Express Listening..."));

After 2 hours, memory usage went from 19MB to 40MB. Is it possible that there is a memory leak in jzz ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0