Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > macOS > Loosing *lots* of RAM in OS X 10.2 after just a few days

Loosing *lots* of RAM in OS X 10.2 after just a few days
Thread Tools
CheesePuff
Professional Poster
Join Date: Jan 2002
Location: Rochester, NY
Status: Offline
Reply With Quote
Sep 9, 2002, 04:04 PM
 
OK, so like the topic says, I was running OS X 10.2 on my G4 800 for about 2 days straight with all the same apps running and nothing else.

When I checked at the beginning it had 300 MB RAM free (physical), and when I came back 2 days later it had 10 MB free. This also made a lot of tasks slow.

I only had 2 basic Cococa (well-written, popular) apps running.

This never happened in OS X 10.1.5, anyone know whats up?

Thanks...
     
mattyd
Senior User
Join Date: Nov 2000
Location: san fran, ca
Status: Offline
Reply With Quote
Sep 9, 2002, 04:15 PM
 
how can i tell how much ram is being used and how much is left?

Originally posted by CheesePuff:
OK, so like the topic says, I was running OS X 10.2 on my G4 800 for about 2 days straight with all the same apps running and nothing else.

When I checked at the beginning it had 300 MB RAM free (physical), and when I came back 2 days later it had 10 MB free. This also made a lot of tasks slow.

I only had 2 basic Cococa (well-written, popular) apps running.

This never happened in OS X 10.1.5, anyone know whats up?

Thanks...
     
CheesePuff  (op)
Professional Poster
Join Date: Jan 2002
Location: Rochester, NY
Status: Offline
Reply With Quote
Sep 9, 2002, 04:20 PM
 
Originally posted by mattyd:
how can i tell how much ram is being used and how much is left?

Ugh, not the response I was hoping for.



Just kidding... open Terminal and type "top", but I always do "top -u" so it sorts the most CPU using apps first.
     
wingdo
Senior User
Join Date: Apr 2001
Location: Chicago, Earth
Status: Offline
Reply With Quote
Sep 9, 2002, 04:21 PM
 
Originally posted by mattyd:
how can i tell how much ram is being used and how much is left?

From a terminal window type "top" and return. The fifth and sixth or so lines will look like this:

PhysMem: 68.0M wired, 67.5M active, 208M inactive, 343M used, 425M free

VM: 3.25G + 51.5M 5894(0) pageins, 0(0) pageouts

Gives you RAM and Virt Mem info.

I frequently get down to basically nothing free, the item to watch is pageouts. It is reads FROM the vm files.

AquaMon also does a nice job of giving this information.


AquaMon
MBP - 2.33GHz C2D, 3GB RAM, 256MB VRAM, 160GB HD
PB - 1.5GHz G4, 2GB RAM, 128MB VRAM, 80GB HD
PM - Dual 1GHzG4, 1.5GB RAM, NVidia GForce 3, 2x 80 GB HD
     
businezguy
Mac Enthusiast
Join Date: Aug 2002
Location: New Jersey
Status: Offline
Reply With Quote
Sep 9, 2002, 04:25 PM
 
Does this mean that OS X has memory leaks? I am running Jaguar with the new dual 1 ghz Powermac and right now I have only 256 megs of memory. My computer has been up for 9 days now. Are you saying that the available memory is going down with time?
     
msuper69
Professional Poster
Join Date: Jan 2000
Location: Columbus, OH
Status: Offline
Reply With Quote
Sep 9, 2002, 04:34 PM
 
Originally posted by businezguy:
Does this mean that OS X has memory leaks? I am running Jaguar with the new dual 1 ghz Powermac and right now I have only 256 megs of memory. My computer has been up for 9 days now. Are you saying that the available memory is going down with time?
It's more likely one of your apps has a memory leak.
     
tenchi71
Forum Regular
Join Date: Sep 2000
Location: Charles Town, WV
Status: Offline
Reply With Quote
Sep 9, 2002, 04:43 PM
 
Originally posted by msuper69:


It's more likely one of your apps has a memory leak.
I have been getting this same problem since installing 10.2 (Fresh install on an initialized drive)
I run nothing out of the ordinary (Entourage, Omniweb,etc.), but after a little while, Aquamon reports that I only have about 20-10MB Free. Doesn't matter what I'm running, or if I'm running nothing... after time it drops drastically. The only way I have founf to correct it is to run MacJanitor. You'll see the free memory just rise up. For some reason, OSX is leaking memory from somewhere, creating page files, and not releasing them. I have to run MacJanitor several times a day if I want a responsive system. BTW, I have like 700MB of RAM on my system, and like I said, I never saw this problem prior to 10.2.
( Last edited by tenchi71; Sep 9, 2002 at 04:49 PM. )
Yup, dat's moi...
     
malvolio
Professional Poster
Join Date: Apr 2001
Location: Capital city of the Empire State.
Status: Offline
Reply With Quote
Sep 9, 2002, 06:19 PM
 
I wonder if Jaguar just caches things in RAM more aggressively than 10.1.x. Are you noticing degraded system & application performance?
A handy way to keep track of free memory is keeping Memory Monitor in your Dock. I do.
/mal
"I sentence you to be hanged by the neck until you cheer up."
MacBook Pro 15" w/ Mac OS 10.8.2, iPhone 4S & iPad 4th-gen. w/ iOS 6.1.2
     
tenchi71
Forum Regular
Join Date: Sep 2000
Location: Charles Town, WV
Status: Offline
Reply With Quote
Sep 9, 2002, 07:33 PM
 
Originally posted by malvolio:
I wonder if Jaguar just caches things in RAM more aggressively than 10.1.x. Are you noticing degraded system & application performance?
A handy way to keep track of free memory is keeping Memory Monitor in your Dock. I do.
I sure am! like I said in my post, the only way to fix this is to run MacJanitor for a boost, or reboot for full speed restoration. It's VERY strange and annoying.
Yup, dat's moi...
     
malvolio
Professional Poster
Join Date: Apr 2001
Location: Capital city of the Empire State.
Status: Offline
Reply With Quote
Sep 9, 2002, 07:44 PM
 
I suspect that the culprit might be OmniWeb. I've noticed that quitting it after it's been running for a while frees up a lot of memory.
/mal
"I sentence you to be hanged by the neck until you cheer up."
MacBook Pro 15" w/ Mac OS 10.8.2, iPhone 4S & iPad 4th-gen. w/ iOS 6.1.2
     
DanMacMan
Forum Regular
Join Date: Jul 2001
Location: 42N, 85W
Status: Offline
Reply With Quote
Sep 9, 2002, 10:07 PM
 
Originally posted by malvolio:
I suspect that the culprit might be OmniWeb. I've noticed that quitting it after it's been running for a while frees up a lot of memory.
I agree, I've recently switched to Chimera and this phenomena has ceased.
One Nation under Steve.
iMac 20"/2 GHz Core 2 Duo/2 GB RAM/250 GB/SuperDrive
PowerBook G4 12"/1 GHz/1.25 GB RAM/60GB/Combo
iMac G3 333 MHz/96 MB RAM/6 GB/CD
iPod 20GB, 4th Gen
iPhone 8GB, 1.1.4
     
CheesePuff  (op)
Professional Poster
Join Date: Jan 2002
Location: Rochester, NY
Status: Offline
Reply With Quote
Sep 9, 2002, 10:10 PM
 
Originally posted by DanMacMan:


I agree, I've recently switched to Chimera and this phenomena has ceased.
I don't touch OmniWeb with a 10 foot pole.
     
Detrius
Professional Poster
Join Date: Apr 2001
Location: Asheville, NC
Status: Offline
Reply With Quote
Sep 9, 2002, 10:50 PM
 
Originally posted by CheesePuff:


I don't touch OmniWeb with a 10 foot pole.

My laptop has been up for 14 days now. I have 115MB free. Chimera does have a problem, though, that after a while, it will just sit there chewing up processor time. I quit it and start over again. Many apps aren't perfect.
ACSA 10.4/10.3, ACTC 10.3, ACHDS 10.3
     
snerdini
Senior User
Join Date: Jun 2001
Location: Merry Land
Status: Offline
Reply With Quote
Sep 9, 2002, 10:54 PM
 
Mozilla 1.1 seems to suffer from the slow bloat effect as well (probably just a nasty memory leak). One day things ground to a halt on my DP 867 at work, and I couldn't figure out what the problem was until I fired up top. Ah HAH says I! Moz was using over 300 megs of RAM...

