Slow shutdown and login on mac

I'm trying to troubleshoot a mac that is having slow logins (1-2 min) and shutdowns (1 min). I've reimaged it, cleared all login items, checked out the hardware, started in safe mode, tried creating new accounts, and removed antivirus software. The Console logs are showing one constant error:  "WindowServer[76]   CGXGetConnectionProperty: Invalid connection 35587".

Hardware Information:
MacBook Pro (17-inch, Mid 2010)
MacBook Pro - model: MacBookPro6,1
1 2.66 GHz Intel Core i7 CPU: 2 cores
8 GB RAM

Startup Items:
NortonMissedTasks - Path: /Library/StartupItems/NortonMissedTasks
SMC - Path: /Library/StartupItems/SMC
SymAutoProtect - Path: /Library/StartupItems/SymAutoProtect

Has anyone seen this before?
TheFishyFewAsked:
Who is Participating?
 
strungConnect With a Mentor Commented:
If that doesn't work there is a solution suggested in DesignAnthem's post here:

https://discussions.apple.com/thread/4515285?start=15&tstart=180

which suggests you use the following terminal commands:

 
Enter each line individually and hit enter after. You may be asked to enter your password after the first "enter". When you insert your password.. it does not show... you just hit enter and return. (at least that is what happened to me)
 
Here we go:
 
 
sudo defaults write /System/Library/LaunchDaemons/com.apple.coreservices.appleevents ExitTimeOut -int 1
 
 
sudo defaults write /System/Library/LaunchDaemons/com.apple.securityd ExitTimeOut -int 1
 
 
sudo defaults write /System/Library/LaunchDaemons/com.apple.mDNSResponder ExitTimeOut -int 1
 
 
sudo defaults write /System/Library/LaunchDaemons/com.apple.diskarbitrationd ExitTimeOut -int 1
 
 
sudo defaults write /System/Library/LaunchAgents/com.apple.coreservices.appleid.authentication ExitTimeOut -int 1

Note, some of the lines above have wrapped because of the limitations of the window width here on EE. Line breaks are where there are double spaces above. For instance the first line should end in ".appleevents ExitTimeOut -int 1",
 the second line should end in "ExitTimeOut -int 1"
the third in ".mDNSResponder ExitTimeOut -int 1" and so on.
0
 
strungCommented:
Have you used Disk Utility to Repair Permissions while booted from the hard drive?
Have you run Repair Disk while booted from the Restore Partition?
0
 
TheFishyFewAuthor Commented:
Disk Utility is the first thing I ran. Sorry I didn't include it in the description. I will try the terminal commands and see what happens.

I did some reading over the weekend and found this description of what the windowserver does. "WindowServer draws everything you see on the screen. It acts as a mediator between applications that want to draw on the screen and the graphics hardware. When an application wants to draw something, it establishes a connection with WindowServer, tells WindowServer what to draw, and WindowServer handles the drawing / compositing / Quartz Extreme hardware acceleration to finally produce what's seen on the entire screen."

The discussion basically said the Finder was crashing somewhere on startup.
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
TheFishyFewAuthor Commented:
The default write commands did wonders with the shutdown process. Less than 4 seconds! But, nada on the login process. I'm still seeing the same length of times of a minute or more.
0
 
strungCommented:
I am not sure a minute is unusually slow for a Mac login with a conventional hard drive. Would be much faster with an SSD.
0
 
strungCommented:
0
 
TheFishyFewAuthor Commented:
Still having troubles with this Mac. I was able to shave off time on other laptops by turning off wireless. Startup times went down to 30 seconds immediately.

So, with this particular laptop, I'm wondering if its hardware-related now. Bad drive or something. I'm running diagnostics on it now.

thank you for all your help.
0
 
TheFishyFewAuthor Commented:
Those terminal commands helped the shutdown speeds tremendously. Still working on the login speeds, though.
0
 
strungCommented:
Have a look in the console logs to see if there is something in the logs for the Mac that is giving you problems compared to the other Macs.
0
 
TheFishyFewAuthor Commented:
I did. This is the error that only shows up on this Mac "WindowServer[76]   CGXGetConnectionProperty: Invalid connection 35587".

Storage diagnostics have passed all tests.
0
 
strungCommented:
Try shutting down with "Reopen windows when logging..." UNCHECKED. Then restart.
0
 
TheFishyFewAuthor Commented:
First thing I did. All my imaged macs are set that way.
0
 
strungCommented:
BTW what version of the OS are you running? Current version is 10.8.5.

10.9 (Mavericks) is due out any day now.
0
 
TheFishyFewAuthor Commented:
X.8.5. We won't be going to 10.9 any time soon. Need to test against some of our apps we use across the university.
0
 
strungCommented:
Have you tried removing all your startup items? If this speeds up booting, add them back in one by one until you find the culprit. I am suspicious of Norton.
0
 
strungCommented:
Here is a troubleshooting guide for slow startups:

http://reviews.cnet.com/8301-13727_7-10332743-263.html#!
0
 
strungCommented:
BTW, that tutorial is kind of old, so I would be reluctant to run the Apple script on 10.8.5.

Have you tried clearing caches and log files using ONYX?

http://www.titanium.free.fr/

It's free.
0
 
strungCommented:
Also, make sure that the hard drive is selected as the startup drive in the Startup Disk preferences pane.
0
 
TheFishyFewAuthor Commented:
Yup, used Onyx to clear all caches. Hard drive is selected as the startup drive. There were only 2 login items under the account. I removed them one at a time and one actually increased the time so I put it back and we're back to the normal long login time again. It was CCAgent.

Getting ready to uninstall Symantec and see what happens there.
0
 
strungCommented:
By the way, unchecking log in items in the Users and Groups preference panes does not disable them. It only makes them start up minimized. You have to highlight them and click the minus button at the bottom left and remove them entirely.
0
 
TheFishyFewAuthor Commented:
The login item window in Users and Groups is empty. Removing items in /Library/Startup Items actually added 15seconds to the login time.
0
 
TheFishyFewAuthor Commented:
It might be the Symantec startup items. I replaced only the KACE agent in /Library/Startup Items and I'm at 38 seconds.
0
 
strungCommented:
You could also try uninstalling CCAgent:

http://helpdesk.illinoisstate.edu/kb/1514/How_to_uninstall_Cisco_Clean_Access_CCA_agent_for_Mac_OS_X/

Do you have the most up to date version?
0
 
strungCommented:
I wonder if the problem is a conflict between Symantic and CCAgent. As I understand it, CCAgent checks for valid anti-virus software on startup.
0
 
strungCommented:
In other words, try uninstalling both at once.
0
 
TheFishyFewAuthor Commented:
That might have been the ticket. Symantec and CCA are gone. Shutdown is now 3 seconds. Startup is 35 seconds, almost half of what it was before. I didn't know CCA checked for virus software. I know it does in conjunction with Cisco's ISE which we are implementing in a few months.

So, how to resolve the conflict between the two? He's got to have both in order to get on our network....
0
 
strungCommented:
Google "Mac CCAgent". There are lots of discussions.

Was CCAgent up to date? Maybe a more recent version might help.

There are also a lot complaints about the Mac version of Norton. The general consensus seems to be that there are better alternatives.
0
 
TheFishyFewAuthor Commented:
We are using the managed version of Symantec, vs 12.1.2015
CCA is vs 4.9.0.659. Its supposed to autoupdate but I see that its not. Someone must've turned it off at the server level.
There is a new version released in june of this year. I'll try to get it. I have to go through the admins as the cisco site wants me to login with credentials which i don't have.
0
 
TheFishyFewAuthor Commented:
Still haven't been able to get the updated version of CCA. I'll try again on Monday. However, I checked the log files thoroughly. All 4 symantec launchagents are terminating, exiting early with an error code of 15. I'm investigating that now.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.