Back to Geneos FAQ

How to get around the open files limit on Solaris probes/gateways

This article is specifically for Solaris platforms which is only supported on GA4.x.x Copied

End of life for Geneos 4.x.x is set to 31 May 2023. If you are using Geneos 4.x.x, we advise you to upgrade to Geneos 5.x.x or newer. For more details please see our Compatibility Matrix Copied

By using the extended FILE facility in Solaris in order to lift the open files limit from the default 256.

The extended FILE facility allows 32-bit processes to use any valid file descriptor with the standard I/O C library functions. Historically, 32-bit applications have been limited to using the first 256 numerical file descriptors for use with standard I/O streams. By using the extended FILE facility this limitation is lifted. Any valid file descriptor can be used with standard I/O.

The extended FILE facility is enabled from the shell level before an application is launched. The file descriptor limit must also be raised. The syntax for raising the file descriptor limit (in bash/ksh/sh) is

$ ulimit -n max_file_descriptors $ LD_PRELOAD_32=/usr/lib/extendedFILE.so.1

where max_file_descriptors is the maximum number of file descriptors desired. Sample declaration on a bash start script #!/bin/bash ... export LD_PRELOAD_32=``/usr/lib/extendedFILE``.so.1 ulimit -n 1024 ...

* for C shell (csh), the syntax would be: Sample declaration on a csh start script #!/bin/csh ... setenv LD_PRELOAD_32 /usr/lib/extendedFILE``.so.1 limit descriptors 1024 ...

This increases the open file descriptors on Solaris to 1024, which is the default on Linux

Reference For more information on this extended FILE facility on Solaris systems, please read here: Link

["Geneos"] ["FAQ"]

Was this topic helpful?