.:: Bots United ::.  
filebase forums discord server github wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps yapb

Go Back   .:: Bots United ::. > Cyborg Factory > RealBot > General Forum
General Forum Follow progress, give suggestions, reply to bug report threads here.

Reply
 
Thread Tools
Memory leak WIP #7 & #8
Old
  (#1)
botmeister
Ex-Council Member
 
botmeister's Avatar
 
Status: Offline
Posts: 1,090
Join Date: Nov 2003
Location: Canada
Default Memory leak WIP #7 & #8 - 07-02-2004

Looks like there's a memory leak with these two versions. Ever since upgrading to WIP #7 my server runs out of memory over a period of a couple days or so. I upgraded to WIP #8 and the same thing happens.

Anyone else running a bot server where the bots get dropped and added frequently?


Maker of the (mEAn) Bot.Admin Manager

"In theory, there is no difference between theory and practice. But, in practice, there is." - Jan L.A. van de Snepscheut
  
Reply With Quote
Re: Memory leak WIP #7 & #8
Old
  (#2)
Onno Kreuzinger
aka: memed / Server Admin
 
Onno Kreuzinger's Avatar
 
Status: Offline
Posts: 705
Join Date: Jan 2004
Location: germany
Default Re: Memory leak WIP #7 & #8 - 07-02-2004

positive, my bot's don't get "older" than 16-30 hours, then the server restarts, the old realbot made it atleast for 48 hrs, sometimes 72+.
for the BU server this seems not to apply, perhaps because it is less often used ?

cheers

*edit*
oh it just has plenty of ram *g*
but it gets used ;-)

Last edited by Onno Kreuzinger; 08-02-2004 at 00:14..
  
Reply With Quote
Re: Memory leak WIP #7 & #8
Old
  (#3)
T!m
Member
 
T!m's Avatar
 
Status: Offline
Posts: 127
Join Date: Jan 2004
Location: Netherlands, Arnhem
Default Re: Memory leak WIP #7 & #8 - 07-02-2004

yup, same problem here, at leased with wip8, lots of crashes and bot drops, but I had no problems with wip7.

the server won't even dtay up for 36 hours, hell i'm glad if it stays up for 12 hours.
i thought it was the exp. files getting to big again.


in/out

Last edited by T!m; 08-02-2004 at 00:01.. Reason: info added
  
Reply With Quote
Re: Memory leak WIP #7 & #8
Old
  (#4)
botmeister
Ex-Council Member
 
botmeister's Avatar
 
Status: Offline
Posts: 1,090
Join Date: Nov 2003
Location: Canada
Default Re: Memory leak WIP #7 & #8 - 07-02-2004

What I'm look for is if the memory usage keeps going up and up as the server runs, then if it drops back to normal as soon as you quit the hlds server. That's what I see happening. I'm not sure yet where the memory leak is, it could be seen on map changes, or during normal game play.


Maker of the (mEAn) Bot.Admin Manager

"In theory, there is no difference between theory and practice. But, in practice, there is." - Jan L.A. van de Snepscheut
  
Reply With Quote
Re: Memory leak WIP #7 & #8
Old
  (#5)
T!m
Member
 
T!m's Avatar
 
Status: Offline
Posts: 127
Join Date: Jan 2004
Location: Netherlands, Arnhem
Default Re: Memory leak WIP #7 & #8 - 08-02-2004

Quote:
Originally Posted by botmeister
What I'm look for is if the memory usage keeps going up and up as the server runs, then if it drops back to normal as soon as you quit the hlds server.
1

i'l look for that tomorrow.


in/out
  
Reply With Quote
Re: Memory leak WIP #7 & #8
Old
  (#6)
Onno Kreuzinger
aka: memed / Server Admin
 
Onno Kreuzinger's Avatar
 
Status: Offline
Posts: 705
Join Date: Jan 2004
Location: germany
Default Re: Memory leak WIP #7 & #8 - 08-02-2004

hmm i could make a regression test with gdb running, setting memory limit to 64MB should crash it quite fast...
  
Reply With Quote
Re: Memory leak WIP #7 & #8
Old
  (#7)
Terran
Member
 
Terran's Avatar
 
Status: Offline
Posts: 431
Join Date: Jan 2004
Default Re: Memory leak WIP #7 & #8 - 08-02-2004

My server is running for 94h so far with 2-6 bots.
Memory usage of the engine: 636MB !!!
  
Reply With Quote
Re: Memory leak WIP #7 & #8
Old
  (#8)
DreamLord34
Member
 
Status: Offline
Posts: 415
Join Date: Jan 2004
Default Re: Memory leak WIP #7 & #8 - 08-02-2004

My server has never crashed with just RB as the only bot. It would before when I had HPB in the mix. I do however get bots kicked for no reason.
  
Reply With Quote
Re: Memory leak WIP #7 & #8
Old
  (#9)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Re: Memory leak WIP #7 & #8 - 08-02-2004

*ATTENTION*
I have found code that would allocate memory using 'malloc' on map change. This is done on INITIALIZATION of the game dll but also on map change. On map change however the variable does not get freed. I suspect that due this accumilation of malloc's i will eventually eat up all your ram!

I have added a 'free memory' function before the initialization. I will release a WIP 8.5 in a few hours. I hope this leak will be solved then, perhaps this also solves the map change bug... (?)


Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me
  
Reply With Quote
Re: Memory leak WIP #7 & #8
Old
  (#10)
botmeister
Ex-Council Member
 
botmeister's Avatar
 
Status: Offline
Posts: 1,090
Join Date: Nov 2003
Location: Canada
Default Re: Memory leak WIP #7 & #8 - 08-02-2004

Quote:
Originally Posted by stefanhendriks
*ATTENTION*
I have found code that would allocate memory using 'malloc' on map change. This is done on INITIALIZATION of the game dll but also on map change. On map change however the variable does not get freed. I suspect that due this accumilation of malloc's i will eventually eat up all your ram!

I have added a 'free memory' function before the initialization. I will release a WIP 8.5 in a few hours. I hope this leak will be solved then, perhaps this also solves the map change bug... (?)
Thanks for the quick fix stefan!


Maker of the (mEAn) Bot.Admin Manager

"In theory, there is no difference between theory and practice. But, in practice, there is." - Jan L.A. van de Snepscheut
  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com