Memory Leak

Bumbulla

Active Member
So i've talked a couple times about this in irc. Finally i found the leak and are going to show you the code since i have no clue what could cause it.

The code and structure may look awefull but please bear with me. Its kinda learning by doing for me and the documentation at the wiki is often not very good. But i can say that it worked in the past (last year).

So, here it is, the code: http://privatepaste.com/1496f8ea40

That is the code thats causing the memory leak and slowing down the script. Remove the "call getOwnOrders" at line 36 and it will work fine without any leaks. I've logged the running times and made 2 graphs:

http://www.abload.de/img/dia66igep9.png

http://www.abload.de/img/dia7714ksi.png

As you can see at the first picture, its all smooth and around 1.02-1.05 seconds per loop.
At the second picture we see a massive ongoing time spike over the runningtime.


If you need any other informations, let me know.
Hope some of you got an idea why thats happening.
 

CyberTech

Second-in-Command
Staff member
So i've talked a couple times about this in irc. Finally i found the leak and are going to show you the code since i have no clue what could cause it.

The code and structure may look awefull but please bear with me. Its kinda learning by doing for me and the documentation at the wiki is often not very good. But i can say that it worked in the past (last year).

So, here it is, the code: http://privatepaste.com/1496f8ea40

That is the code thats causing the memory leak and slowing down the script. Remove the "call getOwnOrders" at line 36 and it will work fine without any leaks. I've logged the running times and made 2 graphs:

http://www.abload.de/img/dia66igep9.png

http://www.abload.de/img/dia7714ksi.png

As you can see at the first picture, its all smooth and around 1.02-1.05 seconds per loop.
At the second picture we see a massive ongoing time spike over the runningtime.


If you need any other informations, let me know.
Hope some of you got an idea why thats happening.
Thanks. I'll look at this.
 
Top Bottom