Issue: Too many open files in TeamForge

Issue

Users are not able to login to the site and the logs show the error SocketException: Too many open files

Solution

If you see the error SocketException: Too many open files in your logs, it means that the server ran out of file descriptors. FD limits are configured out of the box in more recent versions from CTF 17.4 using the file /etc/security/limits.d/teamforge.conf.

How to prevent this

FD limits have to be configured accordingly based on your hardware specifications. We recommend you open a support ticket and include the hardware details of the server and the current FD limits configuration. Then we can recommend a configuration. 

To obtain the current FD configuration:

Login as sf-admin to the application server and run the below command which gives the  FD limits configuration of your server. 

cat /proc/sys/fs/file-max
ulimit -a

Note: It is assumed sf-admin is the APP_USER. Use command below to confirm.

grep APP_USER /opt/collabnet/teamforge/runtime/conf/runtime-options.conf

 

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.