Quit and relaunched and everything was back to normal...
     
DSHwrd
Junior Member
Join Date: May 2002
Location: Okinawa, Japan (Kadena AB)
Status: Offline
Reply With Quote
Sep 10, 2002, 03:09 AM
 
It's my understanding (which could be wrong, I've asked around about it) that this 'Memory Leak' isn't a memory leak at all. It's the OS freely allocating memory and using it when you need it. So, it will appear to not be there, but it will really be there. To prove this point, look at your pageouts. Do you have any? If you're answer is no, and you're 'Free RAM is still about 10MB' all the time, then this 'theory' is correct.

Like someone else posted, using MacJanitor will fix this.
Daniel Howard | Mac OS X (10.2.2) | TiBook867 /\ iSub w/ Soundsticks /\ iPod
www.midnite-liteman.com | ideaSpiral 1.5.3 / DVD Rack 1.0.2
     
benh57
Senior User
Join Date: Aug 2001
Location: CA
Status: Offline
Reply With Quote
Sep 10, 2002, 05:21 AM
 
Originally posted by DSHwrd:
It's my understanding (which could be wrong, I've asked around about it) that this 'Memory Leak' isn't a memory leak at all. It's the OS freely allocating memory and using it when you need it. So, it will appear to not be there, but it will really be there. To prove this point, look at your pageouts. Do you have any? If you're answer is no, and you're 'Free RAM is still about 10MB' all the time, then this 'theory' is correct.

Like someone else posted, using MacJanitor will fix this.

Yes. You do not want "Free" RAM. You WANT all your RAM to be used.

Pageouts are the ONLY thing to worry about, period..

-Ben
Dual 800 - GF3 - 1.5GB
     
tenchi71
Forum Regular
Join Date: Sep 2000
Location: Charles Town, WV
Status: Offline
Reply With Quote
Sep 10, 2002, 10:52 AM
 
Originally posted by benh57:



Yes. You do not want "Free" RAM. You WANT all your RAM to be used.

Pageouts are the ONLY thing to worry about, period..

-Ben
Oh, I get like 69% Pageouts on the average when my "Free Memory" is down to like 10MB. Like I said, only thing that "fixes" it is running MacJanitor, and only for a little bit.
PowerMac G4 400
702MB RAM
I think I should have enough RAM. I never saw this issue with 10.1.x
I'm not running anything out of ther ordinary, and the memory does drop even after a cold boot and I leave it on for a while with out running any apps in the foreground.
Yup, dat's moi...
     
iKevin
Grizzled Veteran
Join Date: Nov 2000
Location: USA
Status: Offline
Reply With Quote
Sep 10, 2002, 11:17 AM
 
Originally posted by CheesePuff:


I don't touch OmniWeb with a 10 foot pole.
OW is so inferior it's amazing that people actually have it installed anymore.

OW...forever beta. That should be their motto.
     
Vanquish
Registered User
Join Date: Mar 2002
Location: Europe
Status: Offline
Reply With Quote
Sep 10, 2002, 11:39 AM
 
I noticed this too, but after opening System Profiler the memory began to free up back to 420 MB or so (total is 640 MB). I don't think it has anything to do with system profiler tough (would be strange). But in jaguar when you close an app it doesn't free up the amount of ram that it was using.
     
mmurray
Grizzled Veteran
Join Date: Sep 2000
Location: Adelaide, Australia
Status: Offline
Reply With Quote
Sep 10, 2002, 11:24 PM
 
While we are talking RAM can someone explain what the important things are here?

I have PB G4 400 with 640MB real ram. Top says

Processes: 54 total, 4 running, 50 sleeping... 139 threads 12:53:02
Load Avg: 2.06, 1.52, 1.26 CPU usage: 57.6% user, 42.4% sys, 0.0% idle
SharedLibs: num = 115, resident = 28.1M code, 2.67M data, 8.92M LinkEdit
MemRegions: num = 4054, resident = 81.4M + 12.5M private, 91.7M shared
PhysMem: 62.0M wired, 94.4M active, 281M inactive, 437M used, 203M free
VM: 1.85G + 66.0M 17031(0) pageins, 7809(0) pageouts

