System Tuning (macOS)

This is an Optional Step. This is not needed if you are using ZebraTester to create a script.

Only to run local ZebraTester Load Tests properly does Apica strongly recommend tuning the default network connections for your macOS system.

macOS

The OS-settings for the maximum number of network connections per process are restricted by default to 256 on almost all macOS X versions.

This default value is too small to execute even small tests from macOS systems. It is also too small to monitor remotely executed cluster jobs executed on any other machines.

  • You can verify your current value by entering the command "ulimit -n" from a terminal.

ZebraTester includes an automated script that helps set these defaults to allow proper ZebraTester loadtest executions. Locate this script in the ZebraTester Folderunder the MacTuning subFolder

Automated Tuning of macOS

Step

Screenshot

Step

Screenshot

Locate the Command File:

  • In Finder, open ZebraTester Folder and MacTuning subfolder.

  • Double-Click the DoMacTuning.command script

Review the default (non-tuned) settings

  • Enter "ulimit -n". Typically you will see: 256

  • Enter "launchctl limit"

  • Typically, you will see:

    • maxproc 709 1064

    • maxfiles 256 unlimited

Execute the Command File:

A terminal window appears.

  1. Press Return to continue

  2. Enter the superuser password (sudo root password)

  3. The settings are displayed with the new values. On this particular system, which has already been tuned, the values remain the same. These values will be set to smaller macOS defaults on systems that have never had ZT installed.

  4. The tuning is complete.

    1. Reboot the system.

 

Verify the New Settings

  • After the restart, open a terminal window and enter "ulimit -n" and "launchctl limit"

 

Can't find what you're looking for? Send an E-mail to support@apica.io