With a supout MT can and will tell you what ps is eating the CPU and RAM. On Apr 24, 2011 4:36 PM, "Stuart Pierce" <[email protected]> wrote: > 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 wasn't emailing. Then I noticed that the memory was running down from what 128 at start to ( as of this moment after a day and 6hours ) 66 megs. > > I'm just testing out these scripts so I am going to have to stop one and see if it slows or stops the leak. But I have no idea of what in them is causing the leak. The one I recently added reads a file into an array, not a big file by any means. Although as you say and I would think, after the script finished, the memory space used should be returned. > > > ---------- Original Message ---------------------------------- > From: Bill Prince <[email protected]> > Reply-To: Mikrotik discussions <[email protected]> > Date: Sun, 24 Apr 2011 11:51:30 -0700 > >>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 know for certain that it is the scripts that are the source of >>the leak? >> >>bp >> >> >>On 4/24/2011 11:39 AM, Stuart Pierce wrote: >>> 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 ---------------------------------- >>> From: Bill Prince<[email protected]> >>> Reply-To: Mikrotik discussions<[email protected]> >>> Date: Sun, 24 Apr 2011 08:13:30 -0700 >>> >>>> 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. >>>>> >>>>> ---------- Original Message ---------------------------------- >>>>> From: Jacob Heider<[email protected]> >>>>> Reply-To: Mikrotik discussions<[email protected]> >>>>> Date: Sat, 23 Apr 2011 22:39:40 -0400 >>>>> >>>>>> 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 ? >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> ________________________________________________________________ >>>>>>> Sent via the WebMail system at avolve.net >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> Mikrotik mailing list >>>>>>> [email protected] >>>>>>> http://www.butchevans.com/mailman/listinfo/mikrotik >>>>>>> >>>>>>> Visit http://blog.butchevans.com/ for tutorials related to Mikrotik RouterOS >>>>>>> >>>>>> _______________________________________________ >>>>>> Mikrotik mailing list >>>>>> [email protected] >>>>>> http://www.butchevans.com/mailman/listinfo/mikrotik >>>>>> >>>>>> Visit http://blog.butchevans.com/ for tutorials related to Mikrotik RouterOS >>>>>> >>>>> >>>>> >>>>> >>>>> >>>>> ________________________________________________________________ >>>>> Sent via the WebMail system at avolve.net >>>>> >>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> Mikrotik mailing list >>>>> [email protected] >>>>> http://www.butchevans.com/mailman/listinfo/mikrotik >>>>> >>>>> Visit http://blog.butchevans.com/ for tutorials related to Mikrotik RouterOS >>>>> >>>> _______________________________________________ >>>> Mikrotik mailing list >>>> [email protected] >>>> http://www.butchevans.com/mailman/listinfo/mikrotik >>>> >>>> Visit http://blog.butchevans.com/ for tutorials related to Mikrotik RouterOS >>>> >>> >>> >>> >>> >>> >>> ________________________________________________________________ >>> Sent via the WebMail system at avolve.net >>> >>> >>> >>> >>> _______________________________________________ >>> Mikrotik mailing list >>> [email protected] >>> http://www.butchevans.com/mailman/listinfo/mikrotik >>> >>> Visit http://blog.butchevans.com/ for tutorials related to Mikrotik RouterOS >>> >>_______________________________________________ >>Mikrotik mailing list >>[email protected] >>http://www.butchevans.com/mailman/listinfo/mikrotik >> >>Visit http://blog.butchevans.com/ for tutorials related to Mikrotik RouterOS >> > > > > > > ________________________________________________________________ > Sent via the WebMail system at avolve.net > > > > > _______________________________________________ > Mikrotik mailing list > [email protected] > http://www.butchevans.com/mailman/listinfo/mikrotik > > Visit http://blog.butchevans.com/ for tutorials related to Mikrotik RouterOS -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.butchevans.com/pipermail/mikrotik/attachments/20110424/25b6045b/attachment.html> _______________________________________________ Mikrotik mailing list [email protected] http://www.butchevans.com/mailman/listinfo/mikrotik
Visit http://blog.butchevans.com/ for tutorials related to Mikrotik RouterOS

