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.

Reduce the memory consumption of the javascript worker

See original GitHub issue

The Javascript worker seems to take a runtime memory of about ~25MB . It will be better if there is any possibility to reduce that memory consumption

Screen Shot 2020-05-28 at 11 22 19 AM

Also ,Is there any options present to pause/stop and restart the worker whenever needed. setMaximumWorkerIdleTime doesn’t seem to solve my issue And the docs for that API is saying No-op. Does this mean , this API is deprecated ? The parameter value also doesn’t specify whether we have to give time in milliseconds (or) seconds

Screen Shot 2020-05-28 at 12 25 18 PM

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
alexdimacommented, Sep 17, 2020

If I use this npm module Monaco-editor-core, will I get the auto-completion for javascript language

No, the module monaco-editor-core contains the core editor, without any languages.

0reactions
Pranomvigneshcommented, Sep 11, 2020

The method setMaximumWorkerIdleTime does not do anything. It is deprecated.

@alexdima Thanks for your response

If I use this npm module Monaco-editor-core, will I get the auto-completion for javascript language

What about this one?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Web Worker consumes massive amount of memory
I found out that if I terminate worker every n repeats and create new one releases memory faster. But it's still not a...
Read more >
Memory management - JavaScript - MDN Web Docs
This algorithm reduces the definition of "an object is no longer needed" to "an object is unreachable". This algorithm assumes the knowledge of ......
Read more >
Causes of Memory Leaks in JavaScript and How to Avoid Them
In this article, we will explore programming patterns that cause memory leaks in JavaScript and explain how to improve memory management.
Read more >
Avoiding Memory Leaks in Node.js: Best Practices for ...
Monitor the Amount of Memory Leakage · Reduce Use of Global Variables · Use Stack Memory Effectively · Use Heap Memory Effectively ·...
Read more >
4 Types of Memory Leaks in JavaScript and How to Get Rid Of ...
To find a leak we will now go to the profiles section of Chrome's Dev Tools. To keep memory use in a manageable...
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