Q. My Mac hangs due to high CPU utilization by Firefox as per Activity Monitor. Can someone help me with this.
A. Cache/permissions would explain the logs.
I'm not sure that high cpu is what is causing the problem, it might be a symptom.
A starting point could be to boot your computer, see which errors do not involve firefox at all, then open chrome and see if/when that generates an error, and then one by one open the websites slowly. That way you can isolate what come from the system, what come from the browser and what errors come when you have everything running.
There are 3 things that are apparent in the logs at first glance. The first is a Chrome issue, the second seems to be a permissions issue, and the last one (mdns) might be unimportant but it seems to occur quite frequently.
Google Chrome He triggered unnest of range
0x7fff95a00000->0x7fff95c00000 of DYLD shared region in VM map
0x28972ae0d1d3028b. While not abnormal for debuggers, this increases
system memory footprint until the target exits.
Sandbox: coresymbolicatio(94393) System Policy: deny(1)
Sandbox: com.apple.Addres(94386) deny(1) network-outbound
The first issue might eventually require a fairly easy re-install of chrome.
The second is a permissions issue regarding cache. That is the one that might be the most serious. Any unusual permissions changes might be responsible for this. Take a look at this document from apple support on how to diagnose and fix that.
And there are outbound messages that probably should exist or else they should not be denied regarding mdns. There are different ways of tracing where this comes, but the key would be to fix system and user issues that exclude browsers, then deal with the browser / website / chat client / networking part.
It is the first 2 issues that are most relevant I believe. If you fix the issues in your log and get the applications working without errors, that would be the first step before looking at limiting the processes.
Once things are running smoothly, nice is something that might be very useful for you. Cpu limit should not be necessary but I will include it also.
A. Nice (lowering the priority)
You can also launch the program with a higher "nice" value (lower priority).
Information about nice levels:
A. You can limit your CPU utilization
You should use cputhrottle through homebrew:
Can I manually limit the %CPU used by a process?
There is a script for OS X: