Tuning X-Road Security Server memory and performance

Memory and command line tuning of the Security Server proxy service is the first lever when message volume grows. This page explains the options, the change sequence, the signs that tuning has reached its limit, and when to add Security Servers.

On this page

How X-Road Security Server memory tuning fits your message volume

Proxy service memory allocation and command line arguments are the first lever when message volume rises on a Security Server, and adding Security Servers is the next step once tuning no longer keeps up with peak load. Before you change anything, confirm that the symptoms point at the proxy service. Memory pressure and slower responses at peak can also come from the PostgreSQL database, the network path between servers or a slow information system behind the provider, so compare proxy metrics with database and backend timings from the same peak window. Write down memory use, response times and request counts for that window. Those figures are your baseline, and every later change should be judged against them.

For each exchange, the proxy service takes a request from a local information system, signs and wraps it in an X-Road message, sends it to the provider's Security Server over TCP 5500 and returns the response. Each step costs memory and time, and the load grows with the number of requests in flight at once, the size of the messages and the work done per message, including logging. Memory and command line arguments for the proxy are set per release, so parameter names, default values and allowed ranges can change between versions. Before you change a setting, confirm it in the documentation for the version you run, which is 7.8.3, 7.7.4 or 7.6.5 on the supported list, and check the X-Road releases page for the current list. Test the change on a Security Server running the same release before it goes near production.

Scale out when the baseline shows that the proxy service cannot meet peak demand even after the memory and argument changes are in place, or when a single server would have no spare capacity during maintenance or failover. Each added Security Server brings its own installation, database connection, certificates and monitoring, so plan that work before you commit to it. Check the high availability and load balancing content in this series for the limits of clustered designs. Also check the hardware minimums: the Security Server needs at least 3 GB RAM, or 4 GB with monitoring add-ons, so a larger proxy memory setting on a small host can leave too little memory for the operating system. Confirm those sizes against the installation guide for your version.

X-Road Security Server memory tuning options and when each fits

This table compares six levers for handling more message volume on a Security Server, from editing the proxy service memory settings to adding servers behind a load balancer. Read each row for when the lever fits, what change it needs (an edit, a restart or new infrastructure) and the main risk it carries. Exact keys and values belong to the official installation and user guides, so confirm them there before changing a production server.

LeverWhen it fitsChange requiredMain risk
Proxy service memory allocationPeak load pushes memory use close to the current allocation and the host has spare RAM.Edit the proxy service memory setting, then restart the service.Allocating more than the host can hold causes swapping or the process being killed by the OS.
Other proxy service command line argumentsA documented argument matches a symptom you have reproduced on a test server.Edit the service startup arguments, then restart the service.An untested argument can change runtime behavior or stop the service from starting. Keep the original settings.
Host RAM above the documented minimumMemory is the limit and the proxy allocation can use the extra capacity.Resize the virtual machine or add memory, then restart the host or service.Oversized co-located services can compete for the same memory, and the gain is lost.
CPU and free disk above the documented minimumsCPU saturates at peak, or message logs and buffers fill the free disk space.Add vCPUs or disk, which usually needs a planned restart window.A full disk stops message handling. Monitor free space before peak periods and after logging changes.
Local or remote PostgreSQLLocal suits a single-node setup with simple operations. Remote suits a database team, managed service or separate backup policy.New infrastructure and reconfiguration of the database connection, during a planned window.Network latency or a database outage affects every request. Confirm failover and backup ownership first.
More Security Servers behind a load balancerOne server cannot absorb the message volume, or you need availability across hosts.New infrastructure: extra servers, a load balancer and matching configuration on each node.Nodes can drift out of sync, and load balancer health checks can hide a failing server. Test failover.

How to change proxy memory safely, step by step

