mIRC Homepage
Posted By: Caveman Memory usage - 30/01/08 10:14 PM
Hi, I was wondering what is the typical memory usage for mIRC? I'm currently running mIRC 6.31 with no addon scripts and my memory usage is around 50MB. I know this isn't a lot now'n'days however it seems rather high to me. Could someone verify whether this is normal please?

Many thanks,

Caveman.
Posted By: Bekar Re: Memory usage - 30/01/08 10:31 PM
Windows XP SP2, mIRC 6.31, 11 script files (using approx. 6-7 hash tables (total)), scroll-back buffer of 30,000 lines, 40 channel windows open, 54MB memory usage.
Posted By: RoCk Re: Memory usage - 30/01/08 10:51 PM

30,000 whew .. you don't like to miss anything do you.
Posted By: LostShadow Re: Memory usage - 30/01/08 10:53 PM
I note that my task manaer usually at a minimum says using 252 MB of 1225 MB or something.

But if I'm at around 600 MB, the computer slows down bad.

So I have to be considerabely less than half of what I can use.

Usually when I open mIRC, it has less MB usage than IE, but can catch up.

And this could constantly be solved by closing finished p.m. windows and doing the /clear.
Posted By: starbucks_mafia Re: Memory usage - 30/01/08 11:37 PM
My mIRC usage is about 10MB right now. But I'm only on a handful of channels on a couple of servers, with a few small scripts (mostly just aliases, nothing working with large amounts of data), and no DLLs loaded.
Posted By: Riamus2 Re: Memory usage - 30/01/08 11:47 PM
I run 2 mIRCs. One with just a trivia/protection bot with a few additional scripts of mine (weather, dictionary, search). It runs at 2.8MB with a 5000 buffer. The second runs Invision, with around 239 open hash tables as well as a lot of other scripts of mine. It runs at about 10.6MB with a 3000 buffer.

The buffer is a big part of memory usage and unless you need it really high, 5k or less will reduce memory usage a lot. This is especially true if you're on many channels as your buffer usage is per channel.

Note that this is on Vista 32bit, but I think it was similar on XP.

Posted By: argv0 Re: Memory usage - 31/01/08 12:51 AM
8mb with 6 scripts loaded but only 401 lines of code here.

Do you have any dlls loaded? How many channels are you on? Do you reload logs from the buffers? How long has mIRC been on for?

In addition to answering the above questions. report the results of: //echo -a $duration($uptime) $dll(0) $com(0) $scid(0)
Posted By: Caveman Re: Memory usage - 31/01/08 08:55 AM
Originally Posted By: argv0
8mb with 6 scripts loaded but only 401 lines of code here.

Do you have any dlls loaded? How many channels are you on? Do you reload logs from the buffers? How long has mIRC been on for?

In addition to answering the above questions. report the results of: //echo -a $duration($uptime) $dll(0) $com(0) $scid(0)


I think I have a few DLLs loaded. Yes I do reload logs, I'm on 5servers with a total of 15channels.

This is what the echo says;

1day 29mins 12secs 0 0 5
Posted By: Riamus2 Re: Memory usage - 31/01/08 03:05 PM
How large is your buffer? (Alt-O > Other)
Posted By: Caveman Re: Memory usage - 31/01/08 06:01 PM
30k
Posted By: Riamus2 Re: Memory usage - 31/01/08 09:20 PM
LOL! And you're wondering why it's 50MB?

30,000 lines per channel * 15 channels = 450,000 lines it has to keep in memory.

If you figure 50 characters per line average, that's 22.5MB right there without any scripts loaded. And you may have more that 50 characters per line average.

Unless you really need such a large buffer, you should drop it to 5k or less. Your memory usage will drop significantly.
Posted By: argv0 Re: Memory usage - 31/01/08 10:02 PM
And with the client being on for a day with logs being reloaded from where they left off, its very plausible that most of the buffers are full of data, so yea, your memory footprint makes total sense there.
Posted By: LostShadow Re: Memory usage - 31/01/08 11:22 PM
Originally Posted By: LostShadow
And this could constantly be solved by closing finished p.m. windows and doing the /clear.


My advice still stands.

If you auto-log all channels, then you have absolutely no worry in doing the /clear.
Posted By: Riamus2 Re: Memory usage - 01/02/08 02:06 AM
/clear isn't really going to be any use. Reducing buffer size would solve it without having to completely erase everything in the window(s).
Posted By: Caveman Re: Memory usage - 01/02/08 08:02 AM
Originally Posted By: Riamus2
LOL! And you're wondering why it's 50MB?

30,000 lines per channel * 15 channels = 450,000 lines it has to keep in memory.

If you figure 50 characters per line average, that's 22.5MB right there without any scripts loaded. And you may have more that 50 characters per line average.

Unless you really need such a large buffer, you should drop it to 5k or less. Your memory usage will drop significantly.


That is why I made this thread, I wasn't too sure whether it was normal or not.

Thanks for you advice and assistance.
Posted By: LostShadow Re: Memory usage - 01/02/08 07:38 PM
Well in that case a /clear in every channel on every network.

Using < 18,000 K memory usage.

31 channels, 6 networks connected.

10,000 max limit for buffer.

Has a total of 21 scripts containing 8,379 lines of code, worth 414.68KB (average 51 chars/line). The first script was made 79w1d5h26m ago (cussword.txt), and every 1hr 35mins 14secs a line is written at 0.5words per minute!

•••••••••• Remote(s) ••••••••••
Total Remotes = 21 file(s)
Total Line(s) = 8379 line(s)
Total Size = 414.68 kb
Total Event(s) = 157
Ave. Line(s) = 399 line(s)
Ave. Size = 19.75 kb
•••••••••• Alias(es) ••••••••••
Total Alias(es) = 12 file(s)
Total Line(s) = 11213 line(s)
Total Size = 826.64 kb
Total Global Alias(es) = 66
Total Local Alias(es) = 27
Ave. Line(s) = 934 line(s)
Ave. Size = 68.89 kb
Posted By: RoCk Re: Memory usage - 01/02/08 08:30 PM

What the hell are you going on about?
Posted By: LostShadow Re: Memory usage - 01/02/08 09:15 PM
Originally Posted By: LostShadow
Using < 18,000 K memory usage.


That whole line was my point.

The rest were stuff describing my mIRC's energy.
Posted By: Riamus2 Re: Memory usage - 01/02/08 09:22 PM
And as I stated, there is no good reason to use /clear like that. Limiting the buffer down from 30k is a much better solution. People who want a large buffer are people who want to see what has happened in a channel. They're much more likely to not mind a smaller buffer than they are to want to completely remove everything from their channels (aka buffer 0).
© mIRC Discussion Forums