<br><br><div class="gmail_quote">On Tue, Sep 13, 2011 at 2:39 PM, Delta Yeh <span dir="ltr"><<a href="mailto:delta.yeh@gmail.com">delta.yeh@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi,<br>
I update suricata source to git HEAD.<br>
I build suricata in a Debian lenny virtual machine( 1GRAM , two<br>
core 2.1G CPU) with<br>
1. autogen.sh<br>
2. ./configure<br>
3. make && make install<br>
<br>
The suricata.yaml is the default .<br>
I use ./suricata -c /etc/suricata/suricata.yaml -i eth0 to start suricata.<br>
<br>
I run apache ab( ab -c 1 -n 60000 <a href="http://192.168.1.123/" target="_blank">http://192.168.1.123/</a>) to test<br>
suricata(a simple nginx welcome page).<br>
During the test, I can see the memory suricata consumed grown up.<br>
When 60000 request finished, in the top output,the suricata process<br>
mem is 45.2%.<br>
5 minutes later, the mem is STILL 45.2%, only CPU change from 45% to 4%.<br>
<br>
I then start another 60000 http request test with ab, the memory<br>
suricata consumed INCREASED!!<br>
<br>
It this a memory leakage?<br>
<br>
<br>
----------------------------------------------------------<br>
<br>
debian:~/suricata/oisf# uname -a<br>
Linux debian 2.6.26-2-686 #1 SMP Wed May 12 21:56:10 UTC 2010 i686 GNU/Linux<br>
debian:~/suricata/oisf# src/.libs/suricata --build-info<br>
[26298] 13/9/2011 -- 20:38:10 - (suricata.c:633) <Info> (main) -- This<br>
is Suricata version 1.1beta2 (rev e131814)<br>
[26298] 13/9/2011 -- 20:38:10 - (suricata.c:516) <Info><br>
(SCPrintBuildInfo) -- Features: LIBPCAP_VERSION_MAJOR=0 LIBCAP_NG<br>
LIBNET1.1 HAVE_HTP_URI_NORMALIZE_HOOK<br>
[26298] 13/9/2011 -- 20:38:10 - (suricata.c:530) <Info><br>
(SCPrintBuildInfo) -- 32-bits, Little-endian architecture<br>
[26298] 13/9/2011 -- 20:38:10 - (suricata.c:532) <Info><br>
(SCPrintBuildInfo) -- GCC version 4.3.2, C version 199901<br>
[26298] 13/9/2011 -- 20:38:10 - (suricata.c:538) <Info><br>
(SCPrintBuildInfo) -- __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1<br>
[26298] 13/9/2011 -- 20:38:10 - (suricata.c:541) <Info><br>
(SCPrintBuildInfo) -- __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2<br>
[26298] 13/9/2011 -- 20:38:10 - (suricata.c:544) <Info><br>
(SCPrintBuildInfo) -- __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4<br>
[26298] 13/9/2011 -- 20:38:10 - (suricata.c:547) <Info><br>
(SCPrintBuildInfo) -- __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8<br>
<br>
top output:<br>
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND<br>
26081 root 20 0 1129m 540m 1860 S 47.2 53.2 5:27.69 suricata<br>
26284 root 20 0 12832 3208 2164 R 8.6 0.3 0:13.54 ab<br>
<br>
BR,<br>
DeltaY<br>
_______________________________________________<br>
Oisf-devel mailing list<br>
<a href="mailto:Oisf-devel@openinfosecfoundation.org">Oisf-devel@openinfosecfoundation.org</a><br>
<a href="http://lists.openinfosecfoundation.org/mailman/listinfo/oisf-devel" target="_blank">http://lists.openinfosecfoundation.org/mailman/listinfo/oisf-devel</a><br>
</blockquote></div><br><br>Hi Delta,<br>After the second stress test - did the memory consumption from Suricata stayed at the same level or decreased again after some time (like 5 min after the 2nd test was over)?<br><br>
Thanks<br><br clear="all"><br>-- <br>Peter Manev<br>
<div style="visibility: hidden; left: -5000px; position: absolute; z-index: 9999; padding: 0px; margin-left: 0px; margin-top: 0px; overflow: hidden; word-wrap: break-word; color: black; font-size: 10px; text-align: left; line-height: 130%;" id="avg_ls_inline_popup">
</div>