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.
- 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.
- 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.
- 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.
- Enter “exit” in your terminal and reboot your system.
- 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”.
- 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:
- 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