1. Aix
Core parameters:
(1) maxuproc: the maximum number of processes for each user. The default value is 128.
View: lsattr-El sys0
Modify: chdev-l sys0-A maxuproc = 500
(2) maxperm maximum non-computing memory usage, non-computing memory-memory used for I/O cache;
View: VMO [-F]-A | grep maxclient %; VMO [-F]-A | grep maxperm %
Modify: VMO-p-o maxclient % = 20; VMO-p-o maxperm % = 20;
A maximum of 20% physical memory is used to cache disk information. For online transaction processing scenarios, we recommend that you keep them in a small scope.
(3) system resource restrictions for the current user
View: ulimit-
Modify:/etc/security/limits
[Specified user]
No files = 10000
Fsize =-1
Reason: the number of opened files. Since opening a socket is also a file handle, more than 2000 handles may be opened at the same time. We recommend that you adjust it to 10000, fsize, because the log file size may exceed 2 GB without sharding, we recommend that you adjust it to an unlimited size;
2. Linux
(1) shared memory size/proc/sys/kernel/shmmax
Modify:/etc/sysctl. conf to add a line of kernel. shmmax = 1073741824 (set to 1g, restart takes effect)
(2) semaphore limit/proc/sys/kernel/SEM
View: IPCS-l or CAT/proc/sys/kernel/SEM
Modify:/etc/sysctl. conf to add a line of kernel. SEM = 250 32000 128 1024 (set to a maximum of 128, restart takes effect)