| Auszug |
|---|
|
Nuclos high user load: max_connections, maxActive, maxThreads, postgresql.conf, server.xml, JDBC pool, performance, concurrent requests. |
Language: Deutsch · English
Configuring Nuclos for high user load
Configure Nuclos for many concurrent requests – align max_connections, maxActive and maxThreads.
| Status |
|---|
| colour | Blue |
|---|
| title | Administrator |
|---|
|
| Status |
|---|
| colour | Green |
|---|
| title | Updated: Jul 2026 |
|---|
|
| Status |
|---|
| colour | Grey |
|---|
| title | applies to Nuclos 4.2026.x |
|---|
|
By default Nuclos handles up to 100 concurrent requests. If that is not enough under high load, three configuration files must be aligned (example: 300 requests; PostgreSQL).
1. postgresql.conf
Increase max_connections (default 100) – if it is lower than the number of concurrent requests, requests fail:
| Codeblock |
|---|
|
max_connections = 300 |
| Warnung |
|---|
|
PostgreSQL starts a separate process per connection – more connections need more memory. Provide enough RAM, otherwise out-of-memory or swapping may occur. |
2. nuclos-beans-startup.xml
Located in the archive webapp/WEB-INF/lib/nuclos-server-<version>.jar under META-INF/nuclos/. Adjust the JDBC session pool value maxActive (should be larger than max_connections):
| Codeblock |
|---|
|
<bean id="nuclosDataSource" class="org.nuclos.server.database.NuclosBasicDatasource" destroy-method="close">
[...]
<property name="maxActive" value="350"/>
</bean> |
3. server.xml
Under tomcat/apache-tomcat-<version>/conf/. Increase maxThreads of the used HTTP connector (default 200; 150 for SSL):
| Codeblock |
|---|
|
<Connector compressableMimeType="text/html,text/js,text/css,application/javascript,application/json" compression="on" compressionMinSize="2048" connectionTimeout="20000" port="8010" redirectPort="8443" maxThreads="300"/> |
Related pages
Tomcat administration
Tomcat.
Open →