# Configuring with Java System Properties

Configuration properties may be set using Java system properties on the IQ server start-up script. The property overrides start with the prefix **dw.**- followed by a dot-separated path to the configuration value being overridden.

#### Example Java Command Overriding baseUrl with System Properties

```
java -Ddw.baseUrl=http://iq.example.com -jar nexus-iq-server-*.jar server config.yml 2> stderr.log
```

## Configuring maxConnections

You can configure the `maxConnections` setting by passing it as a Java system property. This gives you flexibility to adjust the database connection pool size dynamically without modifying the YAML file.

Use the Dropwizard configuration override syntax with the **dw.** prefix followed by the full path to the configuration property. In this case:

```
-Ddw.database.maxConnections=<desired_value>
```

Example 1. Example

To start the server with a maximum of 100 connections, run:

```
java -Ddw.database.maxConnections=100 -jar nexus-iq-server-*.jar server config.yml
```

This command will override the `maxConnections`value in your configuration at startup.

### Version and Compatibility

- This configuration option is available in IQ Server version 187 and later.
- Make sure that your PostgreSQL server’s `max_connections` setting is higher than the value you configure here to prevent connection issues.

For `maxConnections` reference values, see [Maximum Pool Size.](https://help.sonatype.com/en/external-database-configuration.html "External Database Configuration")
