---
title: "FAPI-shell Resource Limit"
slug: "guide/configuration/server-start-up-file/fapi-shell-resource-limit"
sidebar:
  order: 51.1
---

## Synopsis

```properties
egr.eai.gf.max_data_seg_size=<size>
```

Sets the maximum data segment size passed to the FAPI-shell when it is started. Configure this property in the [server start-up file](/pCon/configuratorOnline/specs/guide/configuration/server-start-up-file), normally `etc/startup/server.cfg`.

The value must be a non-negative integer followed by one of these multiplicative suffixes:

| Suffix | Multiplier in bytes |
| --- | --- |
| `B` | 1 |
| `K` | 1,024 |
| `M` | 1,048,576 |
| `G` | 1,073,741,824 |

For zero, the suffix is optional. For example:

```properties
egr.eai.gf.max_data_seg_size=2G
```

On non-Windows systems, the FAPI-shell uses the specified value to set the soft limit of its data segment through `setrlimit(RLIMIT_DATA, ...)`. A value of `0` sets the soft limit to the existing hard limit.

On Windows, this property has no effect in EAIWS 4.20.
