ZebraTester Blog

Everything Web Performance


Tune your Mac OS X System.

Tune your Mac OS X System. The default OS-settings for the maximum number of network connections per process is restricted to a value of 256 on almost all Mac OS X versions. You can verify this value by entering the command “ulimit -n” from a terminal. This value is too small to execute load tests from Mac OS X and it is also too small to monitor remotely executed cluster jobs. Therefore we strongly recommend that you tune your Mac OS X system and increase this value to 4096. Instructions:
  1. Get first the system-wide configuration for the maximum number of network connections by entering “sysctl kern.maxfiles” from a terminal. Typically you will see a value of 12288.
  2. Edit or create the file /etc/launchd.conf by entering “sudo vi /etc/launchd.conf” from a terminal. On most Mac OS X systems this file does not yet exist.
  3. Add the following line to launchd.conf: limit maxfiles 4096 12288 Note: instead of 12288 you should use the actual value of sysctl kern.maxfiles, and please do not configure “unlimited” for this value.
  4. Enter “exit” in your terminal and reboot your system.
  5. After rebooting, enter once again “ulimit -n” in a terminal. You should now see a value of 4096.
In addition you have to add a new Java security provider called “iaik.security.provider.IAIK”.
  1. Locate the file named “java.security” on your computer by entering sudo find / -name “java.security” -print from a terminal. Typically this file is found in the following directory: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/security
  2. Edit this file by entering the command sudo vi java.security and add the IAIK security provider at the last position. Example: # # MacOSX added com.apple.crypto.provider.Apple as #3 security.provider.1=sun.security.pkcs11.SunPKCS11 ${java.home}/lib/security/sunpkcs11-macosx.cfg security.provider.2=sun.security.provider.Sun security.provider.3=com.apple.crypto.provider.Apple security.provider.4=sun.security.rsa.SunRsaSign security.provider.5=com.sun.net.ssl.internal.ssl.Provider security.provider.6=com.sun.crypto.provider.SunJCE security.provider.7=sun.security.jgss.SunProvider security.provider.8=com.sun.security.sasl.Provider security.provider.9=org.jcp.xml.dsig.internal.dom.XMLDSigRI security.provider.10=sun.security.smartcardio.SunPCSC security.provider.11=iaik.security.provider.IAIK

Leave a Reply

Your email address will not be published. Required fields are marked *