To make it a system-wide change, edit
/etc/system
with following entries# Hard limit on file descriptors for single process
set rlim_fd_max = 4096
# Soft limit on the file descriptors for a single process
set rlim_fd_cur = 1024
NOTE: without setting
rlim_fd_max
as shown above, the default value for file descriptors or nofiles is half of the rlim_fd_cur
value. So, it's best to set them both.If you are using a Solaris project for an application space like Oracle Database, you can set the max file descriptors in the project by:
projmod -s -K "process.max-file-descriptor=(privileged,1024,deny)" user.root
No comments:
Post a Comment