[Home] [Downloads] [Search] [Help/forum]

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Bug reports
. . -> [Subject]  Timer delay and memory leak.

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?
(New message)
Subject: Timer delay and memory leak.
Name:
Your forum user name.
Register forum user name
Password:
Your forum password.
Forgotten password?
Message:
Message to be posted (in English, please)
Maximum of 6000 characters. Text only please, no HTML.
Forum codes:
Check this if your message uses 'forum codes' or templates (auto-detected for new posts).
Forum codes Templates

Save this message ...


Subject review (reverse sequence)

Posted by Haha1903   (5 posts)  [Biography] bio
Date Sat 21 Feb 2009 02:05 AM (UTC)  quote  ]
Message
Thank Nick Gammon

I update to mushclient 4.39

No leak memory

Thanks!!!
[Go to top] top

Posted by Nick Gammon   Australia  (18,769 posts)  [Biography] bio   Forum Administrator
Date Sat 07 Feb 2009 01:31 AM (UTC)  quote  ]

Amended on Sat 07 Feb 2009 01:32 AM (UTC) by Nick Gammon

Message
Well I can't really reproduce that. I have 20 windows set up (20 words open), each with this timer:


<timers>
  <timer enabled="y" 
  second="1.00" 
  offset_second="0.00"    
  send_to="12"
  active_closed="y" 
  >
  <send>print ("tick at", os.date ("%c"))</send>

  </timer>
</timers>


Each output window seems to show that they are firing correctly, eg.


tick at 02/07/09 13:30:19
tick at 02/07/09 13:30:20
tick at 02/07/09 13:30:21
tick at 02/07/09 13:30:22
tick at 02/07/09 13:30:23
tick at 02/07/09 13:30:24
tick at 02/07/09 13:30:25
tick at 02/07/09 13:30:26
tick at 02/07/09 13:30:27
tick at 02/07/09 13:30:28
tick at 02/07/09 13:30:29
tick at 02/07/09 13:30:30
tick at 02/07/09 13:30:31
tick at 02/07/09 13:30:32
tick at 02/07/09 13:30:33


Perhaps your script, whatever it is doing, is slowing it down? With 20 worlds open, any script that runs in each one cannot afford to take more than 1/20 of a second, or the scripts will use more than one second altogether, and thus it cannot process the next timer in a timely way.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Haha1903   (5 posts)  [Biography] bio
Date Sat 07 Feb 2009 12:49 AM (UTC)  quote  ]
Message
Sorry for my english.
1. All connected to their MUDs.
2. I use lua script, but no use plugin.

I closed all worlds, but not collection memory.

Output buffer line is 5000.

Thanks!
[Go to top] top

Posted by Nick Gammon   Australia  (18,769 posts)  [Biography] bio   Forum Administrator
Date Fri 06 Feb 2009 07:46 PM (UTC)  quote  ]
Message
When you say multiple windows, can you be more specific?

Do you mean:


  • Multiple worlds open?
  • If so, all connected to their MUDs?
  • Or, multiple notepad windows?
  • Or, multiple views of the same world (as in Window menu -> New Window)


As for the memory leak:


  • Are you using scripting at all?
  • If so, which script language are you using? Some have been noted to have memory leaks associated with them.
  • Do you use any or many plugins? If so, on all of the open worlds?


It is certainly possible for an out-of-control script to keep allocating memory, which would eventually use it up, which isn't the fault of MUSHclient directly.

How many lines do you allocate for your output buffer (scrollback)?

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Haha1903   (5 posts)  [Biography] bio
Date Fri 06 Feb 2009 01:21 PM (UTC)  quote  ]

Amended on Fri 06 Feb 2009 01:41 PM (UTC) by Haha1903

Message
Generally speaking, Mushclient software is rather good when I use it except that when the quantity of the Windows opened exceeds a specific limit, 2 questions come out. I don’t know why, and please give me some help:
1.When I open more than 20 Windows, the “timer”instruction of a single Window does not work well. I set the waiting period is 1 second, but in fact, it is 2 seconds or more than 2 seconds.
2.If I open more Windows and run the software for some time, there will be a Error saying “out of memory”, and then Mushclient will stop running.

mushclient 4.37
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


1,344 views.

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]