Note: httpd (and all other non-packet engine processes on Netscaler) run ONLY on the management CPU core. On most ADC models, there is only 1 management core. Therefore, adding too many httpd processes can have negative effects, including RAM exhaustion and swapping. In an SDX environment, it is often preferable to provision additional VMs (each with it’s own management core) rather than increasing this value too far.
To resolve this, we need to increase the MaxClients from 30 to 60 in the “httpd.conf” and then restart the process.
Note: 60 is recommended if you have confirmed you have experienced this issue, however with certain customers who have very heavy loads on a single ADC, this number may need to be even higher up to 90. We do not recommend higher values unless it is found necessary due to testing. The value can be set as high as 255 without other changes, but again higher values are not recommended unless found to be required with testing.
Note: If performing the changes in a High Availability setup changes must be made under PRIMARY node otherwise HA file synchronization will override the changes made in /nsconfig folder.
- Before you modify files, ensure you have a local copy of the original /etc/httpd.conf. Store this file in a location that is not on the ADC, i.e. your local drive.
- Using a texteditor (ee), open the /etc/httpd.conf file, and modify the MaxClients value to 60
- Copy /etc/httpd.conf to /nsconfig/httpd.conf. From CLI you can use this command: cp /etc/httpd.conf /nsconfig/
- Run the ps -aux | grep -i httpd command and you should see an output that shows one root process and other processes labelled as nobody. Note the PID (column 2) for the process owned by root.
- Kill the root process by running this command (replace PID with number from above): kill -6 PID
- After killing the process, wait for 2 minutes and the process will get started automatically.
- This can be confirmed by running the command from step 4 again and looking for the httpd process owned by root.
- If the httpd process does not start after waiting for some time you can restart the process with below commands:
#/bin/httpd -f /etc/httpd.conf
If you need to go back to the original configuration:
- Ensure you have the local copy of the original /etc/httpd.conf
- Delete the /etc/httpd.conf
- Delete the /nsconfig/httpd.conf
- Copy your local copy of httpd.conf to /etc/httpd.conf and /nsconfig/httpd.conf
Note: The copy on /nsconfig/ dir will ensure the parameter MaxClients 60 is loaded after a full reboot every time. No need to change it in Secondary node in a HA setup, HA Sync will update the file in Secondary node automatically.
WARNING – Following the above solution might result in issues with future firmware upgrades.