When starting automatically Policy Server at machine boot time, the Policy Server reports only 1024 file descriptors instead of the 65k defined for the user smuser. Policy Server reports:
[1323/140645744498496][Wed Apr 29 2020 07:47:18][CServer.cpp:2646][INFO][sm-Server-01750] Maximum number of file descriptors available to this process is 4096
[1323/140645744498496][Wed Apr 29 2020 07:47:18][CServer.cpp:4847][INFO][sm-Server-02010] Available file descriptors: 1024
Automatic restart has been configured as per documentation (1).
Some parameters can be added to the systemd configuration to solve the issue.
In the /etc/systemd/system/S98sm.service file, add the LimitNOFILE= parameter to the desired value.
To illustrate, wanting the process to have open files limit to 10000:
/etc/systemd/system/S98sm.service
[Unit]
Description=S98sm Service
Requires=network.target
[Service]
Type=forking
User=smuser
LimitNOFILE=10000
ExecStart=-/{home_policy_server}/start-all
ExecStop=-/{home_policy_server}/stop-all
Restart=on-abort
[Install]
WantedBy=multi-user.target
smps.log
[16823/140052286306112][Fri Jun 12 2020 09:42:44][CServer.cpp:4252][INFO][sm-Server-02110] Product=Policy Server,Platform=Linux 3.10.0-1127.10.1.el7.x86_64,Version=12.8,Update=03.00,Label=2138,Crypto=128,UTC=1591947764,TZ=1
[16823/140052286306112][Fri Jun 12 2020 09:42:44][CServer.cpp:4847][INFO][sm-Server-02010] Available file descriptors: 10000