Mac OS X Server

Mac OS X Server: AppleFileService Crashing When Searching

So you just installed that new Xserve and you are starting to notice that the AppleFileServer is spiking when your users are searching the AFP volume for some media.  To fix, first, backup /etc/rc.server (just in case).  

Then change this line:

sysctl -w kern.maxnbuf=90000

Replace the 9 with a 2 and then save the file and then reboot.