-
Notifications
You must be signed in to change notification settings - Fork 393
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sipp v3.4.1 memory leak issue #137
Comments
Hi there. Thanks for the bug report. I've tried to reproduce your issue, but I cannot, for a couple of reasons:
However, I did run some valgrind tests in this branch: https://github.com/SIPp/sipp/tree/fix/valgrind |
Hi wdeokes Here is my answer for your failed reason. •you've supplied both -sn uas and -sf mrf.xml on the "uas" command line, I'll assume that the scenario pasted above is mrf.xml •your "uas" listens on port 5010, while you connect to a different IP on port 5060; I have no insight in what that other machine does As your request, I will do run some valgrind tests on my scenrio and let you know the result soon. |
Running under Valgrind produced the following leak report. (10 calls were generated.) ==18556== Memcheck, a memory error detector |
|
Looks like an easy enough fix, |
Folds both code paths into one by using getnameinfo. Removed the malloc'd memory with is never freed, thus closes SIPp#137.
Folds both code paths into one by using getnameinfo. Removed the malloc'd memory with is never freed, thus closes SIPp#137.
Folds both code paths into one by using getnameinfo. Removes the malloc'd memory with is never freed. Closes SIPp#137.
Thats annoyingly spammy. Sorry. @gomting30 does that do the trick? |
@wdoekes Actually, this leak is visible with just the built-in uas/uac scenarios. Its just slow. |
Ah, it seems I already fixed that: We can still move to getnameinfo though. |
Heh, nice. But I'm doubting this is where the leak is, at least not without some information about how heavy/long of a load test we're talking about. INET6_ADDRSTRLEN is 48 bytes, it would take 2.083×10^7 allocations, according to wolfram alpha, to reach 1G. If we allow an hour to leak 1G, we're talking ~5700 calls a second. |
@vodik yes we fixed the issue. there are no memory leak during load test. |
@gomting30 awesome! |
Very well, thanks for the feedback! Closing as "fixed in 0026639". |
Folds both code paths into one by using getnameinfo. Removes the malloc'd memory with is never freed. Closes SIPp#137.
When we started ipv6 load test with sipp v3.4.1, there was critical memory leak issue at UAS side. sipp process only is using up more than gigabyte of memory. I don't know what is the problem. it might be the problem of sipp v3.4.1 itself or UAS scenario problemn but i am not sure.
uac command line:
uas command line:
usr.csv file
4.uas scenario file
The text was updated successfully, but these errors were encountered: