linkedin / linkedin/icon-magic

Too many processes being created by browserPool.js

Open
#308 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.