This sequence changes one proxy memory value at a time, with a baseline before the change and a repeat measurement after it, so the team can tell whether the change helped and can reverse it. It covers release and host checks, the official procedure for the version, testing, a maintenance window restart and a rollback plan.

  1. Confirm the release and support status

    The platform team confirms which X-Road release each Security Server runs and whether that release is on the supported list. The current release is 7.8.3, and the supported versions are 7.8.3, 7.7.4 and 7.6.5, so any server on another version should be upgraded before tuning begins. The procedure for memory settings depends on the release, so the version drives every later step. Check the list on the X-Road releases page. Done when each server's version is recorded in the change record and matches a supported release.

  2. Capture a baseline during peak traffic

    The operations engineer records memory use, CPU load, response times and database latency across a normal peak period, before anything changes. Pull these figures from the operational monitoring and OS metrics your team already collects, and note the message volume for the same window so later results compare like with like. Agree the exact metrics and peak window with the team beforehand. Done when the team holds a dated baseline that lists the peak window, the message volume and every figure the later steps will repeat.

  3. Check the host against documented minimums

    The systems engineer checks each host's operating system, architecture, RAM and free disk against the Security Server installation guide. Supported platforms include Ubuntu Server 22.04 and 24.04 LTS on x86-64 and Red Hat Enterprise Linux 8 and 9. The documented minimum is 3 GB RAM, or 4 GB with monitoring add-ons, plus 3 GB free disk. A larger proxy allocation only fits if the host still has headroom for the operating system, the database connection and monitoring. Done when a host report lists each value and any gap is logged before the change.

  4. Read the official procedure for your version

    The platform engineer reads the official documentation for the exact release confirmed in the first step to find the proxy memory setting, the command line arguments that carry it, and the service restart method for that version. Settings copied from an older release, a forum post or a blog can use different names or defaults, so write down the file path, current value and documented default from the official source. Done when the change record names the release, the file and the exact setting, and each entry points to the documentation page the engineer read.

  5. Test one value in a matching environment

    The platform engineer applies one change to a test Security Server that receives traffic shaped like production, using replayed or generated load the team controls. Change a single argument per run and keep the others at their current values, so any shift from the baseline has one cause. Run a window of the same length as the baseline. If the test host cannot reproduce production traffic, record that gap in the change record. Done when the run finishes and the memory, CPU, response time and database latency figures sit beside the baseline in one table.

  6. Restart production in a maintenance window

    During an agreed maintenance window, the system administrator applies the tested value, restarts the Security Server service using the method from the official procedure and confirms the service comes back. Check the service status and the logs for startup errors, then open the diagnostics view to confirm that the global configuration, timestamping and OCSP status show no new failures. Done when the service is up, message exchange resumes and the diagnostics view is clean. If the service fails to start, move straight to the rollback step.

  7. Repeat the same load test and measurements

    After the restart, the platform engineer runs the same load profile, window length and measurements used for the baseline. This happens on production during a planned period, or on the test environment if production load cannot be reproduced safely. Compare memory, CPU, response times and database latency against the baseline, and look for memory that keeps climbing, swap use or slower responses at peak. Done when a written comparison records the result and the team decides whether to keep the new value.

  8. Keep previous values ready for rollback

    Before the change, the system administrator records the previous argument values, the configuration file path and the restart command, then stores a copy in the change record and the backup location your team uses. If a later check shows errors, slower responses or higher memory pressure, restore the saved value, restart under the same change process and repeat the diagnostics check. Done when someone other than the author can name the old value and the restore steps, and the rollback has been rehearsed in the test environment.

Decision path from tuning to scaling out

The path starts by measuring Security Server proxy memory and response times under peak load. The first hand-off checks the host against the documented minimums for RAM and disk; if it falls short, resize the host and measure again. Once the host is within minimums, change one setting in a test environment and retest under the same peak load. A met target leads to confirming the fix for production. A missed target returns the reader to measurement. Only when pressure remains with the host and settings within headroom does the path branch to adding Security Servers behind a load balancer, with the design covered in the high availability and load balancing topic.

The path from measurement to confirming a fix or adding Security Servers.

Signs that memory tuning has reached its limit

Tuning buys headroom, but only up to the point where the host, the database and the peak load fit together. The six signs below show when further tuning will not help. For each one, rule out the cheaper explanations first, then use the evidence listed to decide whether to add capacity or another Security Server.

Memory pressure returns after restart

A tuned restart usually brings memory back under control for a while. If pressure returns to the same level within a short period under similar load, the allocation is no longer the main problem. Check swap activity, out-of-memory entries in the system logs and per-process memory use across the hours after restart. If pressure follows message volume and the host is already close to its memory limit, add capacity or a second Security Server before raising the allocation again.

Peak latency with idle CPU and disk

Responses that slow only at peak, while CPU and disk still have headroom, point away from raw compute. Check whether the delay sits inside the Security Server, in the database round trip or in the information system behind the service, using request timing from operational monitoring for the same window. If the server is waiting on connections or on the backend, more memory will not shorten the wait, and a second server or a backend fix is the next step.

