linkedin / linkedin/icon-magic
Too many processes being created by browserPool.js
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 18
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
from icon-magic (browserPool.ts)
const NUM_CPUS = os.cpus().length - 1;
So, when i ran os.cpus().length in the node console, it reported something like 16
but there were waaaaay more processes than that in the mac activity console. it might be that there are multiple of these browser pools getting created in parallel (maybe there’s a task further up that also is os.cpus().length so what it actually is trying to create is 15*15 things 😅)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading browserPool.ts, especially the NUM_CPUS calculation, then trace where browser pools are created in the icon-magic build flow. Reproduce the issue while observing the process count and determine whether multiple pools are being created in parallel. Done means process creation stays within the intended bound.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- nodejs, typescript
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100