Safari using 30 GB memory slowing down mac

TuliTaivas
TuliTaivas used Ask the Experts™
on
I've been asked to help with a iMac showing the beachball and being very slow.
The problems started after installing security update 2019-002 and Safari 12.1.
The OS was Sierra (10.12) first, then updated to Mojave (10.14) which did not solve the problem.

I have a screenshot of Activity Monitor:
There I see Safari is using 30.31 GB of memory and 29.64 GB compressed memory, 8 threads, 358 ports.
Memory pressure is red, general information about memory is
8 GB physical
7.54 GB used
  953.4 MB app
  1.10 GB wired
  5.50 GB compressed
459.3 MB cached files
662.0 MB swap

All accounts on that machine are affected.

I assume that heavy swapping is going on, slowing down the iMac. (I don't know whether it has a SSD or a HDD.)
However, what I don't understand and what puzzles me, is how Safari can use 30 GB of memory when there is only 8GB physical and only 662 MB swap space (that being "The space used on your startup drive by macOS memory management.").

That's my main question. But of course, any help on how to go about solving the problem is very much appreciated, too.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
noxchoIT Product Manager
Top Expert 2009

Commented:
Did he or she ever close Safari? I would try quitting safari completely and then starting it again and checking how it behave after that.
See also if there are any addons in Safari.
OS X can compress the memory used.  Safari is compressing 29.64 GB.  What website is the user visiting?  Maybe the user needs an ablocker.

I would recommend that you first reset the SMC and then reset the PRAM to clear any possible corruption of the SMC and NVRAM.  If that dosn't fix it, then back up the user's data and reinstall the OS without erasing the disk.  You can reinstall the OS to fix system.  It will reinstall all system files without deleting any software or user data, but it's always best to make a backup just in case.
Michael PainterIT administrator Small Business Owner

Commented:
Might want to scan that Mac with MalwareBytes for Mac.  It could be infected.
Not like Safari to use that much memory.
If you close all Safari processes with the Activity Monitor, does it free up the ram?
I would think that Mojave with no active apps running should be using less than 4GB ram.
Announcing the Winners!

The results are in for the 15th Annual Expert Awards! Congratulations to the winners, and thank you to everyone who participated in the nominations. We are so grateful for the valuable contributions experts make on a daily basis. Click to read more about this year’s recipients!

TuliTaivasserver admin

Author

Commented:
Dear experts
Thank you for your comments. I can have a go on the Mac on wednesday and try what you suggested.
I have further information, though. The problem occurs on three of seven macs. I don't know what is different about the affected machines.
I'm pretty sure safari has been closed completely. At least when the upgrade from Sierra to Mojave was made.
I will report how it's going on thursday.
server admin
Commented:
Dear experts
Sorry for not reporting back sooner.
The macs all used the same icloud account. After stopping the cloud sync of the Safari settings the problem was gone.
Best regards
Roger
TuliTaivasserver admin

Author

Commented:
forgot to mention: the problem only occured when more than one user was logged in at the same time.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial