postmanlabs / newman

Newman is a command-line collection runner for Postman
https://www.postman.com
Apache License 2.0
6.83k stars 1.16k forks source link

Newman tests run out of memory #3250

Open gendium opened 2 months ago

gendium commented 2 months ago
  1. Newman Version 6.1.3
  2. OS details (type, version, and architecture): 249.11-0ubuntu3.11
  3. Are you using Newman as a library, or via the CLI? CLI
  4. Did you encounter this recently, or has this bug always been there: recently
  5. Expected behaviour: run through the tests
  6. Command / script used to run Newman: newman run collections/postman_collection.json -e environments/postman_environment.json -r htmlextra,directbooks --reporter-htmlextra-showOnlyFails
  7. Sample collection, and auxiliary files (minus the sensitive details):
  8. Screenshots (if applicable): image

I have ran the tests before without issue, but now one of my get requests sends back 88mb's of data. Max heap size is at 8192mb, and every single time the tests run into this request, i get the same failure shown in the screenshot. What can be done to deal with this error?

morhimi commented 1 month ago

We're encountering this issue as well :( @gendium did you manage to resolve this issue?

gendium commented 1 month ago

The payload coming in was just too large. Cleared the db, and it was fine. Our system just was not stable regardless to have so much data. No actual fix