Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Console.app freezes on launch System
If you are experiencing a condition where the Console freezes when launched, and/or Terminal is very sluggish when starting up, it may be due to an accumulation of log files.

This blog post by Shannon Hicks shows how the problem was traced to a glut of hundreds of log files in /private/var/log/asl. [crarko adds: I just looked at my Mac, and there are only about 25 files in mine. That seems to be OK.]

If you don't need to keep these logs for some other reason, they can be deleted using the Terminal command:

sudo rm -f /private/var/log/asl/*

[crarko adds: I haven't tested this one. If you don't have the issues described, it's best just to leave the log files alone. See the comments below for more information about the log rotation process.]
    •    
  • Currently 2.20 / 5
  You rated: 1 / 5 (20 votes cast)
 
[6,200 views]  

Console.app freezes on launch | 10 comments | Create New Account
Click here to return to the 'Console.app freezes on launch' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Console.app freezes on launch
Authored by: daveywest on Jun 23, '10 08:36:31AM

I only had 41 files in there, but I'd noticed how slow terminal launched just the other day. After deleting the log files as explained in the tip, Terminal launches instantly.



[ Reply to This | # ]
Console.app freezes on launch
Authored by: xcgr on Jun 23, '10 09:07:09AM

Running the maintenance scripts by hand (e.g. periodic weekly | daily | monthly) seems a lot safer than randomly trashing files that are being used by the system.



[ Reply to This | # ]
Console.app freezes on launch
Authored by: wallybear on Jun 23, '10 09:50:28AM
As in previous OS X releases, maintenance task often miss execution.
You can use JAW PseudoAnacron to ensure those task don't get missed (http://www.jaw.it/pages/en/x_misc.html), just add it to startup items.
Disclaimer: Please notice that I'm the developer, but it's free (well, donationware).

[ Reply to This | # ]
Console.app freezes on launch
Authored by: leamanc on Jun 23, '10 12:22:51PM

I, for one Mac OS X Hints reader, don't mind developers posting links to their apps, when they are relevant to the discussion at hand. Just my two cents!

Since we've got you here, is PsuedoAnacron Snow Leopard compatible? Or is there a need for it? I seem to recall someone saying that launchd had been updated in Snow Leopard to perform somewhat like anacron, in that it looks for scheduled tasks that did not run due to the machine being asleep, powered off, etc. Does anyone know if this is true or not?



[ Reply to This | # ]
Console.app freezes on launch
Authored by: wallybear on Jun 24, '10 05:21:32AM
"Since we've got you here, is PsuedoAnacron Snow Leopard compatible? Or is there a need for it? I seem to recall someone saying that launchd had been updated in Snow Leopard to perform somewhat like anacron, in that it looks for scheduled tasks that did not run due to the machine being asleep, powered off, etc. Does anyone know if this is true or not?"

It should be true, but for reasons I don't fully understand (maybe there is more than one cause), often scheduled tasks are missed, also in Snow Leopard. It's an issue that should have been fixed in 10.5.x too, but as as a matter of fact it is not.
You can verify easily if tasks where missed: launch Pseudoanacron (you don't need to make it a login item if you don't want), it will show the last time the tasks were launched.
And, yes, it's SL compatible.

[ Reply to This | # ]
Console.app freezes on launch
Authored by: xbin on Jun 23, '10 02:47:38PM

The maintenance scripts should keep these log files under control, so it may be worth checking to see that they run on schedule.

Since the advent of 10.5 most log rotation has been delegated the the newsyslog daemon. Unless you are running a fax server, or using accounting then running those "maintenance scripts" are useless. Apple has also delegated some log rotation to the application that produces the log. This is the case with the asl log. I don't have much time to look in to this but I believe that in 10.5 there should be no more than 2 logs plus 1 log for each login user for a period of three days.



[ Reply to This | # ]
Console.app freezes on launch
Authored by: crarko on Jun 23, '10 03:19:06PM
Quite true. Thanks!

More about that in this hint.
Edited on Jun 23, '10 03:21:32PM by crarko


[ Reply to This | # ]
Console.app freezes on launch
Authored by: xbin on Jun 23, '10 03:55:53PM

Sometimes I wonder why Apple wants to reinvent the wheel. And you are welcome.



[ Reply to This | # ]
Console.app freezes on launch
Authored by: gasmanmark on Jun 24, '10 11:06:00AM

I have been having this issue for at least a year.
Deleting the log files is only a temporary fix. The delayed startup comes back quite quickly despite /private/var/log/asl/ not having filled up again significantly.
I suspect the underlying problem is something else.
I'd be interested to know if anyone has a more permanent solution.



[ Reply to This | # ]
Console.app freezes on launch
Authored by: deadbeatx on Jul 05, '10 03:22:56AM

There are multiple possible causes for this issue, I suggest you have a look trough the log files to find a clue to whats causing your issue. I recently serviced a computer with runaway asl log files (51GB!), turns out the issue was due to some severely damaged permissions on the disk that where spamming the log files with read/write errors.



[ Reply to This | # ]