afp server issue - very hign cpu load

hallo

i googled an searched this forum al long time but i found no solution.

my problem is that my os x 10.5.4 server with about 30 networked homeddrive users have an issue with the afp server. the afp server process uses all 8 cores of this newest intel xserve with 14 gigs of ram installed. when this happens all users get an spinning wheel. the incoming network traffik is reduced to some kb´s.

ok all users shut down there clients - restart server and about 30 minutes later i have the same problem.

i have dumped the network traffic with wireshark and there i see some tcp retransmissions.
now i need someone who can help me analyse the wireshark protocol, because i cant´s handle that.

so if there is someone out there who can help me plz send me an email to support@premedia.at so that i can send you the wireshark log.

thank you in advice

Macbook Pro, Mac OS X (10.5.4)

Posted on Aug 29, 2008 2:47 AM

Reply
279 replies

Apr 10, 2009 9:18 AM in response to Manfred Rumpl

OK...I'm not using 10.5.x, but I am seeing a similar issue with AFP under Server 10.4.11. The next time that this happens, can any of you issue the following command in the terminal on the server that is exhibiting the issue:

fs_usage -f filesys AppleFileServer

Let me know if you get a BUNCH of these:

14:52:32 getdirentriesat 0.001715 AppleFileSer
14:52:32 getdirentriesat 0.001088 AppleFileSer
14:52:32 getdirentriesat 0.002078 AppleFileSer
14:52:32 getdirentriesat 0.001953 AppleFileSer
14:52:32 getdirentriesat 0.000982 AppleFileSer

We've noticed that when our AFP server goes out of control, we see several hundred of these come up.

I'm working with Apple on this, and they can't seem to figure anything out. I'm wondering if the issue with Leopard server and Tiger server AFP are the same.

Thank you in advance.

Apr 10, 2009 10:04 AM in response to Marc Hoffman1

I am also on 10.4.11 and when I do:

fs_usage -f filesys AppleFileServer | grep getdirentriesat

I see a lot of results, maybe not hundreds in a few seconds but the system is running 'normal' right now. What I do see as well is this:

reallocating bitmap for threadid 74249856, fd = 349, setsize = 256

Is that normal? Color me clueless - I've never used fs_usage before.
TIA
George

Apr 10, 2009 12:10 PM in response to George S. Jones

I think that it is normal to see some of these "getdirentriesat". It's when we see a BUNCH of these (they outnumber any other entries) that we have the problems.

On a side note, don't do the GREP. This will only give you the getdirentriesat items. Listing this entire output of the commands shows how many of these bad entries there are in relation to other entries.

Any other Leo server users that are seeing this?

Apr 27, 2009 8:12 AM in response to Marc Hoffman1

After about 3 weeks of good behavior, I am back to high CPU cycles (high 300-400). I tries the getdirentriesat command and saw a bunch, but they were not overly abundant compared to everything else I was seeing come up. Going to kill AFP again to try to reset it.

Unfortunately, killing AFP did nothing this time. I spiked right back up to where I was before. I will have to try to reboot the server as soon as I get a chance.

May 12, 2009 7:25 AM in response to Philipp Reinheimer

Philipp Reinheimer wrote:
The problem isn't fixed yet. We switched all of our user folders from AFP to NFS. We had no problems since switching to nfs, and users asked us, what we've done? the reported a significant performance boost with nfs.

Philipp



Did you have many problems switching to NFS? Were there any authentication (kerberos?) or resource fork issues?

Would be useful to know any good sources on this.

May 12, 2009 7:57 AM in response to Codeus

we are an typical advertising agency, using MS Office, iWork, Adobe CS3 (Photoshsop, Indesign), Cinema 4D etc. and serverbased userfolders.

We had only problems with Linotype Fontexplorer after switching to NFS. we had to setup the font-library in Linotype again, because Fontexplorer looses links to font-files. All other apps and files are working very well. but you need MacOS X 10.5.6 on your clients. there was a bug in older leopard version using serverbased userfolders with nfs. users can't customize their dock. after relogin, the dock was reseted to default OS X dock. this was fixed with 10.5.6 update.

Kerveros authentiation is working with nfs.

as i've written before, NFS is much faster than afp. our server is running at normal conditions at 10-30% CPU (8-core Intel XServe). no performance problems, no abnormal afp service.

hope this helps.

Philipp

May 12, 2009 9:59 AM in response to cpstech

Same here. 2 or 4 days with no issue. Then the 30/60/90 plateauing. I generally kill afp when it gets above 50% since it doesn't hurt anything (or hasn't so far). I forgot to check last week before leaving early one day - 100% and problems with all kinds of things (login, preferences lost, etc.) all afternoon and the next morning until I noticed. Behaving nicely today. Sigh. Also waiting for 10.5.7 or a miracle.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

afp server issue - very hign cpu load

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.