Skip to content

Resources, jobs and queries#

How Empowerment Center's work is shared out among the backend's memory, the own database and the client databases, and the limits that protect it. The default values are fine to start with; this page says what to look at in the operations console to know when to change them.

Memory#

The backend JVM takes 75 % of its container's memory limit for its heap (-XX:MaxRAMPercentage=75 in the image) and exits if it runs out of memory (-XX:+ExitOnOutOfMemoryError), so that the orchestrator restarts it.

Container Variable Default
Backend ECENTER_BACKEND_MEMORY 4g (about 3 GB of heap)
Own database ECENTER_DB_MEMORY 1g
Headless browser ECENTER_RENDER_MEMORY 2g, with 1 GB of shared memory
Frontend ECENTER_FRONTEND_MEMORY 256m
Routing engine ECENTER_ROUTING_MEMORY 6g

Without a container limit (without containers, or with an orchestrator that does not set one), set the heap by hand: JAVA_TOOL_OPTIONS="-Xmx3g -XX:+ExitOnOutOfMemoryError".

When to raise it. The operations console opens the memory alert when the memory used after the last garbage collection exceeds 90 % of the maximum (ecenter.operations.alerts.memory-percent). What takes the most is calculated cubes, which stay in memory while they are being used:

Property Default What it is
ecenter.cube.max-bytes 256MB The largest estimated memory of a calculated cube. If it exceeds it, the job fails.
ecenter.cube.cached-pivots 16 The cube layouts already pivoted that are kept in memory.
ecenter.cube.pivot-ttl 10m How long a pivoted layout is kept without being used.
ecenter.jobs.result-ttl 30m How long a finished job and its result are kept. After that time, the user has to calculate again.

The own database#

The backend uses a pool of connections to the own database shared by requests, jobs and maintenance.

Property Variable Default
spring.datasource.hikari.maximum-pool-size SPRING_DATASOURCE_HIKARI_MAXIMUM_POOL_SIZE 10

When to raise it. If Administration › Operations › Summary shows connections waiting under Own DB, raise it (for example, to 20 with many jobs at once). With several instances, the total of their pools cannot exceed PostgreSQL's max_connections (100 in the PostGIS image). With the own database in Oracle, count those sessions in the database's PROCESSES and SESSIONS, for each instance.

The client database pools#

Each connection has its own pool of sessions with the client database, shared by all the jobs of the instance: cubes, charts, maps, forms, lists, external data, deliveries and API queries.

Property Default What it is
ecenter.datasource.pool.max-size 5 The maximum number of sessions open with each connection's database. Variable: ECENTER_DATASOURCE_POOL_MAXSIZE.
ecenter.datasource.pool.min-idle 0 The unused sessions kept open. With 0, they are all closed when they become free.
ecenter.datasource.pool.idle-timeout 5m How long an unused session above min-idle stays open. At least 10s.
ecenter.datasource.pool.connection-timeout 15s How long a job waits for a session to become free. After that, the job fails, even if there are free threads. At least 250ms.
ecenter.datasource.pool.retire-timeout 10m When a connection's access details change or it is deactivated, the maximum wait for the sessions in use of the previous pool to finish before closing them.
ecenter.datasource.catalog.refresh-wait 10s How long Refresh catalog waits for its job before leaving it in the background.

How to size it. Add up the jobs that can query the same connection at the same time: those of each class that really coincide (see The jobs), plus the reads done in the request itself (the values of a selector, the details of a form). With 5 sessions, five long cubes at once on the same connection already make the sixth wait.

When to raise it. If the console's Summary shows sessions waiting in the Pool column of a connection, or there are jobs that fail because the database does not respond in time. Do not exceed the sessions the client database allows for the connection's user, counting the other instances.

The jobs#

What may take time (calculating a cube, refreshing a list, loading external data) runs as a job in a queue per class. Each class has its number of jobs at a time; the rest wait their turn.

Class Which jobs At a time by default
CUBE Cubes, detail cubes and totals calculated by the database. 4
CHART Charts. 4
MAP Maps. 4
FORM Reading the records of a form. 4
LIST Refreshing lists. 4
EXTERNAL_DATA Analysis, integration and loading of external data. 4
PUBLICATION Publishing to the portal (freezing the data). 4
LEGACY_IMPORT Analysis and import of an Empowerment Center 7 installation. 4
API Queries from the query API, the MCP and the ad hoc query. 2
DELIVERY Subscription deliveries and data alert evaluations. 2
OTHER The rest: refreshing the catalog, loading groupings, console checks… 4
Property Default What it is
ecenter.jobs.default-concurrency 4 The jobs at a time of a class that does not have its own.
ecenter.jobs.max-concurrent.<CLASS> API: 2, DELIVERY: 2 The jobs at a time of a class.
ecenter.jobs.max-queued-per-user 100 The jobs of a user that can wait in the queue of a class. The next one is rejected with 429 TOO_MANY_JOBS and the Retry-After header (in the query API and the MCP, TOO_MANY_RUNNING). Those launched by the scheduler, subscriptions and alerts do not count. Variable: ECENTER_JOBS_MAXQUEUEDPERUSER.
ecenter.jobs.result-ttl 30m How long a finished job and its result are kept.
ecenter:
  jobs:
    max-concurrent:
      CUBE: 6
      API: 2
      DELIVERY: 2