PID COMMAND %CPU TIME #TH #PRTS #MREGS RPRVT RSHRD RSIZE VSIZE
21500 Acrobat Re 0.4% 2:18.52 2 77 253 6.45M 18.8M 17.5M 73.2M
13287 SecurityAg 0.0% 0:02.82 2 74 85 1.57M 6.73M 3.42M 45.7M
5387 top 8.4% 0:01.16 1 14 18 260K 376K 556K 13.6M
5380 tcsh 0.0% 0:00.12 1 10 16 352K 716K 816K 5.73M
5379 login 0.0% 0:01.15 1 12 33 240K 428K 564K 13.7M
.
.
(more precesses deleted)
.
.
If I have 203MB free why do I have any pageouts at all ?


Thanks - Michael
     
malvolio
Professional Poster
Join Date: Apr 2001
Location: Capital city of the Empire State.
Status: Offline
Reply With Quote
Sep 11, 2002, 12:38 AM
 
That figure represents page-outs since your last login, IIRC. The (0) after it is your page-outs for recent use (I forget how often the default update runs).
The VSIZE column on the right shows how much total memory (physical, virtual, whatever) is being used each application.
You do seem to have a high ratio of page-outs to page-ins. I ran top just now, and had 12,784 page-ins and 12 page-outs. This is on a G3 iMac 500 MHz with 768 MB of RAM.
/mal
"I sentence you to be hanged by the neck until you cheer up."
MacBook Pro 15" w/ Mac OS 10.8.2, iPhone 4S & iPad 4th-gen. w/ iOS 6.1.2
     
Detrius
Professional Poster
Join Date: Apr 2001
Location: Asheville, NC
Status: Offline
Reply With Quote
Sep 11, 2002, 12:39 AM
 
Originally posted by mmurray:

If I have 203MB free why do I have any pageouts at all ?


Thanks - Michael

Those pageouts are since you booted. The thing to watch:

run: "vm_stat 1" in the terminal. Move the terminal window down to the bottom of the screen, below open windows, so you can see it as it is print out. Watch the column on the far right (pageouts) when you think you don't have enough memory and when your system is bogging down. If there are no pageouts (or very small pageouts), then you are seeing very little to no speed loss due to too much memory usage. Remember that 1 page is 4kB, so it's virtually nothing. If you see several seconds of very large numbers of pageouts, then whatever it is that you are trying to do at that moment, (including every open program) you don't have enough memory to do it, so something is going to disk. If you don't see pageouts when your system is slowing down, it's not a significant memory issue. If you see pageins, then more memory could help, but only if you leave your system running for a long time and don't clean out the disk cache.
ACSA 10.4/10.3, ACTC 10.3, ACHDS 10.3
     
Detrius
Professional Poster
Join Date: Apr 2001
Location: Asheville, NC
Status: Offline
Reply With Quote
Sep 11, 2002, 12:45 AM
 
Originally posted by malvolio:
That figure represents page-outs since your last login, IIRC. The (0) after it is your page-outs for recent use (I forget how often the default update runs).
The VSIZE column on the right shows how much total memory (physical, virtual, whatever) is being used each application.
You do seem to have a high ratio of page-outs to page-ins. I ran top just now, and had 12,784 page-ins and 12 page-outs. This is on a G3 iMac 500 MHz with 768 MB of RAM.
A high ratio doesn't necessarily mean anything though. A single program with a bad memory leak can get that number pretty high pretty quickly. I have 640MB in my iBook. I'm writing a program that I know has memory leaks in it somewhere. However, when it's not running, I don't see pageouts. So, I know I have enough ram for everything else that I'm doing. BUT, I do have a high ratio--relative to yours.

ALSO, if you only run a single program at a time, it would be really hard to get any pageouts--especially with that kind of RAM in the machine. If you never close programs--leave them all open so you don't have to launch them again later--then eventually, you'll get pageouts. I figure that's faster than launching the program from scratch. For example: iCal takes 16 bounces on my machine. The terminal takes 3. I don't mind closing and reopening the terminal.
ACSA 10.4/10.3, ACTC 10.3, ACHDS 10.3
     
Emotionally Fragile Luke
Banned
Join Date: Jul 2002
Location: The end of a catwalk with no way out but down.
Status: Offline
Reply With Quote
Sep 11, 2002, 12:49 AM
 
