Raise the file-descriptor limits to a max of 4096. Note that this tuning option was not mentioned in the “Sun Performance And Tuning” book. In /etc/system add these lines. Note these values can be set only once, at boot time.
Set a hard limit on file descriptors:
set rlim_fd_max = 4096
Set a soft limit on file descriptors:
set rlim_fd_cur = 1024