question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

OOM error with master/slaves setup (zeromq, windows)

See original GitHub issue

Hi !

Describe the bug

An out of memory error occurs with ZeroMQ trying to allocate a crazy amount of memory in decoded_allocator, sometime up to several petabytes. This might very well be a ZeroMQ bug : OUT OF MEMORY (bundled\zeromq\src\decoder_allocators.cpp:89)

I added some logs and recompiled pyzmq to check what’s going on. Upon further investigation, _max_counters seems to take a crazy value at some point. See zmq_logs.txt As you can see, allocator instance 0x0000016A9270F700 is constructed with _max_counters=249, but before crash its value has changed to 1557249601288, which causes a malloc of several terabytes.

Steps to reproduce

Sorry, I couldn’t find a surefire way to reproduce this one. It seems kind of random. It sometime happens before the test is even started, sometime when the test is stopped. Sometime it doesn’t happen at all. It does seem to happen more often when stopping a test in the web UI. Simply run the ps1 attached and do some stuff in the web UI.

Environment

  • OS: Windows 10.0.18362.778
  • Python version: 3.6
  • Locust version: 0.14.6
  • Locust files : test_locust.zip

I managed to repro the bug on two computers : my work computer and my personal computer. Both are on Windows 10/Python 3.6 that comes with VS2017, but my personal computer has a pristine python environent, just ran pip install locustio.

Am I doing something I’m not supposed to ?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:30 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
Matthew--Townsendcommented, Jul 8, 2021

@RichardLions Good job updating the other bug (zeromq/pyzmq#1555) and finding a possible cause. Silly me, I thought the error (out of memory) could be something to do with running out of memory. 😃 I did try to run some python memory profilers but all I saw was a very flat memory allocation over time and nothing alarming.

1reaction
RichardLionscommented, Aug 5, 2021

pyzmq 22.2.1 has been released containing the fix for this issue.

https://github.com/zeromq/pyzmq/releases/tag/v22.2.1

Read more comments on GitHub >

github_iconTop Results From Across the Web

Installing on Windows - zeromq
Open libzmq\builds\msvc\msvc.sln in Visual C++ and build the solution. 1. First, tell pyzmq where zeromq is: $ python setup ...
Read more >
CHANGELOG.md - mirrors / locustio / locust - GitCode
Issue to install python libraries inside locust container when using the ... OOM error with master/slaves setup (zeromq, windows) #1372.
Read more >
Scalable user load testing tool written in Python
OOM error with master/slaves setup (zeromq, windows) ... Both are on Windows 10/Python 3.6 that comes with VS2017, but my personal computer ...
Read more >
error installing zmq (ZeroMQ) - node.js - Stack Overflow
You're in a bit of a node/zmq ghetto on Windows, not nearly as much activity as on Linux, however I did find this...
Read more >
Windows Installation - HELICS documentation
The ZeroMQ Windows installer is very outdated and will not work with new versions of Visual Studio. The CMake generator from ZeroMQ on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found