Zooz / predator

A powerful open-source platform for load testing APIs.
https://zooz.github.io/predator/
Apache License 2.0
569 stars 108 forks source link

Nodejs memory allocation failure while running extensive tests suite #594

Open Ebaneck opened 2 years ago

Ebaneck commented 2 years ago

Describe the bug We see the following errors while running extensive tests

<--- Last few GCs --->

[1:0x55a454edb000]     3359 ms: Mark-sweep 168.9 (193.5) -> 168.6 (208.0) MB, 30.0 / 0.0 ms  allocation failure GC in old space requested
[1:0x55a454edb000]     3387 ms: Mark-sweep 168.6 (208.0) -> 168.6 (176.5) MB, 28.0 / 0.0 ms  last resort GC in old space requested
[1:0x55a454edb000]     3413 ms: Mark-sweep 168.6 (176.5) -> 168.6 (176.5) MB, 26.4 / 0.0 ms  last resort GC in old space requested

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Test'
  2. Click on 'Create Test'
  3. Scroll to 'Upload CSV'
  4. Upload a CSV of say 30MB
  5. Run aggressive tests

Expected behavior No memory exhaustion from running aggressive tests suit

Version:

Additional context Maybe provide the ability to override the max_old_space_size with something like

ENV NODE_OPTIONS=--max_old_space_size=4096