If your RAM is "loose" perhaps you should try some glue or something
     
Vanquish
Registered User
Join Date: Mar 2002
Location: Europe
Status: Offline
Reply With Quote
Sep 13, 2002, 02:27 PM
 
Just open top and Apple System profiler and watch yout free memory go sky high ! , I tested this 3 times and it worked 3 times. (it works for me , also: it doesn't change immediately you have to wait for the "gathering information" progressbar to disappear, after that one goes away you'll get you memory back). I do think this is a 10.2 bug.
     
cutterjohn
Forum Regular
Join Date: Feb 2000
Status: Offline
Reply With Quote
Sep 18, 2002, 11:17 PM
 
Originally posted by iKevin:


OW is so inferior it's amazing that people actually have it installed anymore.

OW...forever beta. That should be their motto.
In the early days of OSX OW was a nice option v. Internet Exploder.

But you are correct now, Omni seems to be in OW5 will fix EVERYTHING vaporware mode while continuously hacking OW4 so that it sort of works with every crap little web page. I'd be more impressed if they shoved a sneaky peek of OW5 out the door that actually fixed the deficiencies of OW4. (Go read the 4.1sp thread in software, and see how the omniites zealously protect Omni when comparing OW to REAL browsers. I'd bet that zero fo them even paid for OW, like I did... OW still looks the best though, when it actually manages to render a page.)

BTW: I noticed similar memory usage problems on a Pismo G3/500 640M, but I don't recall if I had been running OW at the time. I had 8, yes EIGHT swap files, and a few HUNDRED thousand pageouts!

I rebooted, back to the usual 1 swap file, compiled X11 bunch of other stuff, still one swap file... Either Apple fixed something that broke some apps that had otherwise worked around something for 10.1.x or a bug that was otherwise handled/contained by 10.1.x are now exposed.
     
Boochie
Mac Enthusiast
Join Date: Mar 2002
Status: Offline
Reply With Quote
Sep 18, 2002, 11:20 PM
 
The component of MacJanitor that frees up all the RAM is the rebuilding of the "locate" database. Is this a coincidence or is there a memory leak associated with some in-memory cache of this database?
     
Catfish_Man
Mac Elite
Join Date: Aug 2001
Status: Offline
Reply With Quote
Sep 19, 2002, 12:01 AM
 
Originally posted by cutterjohn:


In the early days of OSX OW was a nice option v. Internet Exploder.

But you are correct now, Omni seems to be in OW5 will fix EVERYTHING vaporware mode while continuously hacking OW4 so that it sort of works with every crap little web page. I'd be more impressed if they shoved a sneaky peek of OW5 out the door that actually fixed the deficiencies of OW4. (Go read the 4.1sp thread in software, and see how the omniites zealously protect Omni when comparing OW to REAL browsers. I'd bet that zero fo them even paid for OW, like I did... OW still looks the best though, when it actually manages to render a page.)

BTW: I noticed similar memory usage problems on a Pismo G3/500 640M, but I don't recall if I had been running OW at the time. I had 8, yes EIGHT swap files, and a few HUNDRED thousand pageouts!

I rebooted, back to the usual 1 swap file, compiled X11 bunch of other stuff, still one swap file... Either Apple fixed something that broke some apps that had otherwise worked around something for 10.1.x or a bug that was otherwise handled/contained by 10.1.x are now exposed.
...for me the killers are the memory leak and lack of tabs (although Chimera has been behaving badly lately, so I've been using OW). I never run into a page it can't render at all, and only a few with glitches. Fix the memory/performance issues and add tabs (exactly what OW5 is supposed to do) and I'll switch back to using it. For the time being though, I'll stick with Chimera.
     
Wevah
Senior User
Join Date: Nov 2001
Location: State of Denial
Status: Offline
Reply With Quote
Sep 19, 2002, 12:27 AM
 
Offtopic:

"OW is so inferior it's amazing that people actually have it installed anymore."

I have it installed.....to see how all my beautiful CSS breaks in a noncompliant browser.

OW: Great UI, horrid support for Web standards. Here's hoping v5 kicks some ass, eh?

;]
     
   
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 09:44 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,