When to change it. If the console shows jobs waiting a long time in a queue (the alert fires at 10 minutes) and the client database can take more, raise that class and the pool of its connections at the same time. If a user processes workbooks with many documents and reaches the queue limit, raise max-queued-per-user. Queues and jobs belong to each instance.

Queries to the client database#

Property Default What it is
ecenter.querying.timeout 5m The time limit of a statement in the client database.
ecenter.querying.max-rows 100000 The rows of a query when whoever asks for it does not give its maximum, and the limit of the ad hoc query.
ecenter.querying.ad-hoc-wait 30s How long the ad hoc query waits for its result before responding that it is still running.

Cubes and charts#

Property Default What it is
ecenter.cube.max-rows 200000 The combinations of dimension values brought from the database for a cube.
ecenter.cube.max-bytes 256MB The largest estimated memory of a calculated cube.
ecenter.cube.warn-rows 100000 The rows estimated by the database from which confirmation is asked before calculating a cube. 0, never ask. The query API and the MCP use it too.
ecenter.cube.max-view-cells 20000 The cells of a viewer window.
ecenter.cube.max-export-cells 1000000 The cells of an export (Excel, text or HTML).
ecenter.cube.cached-pivots 16 The pivoted layouts kept in memory.
ecenter.cube.pivot-ttl 10m How long a pivoted layout is kept without being used.
ecenter.charts.max-points 20000 The points of a chart: its categories times its series.

Forms and lists#

Property Default What it is
ecenter.forms.max-rows 10000 The records read from a form or a detail. If there are more, they are marked as incomplete and the segmentation must be narrowed down.
ecenter.forms.lookup-usage-wait 30s How long the request for who uses a value of an auxiliary table waits before leaving it in the background.
ecenter.recordlists.timeout 30m The time limit of each statement when refreshing a list, and of the wait for another refresh of the same list.

External data#

Property Default What it is
spring.servlet.multipart.max-file-size 100MB (ECENTER_MAX_UPLOAD) The largest file uploaded.
ecenter.externaldata.max-rows 5000000 Rows per table of a file.
ecenter.externaldata.max-columns 1000 Columns per table of a file.
ecenter.externaldata.upload-ttl 24h How long an upload is kept without being integrated or loaded.
ecenter.externaldata.timeout 30m The time limit of each statement when loading.
ecenter.externaldata.check-timeout 60s That of the checks made in the request (the key, the link).
ecenter.externaldata.sample-rows 10 Rows of the sample of each table.
ecenter.externaldata.preview-rows 40 Rows of each Excel sheet shown to choose its header and its ranges.
ecenter.externaldata.upload-directory (empty: ecenter-external in the temporary directory) The folder of the upload files while they last. Variable: ECENTER_EXTERNALDATA_UPLOADDIRECTORY.
ecenter.externaldata.max-shared-strings 200MB How much the text table of an .xlsx, which is read whole into memory, may take uncompressed.
ecenter.externaldata.max-xls 30MB How much an .xls, which is read whole into memory, may take. With more, you are asked to save it as .xlsx.

Important

The upload folder is for ECenter's exclusive use: the files of uploads that expire are deleted from it. Do not share it with other applications. It is on the instance's disk, the one the free-space alert watches.

Geographic layers#

Property Default What it is
ecenter.maps.upload-ttl 24h How long an uploaded file is kept without creating the layer.
ecenter.maps.max-features 200000 The features of a file.
ecenter.maps.max-dots 20000 The points of a dot density.
ecenter.maps.store (empty) How the features of the layers are stored: postgis or portable (the application calculates the geometry, without PostGIS). Empty, whatever corresponds to the engine of the own database: postgis in PostgreSQL and portable in Oracle. postgis with the own database in Oracle prevents startup. Changing it does not convert the features from one form to the other: the layers are uploaded again. See Geographic layers.

Groupings#

Property Default What it is
ecenter.metadata.groupings.max-buckets 200 Buckets of a grouping, not counting “Other”.
ecenter.metadata.groupings.max-ranges 200 Ranges of a grouping, among all its buckets.
ecenter.metadata.groupings.max-values 50000 Assigned values of a grouping, among all its buckets.
ecenter.metadata.groupings.load-timeout 5m The time limit of each statement of the load of its work table in the client database.
ecenter.metadata.groupings.load-wait 10s How long Load now waits before leaving the load in the background.

What exceeds the first three is rejected when the grouping is saved; it is never trimmed.

Import from Empowerment Center 7#

Property Default What it is
ecenter.legacy-import.groupings.max-rows 100000 The rows read from each EC7 grouping table. What exceeds it is not read and a warning is given.
ecenter.legacy-import.groupings.read-timeout 2m The time limit of each read.

See also#