Skip to content

Nodejs memory allocation failure while running extensive tests suite #594

Description

@Ebaneck

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:

  • Predator: [1.6.2]
  • Predator-runner [1.6.1]
  • Database [MYSQL]
  • Env [Kubernetes]

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

ENV NODE_OPTIONS=--max_old_space_size=4096

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions