This page contains the recommended memory settings for the Java environment. It is based on commonly used system configurations. Common SettingsThese settings should always be set in a BellaDati Java environment. File encoding | -Dfile.encoding=UTF-8
|
---|
Temp directory | -Djava.io.tmpdir=/tmp
|
---|
JDBC SettingsThese settings allow to set JDBC connection to database used internally by BellaDati. It's an alternative to setting up a JDBC resource in the application server which requires manual addition of proper JDBC driver to the server's classpath. JVM setting | Description |
---|
jdbc.driverClassName
| JDBC driver used by BellaDati for database connections. Currently, only org.postgresql.Driver is supported. | jdbc.url
| If you don't have a JNDI data source configured, you can use the jdbc.url,jdbc.username and jdbc.password parameters. The URL should look like: jdbc:postgresql://db_host:5432/belladati_db where db_host is the host name of your database server. Visit Setting up the PostgreSQL Database for more information. | jdbc.username
| Username used by BellaDati to access the database. This parameter is used only when jdbc.url is set. | jdbc.password
| Password used by BellaDati to access the database. This parameter is used only when jdbc.url is set. | jdbc.pool.maxActive
| Maximum number of active database connections. Recommended value is 200. | jdbc.pool.minIdle
| Minimum number of database connections in idle state. Recommended value is 8. | jdbc.pool.maxIdle
| Maximum number of database connections in idle state. Recommended value is 8. | jdbc.pool.minIdleEvictionTime
| The minimum amount of time (in milliseconds) an idle database connection may sit idle in the pool before it is eligible for eviction by the idle object evictor (if any). Default value is 30 minutes. | jdbc.pool.maxWaitTime
| The maximum number of milliseconds that the pool will wait (when there are no available connections) for a connection to be returned before throwing an exception, or -1 to wait indefinitely. Default value is 60000 milliseconds. | jdbc.resource
| Name of the JNDI resource to access the database, e.g. jdbc/belladati_db. Specify only if you are using a JNDI data source. |
Minimal ConfigurationThis configuration is recommended for a less than 10 users analyzing thousands of records. System memory | 4GB |
---|
Heap Size | -Xmx2048m
|
---|
Permanent Generation Space | -XX:MaxPermSize=256m
|
---|
Note |
---|
If you are using a 32-bit JVM on Windows, you can use at most 1344 MB of heap memory. |
Medium-load ConfigurationThis configuration is recommended for a 10-100 users analyzing hundred thousands of records. System memory | 8GB |
---|
Heap Size | -Xmx6144m
|
---|
Permanent Generation Space | -XX:MaxPermSize=512m
|
---|
High-load ConfigurationThis configuration is recommended for a 100+ users analyzing millions of records. System memory | 16GB |
---|
Heap Size | -Xmx14336m
|
---|
Permanent Generation Space | -XX:MaxPermSize=768m
|
---|
|