Menu

#67 Mem Leaks/Usage

closed-wont-fix
Client (42)
5
2010-02-12
2010-01-10
No

Hello,
BT Clent eats a lot of memory. Probably there is a memory leak. I am wondering after loading 189 torrents without seeding or leaching why clent occupies almost 2G of RAM?

I am using latest code xbtt - Revision 1986: /trunk/xbt/BT Test
The mem usage is as folows

server:~/dell_me/xbt/BT Test# free
total used free shared buffers cached
Mem: 8200320 3806060 4394260 0 279948 2317924
-/+ buffers/cache: 1208188 6992132
Swap: 7823612 0 7823612
server:~/dell_me/xbt/BT Test# ./xbt_client_backend
server:~/dell_me/xbt/BT Test# free
total used free shared buffers cached
Mem: 8200320 5296804 2903516 0 279948 2317928
-/+ buffers/cache: 2698928 5501392
Swap: 7823612 0 7823612

root:/ddd# ./cli --stat | more
left size downloaded uploaded down_rate up_rate leechers seeders info_hash name
4.42 g 4.42 g 0 0 0 0 0 0 0093a532354b813ecfde8c27cb938ac30990224c Echelon.Conspira
cy.2009.LiMiTED.720p.BluRay.x264-SiNNERS
1.09 g 1.09 g 0 0 0 0 0 0 00c3e08189c019f726e5873f5bda563849a12f9a History.Channel.
Thats.Impossible.S01E3.Weather.Warfare.720p.HDTV.x264-DHD
17.4 g 17.4 g 0 0 0 0 0 0 0233a5f49ae35b1ed2fa862a756758cb7a183bd4 Lonesome.Dove.19
89.720p.BluRay.x264-CtrlHD

root@:/ddd# ./cli --stat | wc
189 2449 32282

server:~/dell_me/xbt/BT Test# killall xbt_client_backend
server:~/dell_me/xbt/BT Test# free
total used free shared buffers cached
Mem: 8200320 3799956 4400364 0 279964 2317936
-/+ buffers/cache: 1202056 6998264
Swap: 7823612 0 7823612

Discussion

  • Olaf van der Spek

    It's unlikely to be a memory leak.
    However, XBT Client isn't really being updated anymore, so you'd better look for another client.

     
  • Loshia Loshia

    Loshia Loshia - 2010-01-10

    Thanks for quick answer. Is there any particular reason for that? According to your answer the memory consumption is by design. Is that true?
    Can you recommend a tiny Client (open source) similar to BT Test?

     
  • Olaf van der Spek

    Memory consumption isn't high by design of course. ;)
    However it's not designed to open huge amounts of torrents.
    I think libtorrent is a great library, but I'm not familiar with cli/web clients based on it. Try google. ;)

     
  • Loshia Loshia

    Loshia Loshia - 2010-01-10

    Memory consumption isn't high by design of course. ;) - yeahh. I am not very good with c++ constructor/destructor shit but have you tried to open 200 torrent files - just open them without seeding or leeching. I just can not understand why it is taking two gig of memory. It must be something inside the code...Any way since the support is gone and it is free software i will try to dig it out. If i found what is going on i would post it here. Keep the great work going!!!

     
  • Loshia Loshia

    Loshia Loshia - 2010-01-10

    By the way tracker performs like a charm

    leechers 679
    seeders 3733
    peers 4412
    torrents 924
    accepted tcp 5468843
    rejected tcp 2909
    announced 4542266
    announced http 4542266 100 %

    With LOW - Very LOW memory consumption. Just wonderful work!

     
  • Olaf van der Spek

    Thx

     
  • Olaf van der Spek

    XBT Client is EOL.

     
  • Olaf van der Spek

    • status: open --> pending-wont-fix
     
  • SourceForge Robot

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     
  • SourceForge Robot

    • status: pending-wont-fix --> closed-wont-fix
     

Log in to post a comment.

Auth0 Logo