Skip to main content

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 configure a maximum of 100 connections for each PostgreSQL connection pool on the IQ Server node, run:

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

This command will override the maxConnectionsvalue in your configuration at startup.



Version and Compatibility

  • This configuration option is available in IQ Server version 187 and later.

  • When sizing PostgreSQL max_connections, account for both IQ Server connection pools on every node, along with additional headroom for other database activity.

For maxConnections reference values, see Maximum Pool Size.