Re: [Mikrotik] Script Memory Leaks

2011-04-24 Thread Bill Prince
If the script is re-execed whenever it's run, any leaks should go away with the script shell when it terminates. bp On 4/23/2011 10:42 PM, Stuart Pierce wrote: I'm wondering if not releasing local variables at script end, that it doesn't release the memory used for some reason. --

Re: [Mikrotik] Script Memory Leaks

2011-04-24 Thread Stuart Pierce
Well one would think. Maybe it's Global variables somehow that are somehow re-initialized or created new with the same name and the original one's memory is not released. I'm using 4.11 on a 433AH and am not ready to try out 4.17 or 5.0 on this tower. -- Original Message

Re: [Mikrotik] Script Memory Leaks

2011-04-24 Thread Bill Prince
That would not be standard linux, but then I guess MT is not really standard. That said, I would be more inclined to suspect a leak in a process that is running all the time. I have no idea how MT launches scripts. I would suspect there is some sort of cron daemon or something. Do you

Re: [Mikrotik] Script Memory Leaks

2011-04-24 Thread Stuart Pierce
Well I had had a couple of scripts running all the time, up until a couple of weeks ago. Then I added the one to keep track of usage in the comment of the queue. I added another script to do something else for that one and tweaked the original. That's when I noticed my email backup script

Re: [Mikrotik] Script Memory Leaks

2011-04-24 Thread Stuart Pierce
I started testing out that script that you mentioned awhile back about UBB in the comment field. That's when I started noticing the memory depletion. http://wiki.mikrotik.com/wiki/AutomatedBilling and the one by Andrew Cox. -- Original Message -- From:

Re: [Mikrotik] Script Memory Leaks

2011-04-24 Thread Josh Luthman
Doesn't eat the ram on the two routers I have it on, one x86 the other 750. On Apr 24, 2011 5:17 PM, Stuart Pierce spie...@avolve.net wrote: I started testing out that script that you mentioned awhile back about UBB in the comment field. That's when I started noticing the memory depletion.

Re: [Mikrotik] Script Memory Leaks

2011-04-24 Thread Stuart Pierce
Maybe the better question is, what uses memory ? OS obviously, firewall rules, queues, connection information... -- Original Message -- From: Josh Luthman j...@imaginenetworksllc.com Reply-To: Mikrotik discussions mikrotik@mail.butchevans.com Date:

Re: [Mikrotik] Script Memory Leaks

2011-04-24 Thread Josh Luthman
Everything uses a little little bit of memory. Keep in mind some boards have 16 megs. If you're losing 80 megs in a day, try disabling the scripts, reboot and see if it repeats. On Apr 24, 2011 7:17 PM, Stuart Pierce spie...@avolve.net wrote: -- next part -- An HTML

[Mikrotik] Script Memory Leaks

2011-04-23 Thread Stuart Pierce
What are some of the biggest reasons for scripts to leak memory ? Sent via the WebMail system at avolve.net ___ Mikrotik mailing list

Re: [Mikrotik] Script Memory Leaks

2011-04-23 Thread Jacob Heider
Seconded. I've run a few routers out of memory, slowly, over weeks or months. What am I failing to properly account for? On 2011-04-23 10:37 PM, Stuart Pierce wrote: What are some of the biggest reasons for scripts to leak memory ?

Re: [Mikrotik] Script Memory Leaks

2011-04-23 Thread Stuart Pierce
I'm wondering if not releasing local variables at script end, that it doesn't release the memory used for some reason. -- Original Message -- From: Jacob Heider jhhei...@gmail.com Reply-To: Mikrotik discussions mikrotik@mail.butchevans.com Date: Sat, 23