Database latency grows with log volume

The Security Server depends on PostgreSQL, and message log tables grow with every exchange. If query latency climbs steadily while request rates stay flat, the database is becoming the limit. Check the size of the message log tables, the retention and archiving settings, and the database host's memory and storage latency. Latency that tracks table growth is the evidence for a larger or separate database host, since a bigger host on the same growth only postpones the problem.

Installation guide

Host at documented minimum resources

A host sitting at the documented minimum has no margin left for peaks, logs or monitoring add-ons. Check whether the host still meets the minimum after you enable monitoring, and whether free disk space stays above the documented minimum as logs and backups grow. If memory is at the minimum and the earlier checks point to memory, the host needs more RAM before any further tuning. Confirm the current requirements for your OS version in the installation guide.

Minimum RAM
3 GB
RAM with monitoring add-ons
4 GB
Installation guide

Backlog that outlasts the peak

A rising error count or queue backlog during business peaks is a warning sign mainly when it does not clear afterward. Check the fault records for timeouts and refused connections, and see whether the backlog drains during the quiet period after each peak. If the backlog grows across several peaks while the earlier signs are clear, the design is undersized for that peak. Compare the trend with the peak schedule of your own business processes before you change any setting.

A fix that moves the problem

Sometimes a change improves one peak and degrades another. In an illustrative case, a larger allocation speeds up a daytime batch but leaves less room during month-end runs. Record a baseline for each peak, change one setting at a time and rerun the same peak window to compare. If no single setting serves both peaks without starving the other, that is the evidence to add another Security Server instead of reallocating memory again.

When adding Security Servers beats more memory on one server

Enlarging one Security Server is the simpler first step, and it is often enough while message volume stays within what one host can serve. Memory on a single node has a ceiling set by the host itself and by the documented requirements. The published minimum is 3 GB of RAM, or 4 GB with monitoring add-ons. That figure sets the floor for installation and says little about headroom. Before you add memory, check the host's total RAM, what the operating system and monitoring agents already consume, and the proxy memory setting for your release. Confirm the tested upper limit for that setting in your X-Road release documentation. If the host is at its practical ceiling, scaling out becomes the next decision.

Running several Security Servers adds moving parts that a single node does not have. A load balancer must sit in front of the nodes and reach the message exchange port, TCP 5500, and the OCSP port, TCP 5577, on each one. Client routing has to send requests to the right node, and every node needs the same configuration so that services and access rights behave identically wherever a request lands. Each node also needs its own backup schedule, its own monitoring and its own patch cycle, so operating effort grows with every node you add. Before you commit, write down who owns the load balancer, how configuration drift is detected, and how a failed node is removed from routing.

The database decision changes with the node count. A Security Server requires PostgreSQL, either local to the server or remote, including managed services such as AWS RDS and Azure Database for PostgreSQL. A single node can keep its database local, but several nodes raise the question of whether each gets its own database or all of them share a remote instance. That choice affects backup, restore and failover, and it determines what must be protected when a node is lost. Confirm the supported database layout for multiple Security Servers in the Security Server installation guide before you design around it. For design limits and the failure modes of each layout, follow the X-Road high availability and load balancing topic. DeployOpen scopes multi-node designs in a written agreement before any change is made to your environment.

Security and operational controls for memory and argument changes

Memory and argument changes alter how a Security Server handles message volume, so they need the same discipline as a code change. The six controls below cover who may request a change, where its values live, how it is tested, how the server is protected during a restart, how admin access is narrowed, and how the result is recorded. Together they let an operator reverse a change and an auditor trace it.

Named System Administrator ownership

Every memory or argument change should be approved through your change process and carried out by a named owner who holds the System Administrator role on the Security Server. The Security Server defines this role separately from Security Officer, Registration Officer, Service Administrator and Security Server Observer, so you can limit who changes runtime settings without changing who manages members or services. If admin users authenticate through PAM with SSSD and LDAP groups, confirm that the group mapped to this role contains only the people who own these changes. The change ticket should name the server, the setting and the reason.

Security Server user guide

Memory and argument values in version control

Store the memory and command line argument values for each Security Server in a version control repository, with one file per server or server group, and commit every change with its reason. Keep the previous values in history so a bad change can be reverted to a known state without reconstructing it from memory. Check that deployment automation reads these values from the repository, so a rebuilt server does not silently fall back to defaults. Confirm the exact file location for your installed version before you write the automation.

