Below are the steps to increase this limits value for the Linux user used to run the TSIM. Root user access may be required to make these changes:
- Open the file /etc/security/limits.conf in edit mode
- Add/Edit the following two parameters to the value 32000:
- <tsim_user> soft nofile 65536
- <tsim_user> hard nofile 65536
- <tsim_user> soft nproc 32000
- <tsim_user> hard nproc 32000
- Save the file
- Logoff all current putty sessions of the TSIM user and login again
- Run the "ulimit -a" command to verify if the "max user processes" and "max open files" values have been updated
Post the above changes, few changes need to be made in some of the configuration files of the TSIM so as to ensure that the jserver and wildfly processes run with the ulimit settings set for the TSIM user. Below are the steps:
- Take a backup of <Install_Dir>/TrueSight/pw/pronto/bin/pw file and place the backup file in a different location
- Open the file <Install_Dir>/TrueSight/pw/pronto/bin/pw file in Edit mode
- Search for the below line in the file:
- my $set_ulimit = "ulimit -n 16096; ";
- Edit this line and update the value as 65536 as shown below:
- my $set_ulimit = "ulimit -n 65536; ";
- Save and close the file
- Take a backup of <Install_Dir>/TrueSight/pw/pronto/lib/perl/PWProcess.pm file and place the backup file in a different location
- Open the file <Install_Dir>/TrueSight/pw/pronto/lib/perl/PWProcess.pm file in Edit mode
- Search for the below line in the file:
- my $set_ulimit = "ulimit -n 4096; ";
- Edit the line and update the value as 65536 as shown below:
- my $set_ulimit = "ulimit -n 65536; ";
- Save and close the file
- Restart all TSIM services
- Post successful restart, run the "pw p l" command and note the PIDs for the processes "services" and "jserver"
- Navigate to location "/proc/<services_PID>" and run command "cat limits":
- Verify if the below two parameter values are updated as shown below:
- Max processes 32000 32000 processes
- Max open files 65536 65536 files
- Navigate to location "/proc/<jserver_PID>" and run command "cat limits":
- Verify if the below two parameter values are updated as shown below:
- Max processes 32000 32000 processes
- Max open files 65536 65536 files
- If the updated values are reflected, then the changes are successful
If after increasing the ulimit settings set for the TSIM user the problem is still occurring, check if there are deprecated/decommissioned cells still configured, and if yes, make sure to delete deprecated/decommissioned configured Cells using
mdelcell command.