The meaning of file descriptors messages in smps.log.

Document ID : KB000014468
Last Modified Date : 14/02/2018
Show Technical Document Details
Question:

What is the difference of 'Maximum number of file descriptors' and 'Available file descriptors' in smps.log ?

 

[2649/4151318240][Mon May 01 2017 10:48:48][CServer.cpp:2492][INFO][sm-Server-01750] Maximum number of file descriptors available to this process is 4096 

[2649/4151318240][Mon May 01 2017 10:48:48][CServer.cpp:4645][INFO][sm-Server-02010] Available file descriptors: 1024 

Answer:

We use getrlimit when we print message Maximum number of file descriptors available to this process

http://man7.org/linux/man-pages/man2/setrlimit.2.html

 

When we print Available file descriptors:

We use function sysconf  with parameter _SC_OPEN_MAX

http://man7.org/linux/man-pages/man3/sysconf.3.html