Non-production test that mirrors the release

Apply each change first in a non-production environment that runs the same X-Road release, operating system and PostgreSQL setup as production. Several 7.x lines are supported at the same time, so confirm which line production runs against the releases page before you choose the test target. Load the test with message volume close to the peak you expect, because a setting that is harmless at idle can behave differently under sustained traffic. Schedule the production change only after the test result is recorded.

X-Road releases

Current backup before any restart

Take a current backup of the Security Server immediately before restarting the service after a memory or argument change, and confirm that the backup completed. A restart applies the new values, and if the server does not come back cleanly, the backup is the fastest route to a known configuration. Check that the backup includes every configuration change made since the last scheduled run. Store the copy outside the server and apply access controls that match how sensitive the configuration is.

Security Server installation guide

Admin UI access limited during troubleshooting

While you troubleshoot performance, restrict access to the admin UI on TCP 4000 to the internal networks and administrator workstations that need it. The Security Server serves the admin UI on this port for internal use, while message exchange and OCSP use separate ports from external networks, so narrowing the source ranges at the firewall limits who can view or change settings during an incident. Remove the temporary rule when the work is finished, and record the date it was removed.

Before and after measurements per change

Record resource and throughput measurements before and after each change, using the same method and time window so the two sets are comparable. Include memory use, the argument values in effect, the change ticket and the person who applied the change. Operators use this record to judge whether a setting helped, and auditors can trace each value back to an approved change. Store the measurements alongside the version control history so they stay linked to the setting they describe.

What X-Road Security Server memory tuning costs and who does it

How much does outside help for Security Server tuning cost?

DeployOpen does not publish a price list, so the cost follows from a written scope. The main drivers are the number of Security Servers in scope, how deep the testing goes, how many change windows the work needs, and whether scaling design is included. The tuning engagement itself is typically one-time work, while any retainer for later reviews or retests recurs. Your own staff time for approvals, traffic data and access also counts toward total cost, even though no invoice covers it. Ask for a quote that lists each server, the test environment, the change windows, the retest terms and who performs each task.

How long does Security Server memory tuning take?

The duration follows the same drivers as cost: the number of Security Servers, the testing depth, the change windows available and whether scaling design is part of the work. No single duration fits every environment, so treat the timeline in the written scope as the reference point and check it against your own change calendar. When production servers can only be changed in scheduled slots, the change calendar often sets the pace more than the tuning work itself. A test environment that is ready before work starts keeps the schedule from slipping. Ask for the milestones, the dependency on your approvals and the retest date in the written timeline.

What does the client team need to provide for this work?

Plan to provide four things: access to the environment, traffic data, change approvals and a maintenance window. Access means administrative access to the Security Servers in scope and to the test environment, with a named contact who can confirm which admin roles each engineer holds. Traffic data should show message volume per service and the peak periods, so the settings reflect actual load. Change approvals must cover each configuration change and any restart, and the maintenance window must be agreed in writing before work starts. Your team also supplies the people who review the results, so name them early.

Can our internal team tune Security Server memory without a partner?

Yes, an internal team with enough time, admin rights and a test environment can do it, because the official guides are public. Start with the Security Server user guide so the roles and admin tasks are clear before anyone changes a setting. Three things usually decide whether an in-house effort goes well: a test environment that behaves close enough to production to show the effect of a change, admin rights on every server in scope, and an engineer who can run load tests and read the results. A partner adds the most value where the team lacks load-testing experience or wants an independent check and a written record of the final settings. Either way, the same change approvals and maintenance window apply.

When should we add Security Servers instead of tuning memory?

Add Security Servers when tuning no longer keeps service within the targets you set, or when message volume grows faster than one server can absorb. Common signs are memory settings that keep rising without a matching gain, sustained high resource use at normal peak load, and response times that keep climbing with volume even after tests. Scaling out is a design change, so it needs its own plan for load balancing, failover and how each server is registered and monitored. The X-Road high availability and load balancing topic covers the redundant designs and the limits of each. Read it before you decide between a bigger server and a second one.

What should we check after changing Security Server memory settings?

