yandex / yandex-tank

Load and performance benchmark tool
Other
2.42k stars 281 forks source link

malloc: Cannot allocate memory #881

Open IvanVas opened 1 year ago

IvanVas commented 1 year ago

Hi folks,

I'm trying to load test a high response time API (~15s) so need to keep a lot of connections. When phantom instances: are 30k and higher, tank starts to fail with a lot of malloc errors:

2022-12-05 17:47:26.057 +0000 [error] [benchmark_io 32714] mprotect: Cannot allocate memory
2022-12-05 17:47:26.058 +0000 [error] [benchmark_io 32715] mmap: Cannot allocate memory
2022-12-05 17:47:26.058 +0000 [error] [benchmark_io 32716] mmap: Cannot allocate memory
2022-12-05 17:47:26.058 +0000 [error] [benchmark_io 32717] mmap: Cannot allocate memory
2022-12-05 17:47:26.058 +0000 [error] [benchmark_io 32718] mmap: Cannot allocate memory

Running the latest master version with docker. The machine has a lot of available memory.

Are there any limitations to number of instances? Can this me remedied?