---
title: "How to get around the open files limit on Solaris probes/gateways"
description: "The open files limit on Solaris probes and gateways can be raised using the extended FILE facility. This involves enabling the facility and increasing the file descriptor limit in the shell before launching the application."
url: "https://docs.itrsgroup.com/docs/faq/geneos/115004031329-geneos-how-to-get-around-the-open-files-limit-on-solaris-probes-gateways/index.html"
---
## *This article is specifically for Solaris platforms which is only supported on GA4.x.x*

#### *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](https://docs.itrsgroup.com/docs/all/geneos/7x-geneos-compat-matrix/index.html#geneos-compatibility-and-lifecycle)*

**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](http://docs.oracle.com/cd/E19253-01/816-5175/6mbba7evs/index.html)