Check that services still return correct responses, that memory stays within the host limits at peak load, and that the logs show no new errors. Record a baseline in the test environment before changing anything, using traffic shaped like your production data. After each change, compare memory use, response times and error counts with that baseline, and watch the system service logs for restarts or out-of-memory events. Keep the previous configuration so you can roll back inside the same change window. Operational monitoring and environmental monitoring data then show whether the result holds over the days that follow. Confirm the exact log locations for your release before the window opens.

Does Security Server memory tuning change security settings or message evidence?

Tuning should change resource arguments only, and the change record should show that access rules, certificates and logging settings stayed the same. Check each argument against the documentation for your installed release, since supported versions include 7.8.3, 7.7.4 and 7.6.5. After the change, rerun the controls in your hardening baseline, which cover account lockout, password length, key-only SSH and the allowed-hostnames setting. The X-Road security hardening guidelines list these settings, and a rollback should restore them along with the memory arguments. Store the change record with your operations documentation so auditors can trace it.

Limits to confirm in your environment before tuning

Most tuning answers depend on the exact release, its packaging and the vendor guidance for your own environment, and this page does not supply them. The cards below list what to confirm first, so that each change rests on a verified source and a tested rollback path.

Exact memory and argument settings

Confirm the exact memory and command line argument settings that your installed release uses. Check the file where each setting is defined, the default value that release ships with, and any override already present on your server. Read these from the installed system and the release documentation for that version, and record the current values before any change so you can restore them.

Current release
7.8.3
X-Road releases

Persistence through upgrades

Confirm whether a manual memory or argument change survives an upgrade, or whether the upgrade procedure for your source and target versions overwrites it. Check the upgrade steps against your change record before you schedule a production upgrade, and reapply any override the upgrade does not carry forward. Review every override after each upgrade, because a value that persisted once may not persist across the next release.

Restart effect on messages in flight

Confirm what happens to requests already in flight when the Security Server service restarts after a memory change. Find out whether consuming systems retry failed calls, whether callers see connection errors during the restart, and whether any exchange is left without a log record. Schedule the change in a maintenance window, and rehearse the restart on a staging Security Server with representative traffic first.

Sizing and throughput guidance

The vendor installation guide gives minimums for RAM and free disk space. These describe what a Security Server needs to run, and they do not establish the message volume a given memory setting can handle. Ask the X-Road project or your provider whether they publish sizing or throughput guidance for a given message rate. If they do not, your own load test is the only evidence you will have, so plan it before you change any setting.

RAM with monitoring
4 GB
Installation guide

Custom values outside support

Confirm whether any memory or argument value you plan to use falls outside the range the project supports for your release. A setting that works in a lab can be unsupported in production, and an unsupported setting may complicate a support request or an upgrade. Ask the project or your support provider to confirm the supported range in writing, and mark each out-of-range value in your change record so a reviewer can see it.

X-Road 8 is in beta

X-Road 8 Spaceship is available for testing as a beta build, and its production release is still ahead. Its memory and performance behavior may differ from the 7.x line, so do not assume 8.x tuning applies to production 7.x servers. Tune 7.x systems against 7.x documentation, and treat any 8.x finding as a lead to test in a separate environment.

Scheduled production release
December 2026
X-Road releases

How DeployOpen scopes and delivers X-Road memory tuning

DeployOpen approaches memory and performance tuning for the X-Road Security Server as a scoped change to a server you already run, in your own infrastructure. Scope starts from the message volume you expect, the hardware and the current memory settings, and the written scope names what will be changed and measured. Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.

How we scope

  • The written scope names the Security Server nodes, their current hardware, and the message volume the tuning must handle.
  • Scope records the proxy memory allocation and command line arguments in use before any change is proposed.
  • Scope also sets the decision point between tuning a node and adding another Security Server behind a load balancer.

How we build

  • Changes are applied first to a non-production Security Server, with each memory and argument change recorded per host.
  • Load is replayed or generated at the expected message volume so the effect of each change can be compared.
  • Database load is watched alongside proxy memory, since the Security Server depends on PostgreSQL.

How we hand over

  • Handover includes the final memory settings, the command line arguments, and the before and after measurements for each host.
  • A rollback procedure for every change is written down, so operators can return a node to its previous settings.
  • Operators receive a runbook for when to tune a node further and when to scale out with more servers.

How we support

  • Ongoing support, configuration reviews and retesting after upgrades are available as a retainer.
  • Re-tuning is scoped again when message volume grows, memory changes, or the server moves to a new release.
  • Ask for the retainer terms in writing, including which Security Server nodes and environments they cover.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.