# Set Node.js Options for Remote Instances

> FlowFuse Device Agent v3.8.1 adds support for passing Node.js command line arguments to Remote Instances, enabling custom heap sizes and private CA certificate support.

FlowFuse Device Agent v3.8.1 adds support for setting Node.js command line arguments for Remote Instances.

This allows things like:

- Setting the Node.js heap size for memory-intensive flows
- Enabling `--use-openssl-ca` (Linux) or `--use-system-ca` (Windows and macOS) to use private CA certificates

Node.js options can be configured in two ways:

### 1. Via the device agent command line

Use the `--node-options` argument. This argument may be specified multiple times:

```bash
flowfuse-device-agent -c /opt/flowfuse-device-agent/device.yml \
    --node-options='--max-old-space-size=256' \
    --node-options='--use-openssl-ca'
```

### 2. Via the `device.yml` file

Add a `nodeOptions` section:

```yaml
deviceId: xxxxxxx
forgeURL: https://app.flowfuse.com
token: xxxxxxxx
credentialSecret: xxxxx
nodeOptions:
- '--max-old-space-size=256'
- '--use-openssl-ca'
```

For more details, see [Configuring Node.js Options](/docs/device-agent/running/#configuring-nodejs-options).
