Apple Mountain Lion Server: Enable the dedication of resources to Server apps
A few days ago a friend called me and told me, they the performance of there Apple Mountain Lion Server seems to slow down since a while.
Yesterday they gave me access… After a few research I figured out, that both 10.8 Servers didn’t run in “Server Performance Mode”!
Since 10.8 (Mountain Lion) this setting is missing in the Server.app (The GUI). If you want to figure out if your server is running in “Server Performance Mode” (enable the dedication of resources to Server apps), just fire up the following in your terminal:
jhochwald@brain:~ $ serverinfo --perfmode
Server performance mode is enabled.
In the output above you see, that the “Server Performance Mode” is enabled!
Otherwise you’ll get: Server performance mode is NOT enabled.
Here is how to enable/disable the “Server Performance Mode”:
Enable “Server Performance Mode”:
jhochwald@brain:~ $ sudo serverinfo --setperfmode 1
Server performance mode was enabled.
Disable “Server Performance Mode”:
jhochwald@brain:~ $ serverinfo --setperfmode 0
Server performance mode was disabled.
The alternative to the commands above is the “serveradmin” command. Here are the examples for this:
Read the status of “Server Performance Mode”:
sudo serveradmin settings info:enableServerPerformanceMode
info:enableServerPerformanceMode = yes
Enable “Server Performance Mode”:
sudo serveradmin settings info:enableServerPerformanceMode = yes
Disable “Server Performance Mode”:
sudo serveradmin settings info:enableServerPerformanceMode = no
I think there is no difference, so its up to you to use the “serverinfo” or the “serveradmin” command.



Recent Comments