Thanks Rene for the reply.
Here is the valgrind running result. Actully i blind with this >.<

minhtuan@han-vasplatform-02:/etc/kannel$ sudo valgrind --tool=memcheck
--leak-check=full opensmppbox
==29801== Memcheck, a memory error detector
==29801== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
==29801== Using Valgrind-3.9.0 and LibVEX; rerun with -h for copyright info
==29801== Command: opensmppbox
==29801==
2013-11-13 12:18:02 [29801] [0] INFO: Debug_lvl = -1, log_file = <none>,
log_lvl = 0
2013-11-13 12:18:03 [29801] [0] DEBUG: Loading include file
`/etc/kannel/smsc_fake.conf' (on line 55 of file kannel.conf).
2013-11-13 12:18:03 [29801] [0] DEBUG: Loading include file
`/etc/kannel/smsc_hn_live.conf' (on line 59 of file kannel.conf).
2013-11-13 12:18:03 [29801] [0] DEBUG: Loading include file
`/etc/kannel/service_ota.conf' (on line 63 of file kannel.conf).
2013-11-13 12:18:03 [29801] [0] DEBUG: Loading include file
`/etc/kannel/service_sms_survey.conf' (on line 65 of file kannel.conf).
2013-11-13 12:18:03 [29801] [0] DEBUG: Loading include file
`/etc/kannel/service_route.conf' (on line 67 of file kannel.conf).
2013-11-13 12:18:03 [29801] [0] DEBUG: Kannel opensmppbox version
svn-runknown gwlib version `svn-runknown'.
Build `Aug  1 2013 14:11:45', compiler `4.7.2'.
System Linux, release 3.2.0-4-686-pae, version #1 SMP Debian 3.2.46-1,
machine i686.
Hostname han-vasplatform-02, IP 127.0.1.1.
Libxml version 2.8.0.
Using OpenSSL 1.0.1e 11 Feb 2013.
Compiled with MySQL 5.5.31, using MySQL 5.5.31.
Using native malloc.

2013-11-13 12:18:04 [29801] [0] INFO: MYSQL: Connected to server at
localhost.
2013-11-13 12:18:04 [29801] [0] INFO: MYSQL: server version
5.5.31-0+wheezy1, client version 5.5.31.
2013-11-13 12:18:04 [29801] [0] INFO: DLR using storage type: mysql
2013-11-13 12:18:04 [29801] [0] PANIC: No 'opensmppbox' group in
configuration
2013-11-13 12:18:04 [29801] [0] PANIC: opensmppbox(gw_backtrace+0xb1)
[0x80a2411]
2013-11-13 12:18:04 [29801] [0] PANIC: opensmppbox(gw_panic+0xc3)
[0x80a24e3]
2013-11-13 12:18:04 [29801] [0] PANIC: opensmppbox(main+0x1230) [0x8053270]
2013-11-13 12:18:04 [29801] [0] PANIC:
/lib/i386-linux-gnu/i686/cmov/libc.so.6(__libc_start_main+0xe6) [0x476fe46]
2013-11-13 12:18:04 [29801] [0] PANIC: opensmppbox() [0x8053335]
==29801==
==29801== HEAP SUMMARY:
==29801==     in use at exit: 226,184 bytes in 4,478 blocks
==29801==   total heap usage: 7,662 allocs, 3,184 frees, 560,035 bytes
allocated
==29801==
==29801== LEAK SUMMARY:
==29801==    definitely lost: 0 bytes in 0 blocks
==29801==    indirectly lost: 0 bytes in 0 blocks
==29801==      possibly lost: 0 bytes in 0 blocks
==29801==    still reachable: 226,184 bytes in 4,478 blocks
==29801==         suppressed: 0 bytes in 0 blocks
==29801== Reachable blocks (those to which a pointer was found) are not
shown.
==29801== To see them, rerun with: --leak-check=full --show-leak-kinds=all
==29801==
==29801== For counts of detected and suppressed errors, rerun with: -v
==29801== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 45 from 10)
minhtuan@han-vasplatform-02:/etc/kannel$

Brs,
Tuan.


On Tue, Nov 12, 2013 at 9:17 PM, Rene Kluwen <[email protected]> wrote:

> Sounds like a memory leak somewhere to me. And/or maybe a race condition.
>
> Maybe you can run one time with valgrind running?
>
>
>
> == Rene
>
>
>
>
>
> *From:* users [mailto:[email protected]] *On Behalf Of *Minh Tuan
> *Sent:* zaterdag 28 september 2013 5:22
> *To:* [email protected]
> *Subject:* opensmppbox consume a lot of MEM
>
>
>
> Dear all,
>
> I need help as opensmppbox is consuming a lot of my server's memory. After
> occupied 80% of RAM (total RAM is 2G), it's also eating 50% of swap memory
> (total 3G) and increasing.
>
> My configuration is:
>
> Client -> opensmppbox(mysql dlr) -> sqlbox -> bearerbox(mysql dlr) ->
> operator SMSC
>
> Opensmppbox has 1 Client only, but he is binding 6 connections (via
> Internet), with 50 short codes and ~30 TPS of throughput, connections are
> lost few times per day (automatic re-connect).
>
>
>
> Of course, i'm going to plug more RAM sticks in to server but i'm afraid
> of it will not help in this situation.
>
> Appreciate you guy can give me some advise and experience. Many thanks.
>
> Nguyen Minh Tuan from Vietnamobile.
>



-- 
  <====((=o-( ',_,' )-o=))=====>

Bản chất tốt nhưng cuộc đời xô đẩy!

Reply via email to