Configuring the Deployment Environment
Optimize memory management and network parameters to improve server performance.
- Disable the transparent huge page (THP) function.
echo never > /sys/kernel/mm/transparent_hugepage/enabled
- Modify system control parameters.
- Open the file.
vim /etc/sysctl.conf
- Press i to enter the insert mode and add the following content to the file:
vm.overcommit_memory = 1 net.core.somaxconn = 32767
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Make the configuration take effect.
sysctl -p
- Open the file.
Parent topic: Deployment Guide