Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

106
Visualizações
Out of memory occurs when hundreds of web-workers are used concurrently

Currently I want to send thousands of api simultaneously using webworker. However, if 250 workers are created at the same time, out of memory occurs as shown in the following screen. out of memory

First, we could temporarily solve this by stopping for 6 seconds when 200 workers were created like this.

  const userConfirm = async function () {
    let instanceArr = []
    for (let i = 0; i < userArrivalRate; i++ ) {
      if (i !== 0  && i % 200 === 0) {
        await sleep(6000);
      }
      instanceArr[i] = new WorkerBuilder(myWorker);
      instanceArr[i].postMessage({
        duration : 2,
        url: '',
        method: "POST",
        body: {
          email: "test@test.com",
          password: "test"
        }
      })
    }
  } 

But I don't think it's fundamental.

I know that the default vm size of chromium is about 300MB. So I think it can be solved by increasing the v8 vm size with JavaScript.

  1. Is there any way to adjust chromiun v8 memory size with javascript?

  2. I'm curious if it's not the above problem or what part is the problem.

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda