Comments (3)
@VP-0822 maybe you can take one of the simple examples provided with the library, for example dedicatedWorker.js
, remove the pool..terminate()
, and monitor how that behaves on your machine, and see what memory it uses for process
vs thread
.
It's hard to tell why the OOM error occurs without actually debugging it. An important difference with worker_threads is that they share memory with the main process, where as a child_process has it's own memory. Suppose both your main process and your worker use 6GB of memory. That will work fine with child_process when you have --max-old-space-size=8192
, but will be a problem if you use worker threads since the total memory is 12 GB, above the max of 8GB.
The following node.js issue may be relevant too since I see you're configuring both --max-old-space-size=8192
and "maxOldGenerationSizeMb":768
: nodejs/node#43991.
from workerpool.
@josdejong Thanks for the hint. I raised the issue with the library which is throwing this error and they might fix it soon :)
from workerpool.
from workerpool.
Related Issues (20)
- Add completed method in Pool HOT 5
- Using wokerpool on multi node.js processes running on the same server HOT 1
- support worker execArgv HOT 2
- Fix the code coverage script HOT 1
- App bundle fails to start worker, with message : "Worker is terminated" HOT 1
- Type of error is not kept when error goes from inside to outside the workerpool HOT 1
- Uncaught SyntaxError: Unexpected token '<' (at worker.ts:1:1) HOT 1
- Send event / message to running Worker? HOT 11
- Concurrent async tasks on a single worker HOT 1
- MaxListenersExceededWarning with worker_threads in node.js HOT 5
- Unsafe-eval violation HOT 2
- How to use with typescript HOT 2
- Error: TimeoutError: Promise timed out after 600000 milliseconds HOT 4
- Update type definitions with the new 'Transfer' options HOT 3
- Send message to persistent worker's stdin HOT 7
- Cannot use import statement outside a module (in Vite) HOT 15
- Possible bugs in the code. HOT 3
- child_process.spawn() or child_process.exec() HOT 1
- TypeError: process.send is not a function HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from workerpool.