When midPoint performance tuning is worth doing
Performance tuning is worth doing when reconciliations, imports or recompute tasks take longer than your operations window allows, or when memory use and processing time rose after an upgrade to midPoint 4.9 or later. Tuning covers the settings that govern how midPoint uses memory, threads, provenance metadata, attribute caching and the database, so the first step is always to measure. Before changing anything, record how long the slow tasks take, how many objects they process, how much heap the JVM uses under load, and where the database spends its time. Without those baselines, you cannot tell whether a change helped or simply moved the bottleneck.
The most common trigger is provenance metadata. midPoint 4.9 enabled provenance metadata for multivalue properties by default, which increases memory, storage and processing. If your mappings define custom ranges, the default may be unnecessary overhead, and the internals setting internals/valueMetadata/disableDefaultMultivalueProvenance is the control to evaluate. Before you change it, confirm with your own mapping design and audit needs whether you rely on that metadata. Other levers are JVM memory, task thread counts and attribute caching, which stores copies of account attributes in the repository to reduce connector calls. Each lever has trade-offs in memory, data freshness and load on target systems, so review the Evolveum performance documentation and the attribute caching reference together with your own measurements.
Treat every tuning change as a change to a production identity system. Settings that alter how provenance, caching or threads behave can change what data midPoint stores and when target systems are contacted, so test each change in a non-production environment that mirrors your data volumes and connectors. Record the configuration before and after, run the same workload, and keep a rollback path. Confirm with your team whether your current midPoint version and database platform are the ones you tested against, since tuning advice is version-specific. Planning this work early also keeps it separate from the recovery and upgrade work that often shares the same maintenance window.
Tuning options and when each fits
This table compares the five tuning levers that matter most for midPoint throughput, with the trade-off and main risk of each. Read it as a checklist: change one lever at a time, measure the effect on your own tasks, and only move to the next option when the current bottleneck is confirmed.
| Tuning option | Trade-off | Main risk | When it fits |
|---|---|---|---|
| Disable default multivalue provenance (internals/valueMetadata/disableDefaultMultivalueProvenance) | Lower memory, storage and processing cost for multivalue properties, but no provenance record for those values | Losing the ability to trace where a multivalue value came from during investigations and audits | Only where mappings already define custom ranges and you accept the loss of provenance for multivalue attributes |
| JVM memory settings | More heap headroom for large imports, recomputes and reports, but larger garbage collection pauses if oversized | Out-of-memory errors or long pauses from a heap sized without measuring the workload | Tasks fail with memory errors or garbage collection dominates task time; confirm with heap and GC metrics first |
| Task worker thread counts | More parallel processing per task and faster runs, at the cost of more load on the repository and connected systems | Overwhelming the database connection pool or a target system's rate limits, causing errors and slower overall runs | Target systems and the database have spare capacity; increase gradually and watch error counts and task duration |
| Attribute caching | Fewer connector calls and faster reports, because account attributes are read from copies stored in the repository | Stale data: cached attributes may not match the target system until the next refresh | Reports and reviews read many accounts and the target system is slow or rate-limited; not suited to decisions that need live values |
| PostgreSQL tuning on a separate database server | Better query and write throughput, with resource planning done for the database rather than shared with midPoint | Misconfigured memory or connection settings can degrade the whole platform, and changes need backup and rollback planning | midPoint is slow across tasks and the database server is the confirmed bottleneck; ask your DBA and Evolveum for the settings that match your version |
How to run a tuning cycle without breaking production
This sequence turns performance tuning from guesswork into a measured change process, so each adjustment has a known effect and a way back. It produces a documented baseline, a tested change set and a rollout that the operations team can reverse.
Record the current versions and requirements
Confirm the running midPoint version and its support end date, then check the Java version against the system requirements for that release. midPoint recommends Java 25 for 4.11 and later (Java 21 supported) and Java 21 for 4.10 and older (Java 17 supported), so a mismatch is the first thing to fix or document before any tuning. Your team owns this check, and it is done when the version, JDK, database and deployment model are written in the change record.
Baseline throughput and resource use
Capture a baseline for the workloads that matter: duration of the main reconciliation, import and recompute tasks, JVM heap usage over a full cycle, database load on the PostgreSQL repository, and the number of connector calls per task. Use the same data window and task definitions each time so results are comparable. The baseline is complete when a reviewer can rerun the same tasks and get numbers in the same range, and you have stored the raw figures alongside the configuration in effect.
Prepare a production-like non-production copy
Build a non-production environment on the same midPoint and Java versions, with a database restored from production or a representative extract that has similar object counts, role assignments and resource mappings. Connect it to test or staging target systems where possible, so connector behavior is realistic. The step is done when the copy's task durations and object counts are close enough to production that the baseline can be repeated there.
Change one setting at a time
Pick a single change from the candidate list, such as JVM memory settings, task worker thread counts, attribute caching on a specific resource, or the provenance behavior described in the 4.9 and later notes. Record the exact key or option, the old value and the new value before applying it. Changing one variable per run is the only way to attribute a difference in duration or load to that setting. The step closes with a dated change log entry for the test environment.
Re-measure against the baseline
Run the same tasks with the same data window and collect the same measures: task duration, heap usage and garbage collection behavior, database load and connector call counts. Compare each figure with the baseline and note any side effect, such as higher storage growth or more processing per object. Repeat the cycle for each setting. A change is accepted only when the target measure improves and no other measure degrades beyond what your operations team has agreed to accept.
Validate correctness after each change
Faster is not correct unless the results match. After each accepted change, confirm that reconciliation outcomes, provisioned attributes and audit records still match expected results for a sample of users and resources. Check task error counts and the midPoint logs for new warnings. Where a setting affects provenance or caching, verify that the data it reads and writes is still consistent with what the target systems hold. The check is complete when a named owner signs off on the sample.
Roll out with a tested rollback plan
Schedule the production change in a window agreed with the business, apply only the accepted settings, and keep the previous configuration files and database backups ready to restore. Define in advance the metrics that trigger rollback, such as task failures, heap pressure or database locking. Monitor the first full task cycle after the change and compare it with the baseline. The rollout is done when production measures match the non-production results and the change record is closed with the final configuration.
How the tuning decision path runs
The path starts with a measured baseline, not a setting change. Each run identifies one bottleneck (memory, task threads, connector calls or database), applies the matching option, and retests in a staging environment that mirrors production. Revert is a valid outcome: if the retest does not improve throughput or adds memory and storage cost, undo the change and look at the next bottleneck. Only changes that hold in staging move to production, with internals/valueMetadata/disableDefaultMultivalueProvenance and attribute caching checked against what each one costs.
Tuning loop from baseline measurement through staging retest to rollout or revert.
Security and operational risks of tuning changes
Tuning midPoint changes what data is kept, how long it is kept, and how much identity data sits in memory. Each card below pairs one risk with one control you can check before a change reaches production, so performance work does not weaken audit evidence or access decisions.
Losing provenance needed for audits
Provenance metadata for multivalue properties has been on by default since midPoint 4.9, and it records where values came from. Disabling it through internals/valueMetadata/disableDefaultMultivalueProvenance can cut memory and processing, but it also removes origin evidence that auditors may ask for. Before you set it, confirm with your compliance team which attributes need provenance and whether your mappings define custom ranges that make the switch safe.
Performance docsStale cached attributes driving decisions
Attribute caching stores copies of account attributes in the repository, which reduces connector calls and speeds up reports. The copies can lag behind the target system, so a role assignment or report built on them may reflect yesterday's state. Control this by deciding which attributes may be cached, setting a clear refresh expectation for each, and testing a reconciliation run against the live resource before you rely on the cached values.
Attribute caching docsLarger heaps holding identity data
Bigger JVM heaps and larger caches keep more identity data in memory, including names, contact details, group memberships and sometimes credentials-adjacent attributes. A heap dump taken for troubleshooting then contains that data. Limit heap size to what the workload measurably needs, restrict who can collect heap dumps, and treat dump files as sensitive records with the same access controls as the repository.
- Recommended for 4.10
- Java 21
Changes made during business hours
Raising task thread counts or running a heavy recompute during working hours can slow logins, approvals and provisioning for the people who depend on midPoint. Schedule large reconciliation or recompute tasks for a defined maintenance window, and confirm with the service owner how long users can tolerate degraded response. Record the window in the change ticket so operators know when load is expected.
Recording every tuning change
Settings such as thread counts, heap options, cache configuration and internals flags change behavior that auditors and incident responders later need to explain. Store each change in version control or your configuration management tool with the before value, the after value, the reason and the approver. Keep the same record for the environment that was tested, so production and test settings can be compared when a problem appears.
Testing changes before production
A tuning setting that improves one test dataset can change results on live data, especially provenance and caching, whose effects grow with the volume of identity records. Run the change in a non-production environment seeded with representative data, compare task duration, error counts and audit output, and define a rollback step before the change is applied. Keep the test environment's configuration under the same change control as production.
Questions buyers ask about midPoint tuning cost, effort and time
What drives the effort of a midPoint tuning engagement?
The main drivers are the size of the identity data, the number of connectors, the number and complexity of custom mappings, and whether a representative test environment exists. A repository with many users, accounts and historical objects takes longer to profile than a small one, because every measurement has to run against realistic volumes. Each connector adds its own latency, paging behavior and error patterns, so a directory with many connectors multiplies the number of paths to examine. Custom mappings and expressions often account for the slowest operations, so their count and design matter as much as the data volume. If no staging copy exists, the work has to start by building one, which adds effort before any tuning begins. Ask the provider to state which of these factors it has assumed in the quote.
Can our own team tune midPoint without a partner?
Yes, a team with Linux, JVM and PostgreSQL experience and access to midPoint logs and metrics can work through most tuning steps itself. The work involves reading performance documentation, measuring task throughput, changing JVM memory settings, adjusting task thread counts, reviewing attribute caching choices and checking database indexes and configuration. The harder part is interpreting results, because a change in one area can shift the bottleneck to another, such as a connector or the database. Teams without this experience often find that a short, scoped review gives them a measured baseline and a prioritized change list. Whether to do the work in house depends on the skills available, the urgency of the problem and how much testing time the team can schedule.
What does our team need to provide for a tuning review?
The team should prepare several inputs before work starts:
- Performance metrics from the JVM, the host and the PostgreSQL server over a representative period, including peak processing windows.
- midPoint logs and task statistics for the reconciliation, import and recompute tasks that run slowly.
- A staging copy of the midPoint repository and the connected resource configuration, with data reduced or anonymized as policy requires.
- A list of custom mappings, object templates and connectors in use.
- Scheduled change windows for test runs and any production changes, plus named contacts for the identity team and database owners.
Without a staging copy, measurements are hard to repeat and changes carry more risk. Confirm early who can approve production changes and when they can be applied.
How does moving to midPoint 4.9 or later change tuning work?
Provenance metadata for multivalue properties is enabled by default from midPoint 4.9, and Evolveum notes that this increases memory, storage and processing. A tuning review on 4.9 or later should therefore check whether this metadata is contributing to slow operations, and whether the mappings that use custom ranges allow the default to be turned off through the internals/valueMetadata/disableDefaultMultivalueProvenance setting. Turning it off changes behavior, so the team should test the effect on its data and on any reports that depend on provenance. Teams upgrading from older releases should expect the first tuning cycle to include a baseline comparison before and after the upgrade. The upgrade path itself is planned separately from the tuning work.
What should a fixed-scope tuning quote list?
A fixed-scope quote should state the environment in scope, including midPoint version, JVM version, database version and the number of nodes. It should name the connectors and tasks to be reviewed, the metrics and logs the provider will use, and the baseline measurements it will take before changes. The quote should list the test environment that will be used, who prepares it and who approves production changes. It should describe the deliverables, such as a findings report, a prioritized change list, the tested configuration changes and a retest after changes are applied. Ask which items are one-time work and which recur, for example retainer support or periodic reviews after upgrades. Finally, confirm what is excluded, such as connector development or database administration beyond the review.
Why does attribute caching affect tuning decisions?
Attribute caching stores copies of account attributes in the midPoint repository, which reduces the number of calls to connected systems and can make reports faster. That benefit has a cost: the repository holds more data, and the cached values need to be kept current, so tuning must weigh faster reads against larger storage and more repository work. Before enabling or changing caching, teams should identify which attributes are read often and whether stale values would cause incorrect decisions in provisioning or reporting. The effect should be measured on a staging copy because the balance depends on connector behavior and data volume. Evolveum's attribute caching documentation describes the configuration options and should be the starting point for the review.
Does tuning carry risk to identity data or access decisions?
Tuning changes can affect provisioning, reconciliation results and reporting, so they carry operational risk even when they do not change access rules. Changing task thread counts or JVM memory can cause connectors to hit rate limits, overload target systems or produce timing issues during synchronization. Repository and index changes can affect audit and reporting queries. The safer approach is to test each change on a staging copy, measure the result, roll back cleanly and apply changes in agreed change windows. Ask any provider how it will protect data during testing and how it will record each change for your change management and audit records.
What midPoint 4.9 and later changes for existing deployments
The most important change for existing deployments is that provenance metadata for multivalue properties is on by default from midPoint 4.9. Provenance records where each value came from, which is useful for audit and troubleshooting, but it adds memory, storage and processing work on every object that carries multivalue attributes. If you upgrade a deployment that ran on an earlier release, expect the repository to grow and the heap to work harder, and measure both before and after the upgrade rather than assuming the change is free. Check the size of the repository tables and the heap usage on your nodes during a staging run that uses production-like data volumes.
Before you change any setting, confirm which release you run and which release you plan to run. The midPoint releases page lists support end dates: midPoint 4.9 support ends 18 October 2026, midPoint 4.10 is supported until 26 November 2027, and midPoint 4.8 (Curie), the long-term support release, is supported until 17 October 2028. If your deployment is on 4.9, the support window is short, so the upgrade path is part of the performance decision. Tuning a release that is about to leave support can waste effort that the upgrade would have made unnecessary, and the upgrade itself may change the baseline you measure against.
Plan version selection and the upgrade path first, then tune. Confirm the target release against the support dates, check the Java and PostgreSQL requirements for that release in the midPoint system requirements, and record a performance baseline on the current version so you can tell whether a later change helped. If the provenance overhead is a real problem for your workload, the topic's disable setting is an option only where your mappings define custom ranges, and you should confirm with Evolveum's documentation and your own testing what that change does to your data before you apply it.
How to verify a tuned midPoint
A tuning change is only an improvement if it holds up under measurement. The four checks below compare speed, memory, connector load and output correctness before and after each adjustment, so a faster run never hides a broken report or a lost audit trail.
Compare task durations on one dataset
Run the same reconciliation, import or recompute task against the same data set before and after each change, and record the duration, the number of objects processed and the error count. Changing worker threads, caching or provenance settings can shift work between phases, so compare the whole task rather than a single phase. Ask your team to keep the baseline run in version control next to the configuration it was measured with, so the comparison can be repeated after the next upgrade.
Performance docsWatch heap and garbage collection
Track heap use and garbage collection pauses under the same load used for the timing test. Multivalue provenance metadata adds memory and processing cost in midPoint 4.9 and later, so a setting that speeds up one task can still push the JVM into frequent collections. Look for pauses that grow over a long run, not only the peak at startup, and confirm that the heap settings in your deployment match the values you tested.
Confirm connector calls fall
If you enable attribute caching, count the calls made to each target system during a reconciliation before and after the change. The cache stores copies of account attributes in the repository, so the expected result is fewer connector calls for reads that do not need fresh data. Also confirm that the cache refresh schedule still reflects how quickly the target system changes, because a stale cache can hide a real difference between midPoint and the target.
Attribute caching docsConfirm reports and audit still hold
After any setting change, compare report output with the source system for a sample of accounts and roles, and check that the expected audit records and provenance entries are still written. Faster processing is not a success if a report misses accounts or an audit trail no longer shows who changed an assignment. Treat these checks as a release gate, and record the results so that auditors can see the tuning was validated against the controls it affects.
How DeployOpen scopes a midPoint tuning engagement
A tuning engagement starts with a written scope, agreed before any change is made to the system. The scope names the environment being tuned (midPoint version, Java runtime, PostgreSQL repository and audit database, node count, and whether the deployment runs in a virtual machine or in containers), the workloads to be measured (for example, a full reconciliation of a large resource, a recompute of an organization's role assignments, or the daily import from an HR source), and the measurements that define success, such as task duration and database load during those runs. It also lists the deliverables: a baseline report, the list of proposed changes with their expected effect, the test results for each change, and a runbook for the operations team. Ask for these items in any quote, because a scope that leaves out the workloads or the success criteria makes it impossible to tell later whether the work is finished.
Changes are tested in the client's own infrastructure, in a non-production environment that matches production closely enough to be meaningful. Work typically covers the settings the topic covers: the provenance metadata behavior introduced in midPoint 4.9, the internals/valueMetadata/disableDefaultMultivalueProvenance setting for mappings that define custom ranges, JVM memory settings, task worker thread counts and attribute caching on resources. Each change is applied alone, measured against the same workload, and rolled back if it does not help. Before deciding on attribute caching, confirm with your team which reports and connector calls depend on the cached values, since the Evolveum documentation describes caching as a trade-off against connector calls and data freshness. Every change is recorded with its before and after values so your operations team can reproduce or reverse it.
How DeployOpen delivers midPoint tuning
DeployOpen approaches midPoint performance tuning as a fixed-scope piece of work inside your infrastructure. We start from measured bottlenecks in your deployment, change settings and configuration in a controlled way, and document what changed and why, so your team can operate the result.
How we scope
- We agree in writing which midPoint version, workloads, tasks and database hosts the tuning covers.
- We confirm the baseline measurements your team already has, or agree how they will be captured before any change.
- We identify which provenance, caching, memory and task settings are in scope, and which are excluded.
How we build
- We test each proposed change in a non-production environment that mirrors your production configuration as closely as practical.
- We adjust JVM memory, task thread counts, attribute caching and database settings one change at a time, recording the effect of each.
- We review any provenance metadata change against your mappings, storage capacity and processing needs before applying it.
How we hand over
- We deliver a written record of baseline results, each configuration change, its rationale and the rollback steps.
- We walk your platform and database administrators through the tuned settings and the signs that indicate they need revisiting.
- We document the monitoring points and alert thresholds your team should watch after the tuning work ends.
How we support
- Ongoing support, upgrades and continuous testing are available as a retainer after the fixed-scope work is complete.
- Retainers can cover re-measuring performance after midPoint upgrades, changes to workloads or new connectors.
- We confirm support terms, response expectations and included activities in the written agreement before work starts.

