Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

100
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda