XWiki Instance Sizing

Last modified by Vincent Massol on 2026/12/01 13:26

Instance profiles by active users, documents and HTTP requests, with the RAM, JVM heap, CPU and storage to provision for each.

Reference

Tuning an instance (garbage collection and the other JVM options, caching, database indexes) is covered by the Performance page.

Warning

These figures are estimates drawn from experience, not measurements, and are a guideline only. The type of content hosted in XWiki, the extensions installed, the number of subwikis and any other customization make the sizing of an instance vary greatly.

Instance Profiles

A profile is determined by three independent dimensions. Evaluate each one and keep the highest of the three profiles.

ProfileTypical deploymentActive usersDocuments, all versionsAverage HTTP requests per second
TinyPersonal wiki, proof of concept, small team intranetUp to 25Up to 5,000Up to 0.5
SmallDepartmental wiki, small company intranetUp to 250Up to 100,000Up to 5
MediumCompany-wide wiki, collaborative portalUp to 2,500Up to 1,000,000Up to 25
LargeEnterprise-wide wiki, public-facing knowledge baseUp to 25,000Up to 10,000,000Up to 100
HugeMulti-tenant farm, high-traffic public wikiMore than 25,000More than 10,000,000More than 100
  • Active users are the accounts that log in and interact with XWiki at least once a month. Readers browsing public pages without authenticating only count in the HTTP requests.
  • Documents, all versions is the number of wiki pages (blog posts included), each version of a page counting once. The "Index" tab of the Page Index gives the current number of pages; including their versions takes a query on the database.
  • Average HTTP requests per second are the requests per second reaching the application server over a representative day, read from the reverse proxy logs or from an APM tool. A single page view makes several of them (skin resources, REST calls).

An instance with 800 active users (Medium), 60,000 documents (Small) and 8 HTTP requests per second (Medium) is therefore sized as a Medium instance.

Sizing Recommendations

The values below are for a single machine hosting both the XWiki application server and the database server. The JVM heap is a subset of that RAM, set explicitly rather than derived from it; the remainder is shared by the operating system, the database engine and the memory the JVM uses outside its heap.

ProfileRAMJVM heap (-Xmx)CPUStorage
Tiny2 GB1 GB2 vCPUs5 GB
Small4 GB2 GB2 vCPUs20 GB
Medium8 GB4 GB4 vCPUs100 GB
Large16 GB8 GB8 vCPUs500 GB

Give the JVM the heap the profile calls for, not all the RAM of the machine: the operating system's file cache and the database engine need the remainder, and a larger heap does not make an instance faster when its CPU or its database queries are the bottleneck. An instance running on HSQLDB is the exception, since it keeps the whole database in the heap.

Storage covers both the database and the permanent directory, which holds the attachments, the search index, the installed extensions and the recycle bins. In a wiki with many or large attachments, the permanent directory takes most of the space: size it from the attachments rather than from the number of documents, and plan the same again for backups.

From the Medium profile up, consider a standalone Solr server for the search index (see the Performance page), which then no longer takes memory and disk from the application server.

A Huge instance does not fit on a single machine. Its architecture is planned against the actual workload and monitored continuously, and it needs:

  • a cluster of two or three application nodes and a dedicated database server, each application node sized at 32 GB of RAM, 16 GB of JVM heap and 16+ vCPUs, with 1 TB+ of storage overall;
  • a dedicated reverse proxy, with static-asset caching and HTTP compression enabled.

FAQ

Should I size for future growth?

When an instance is close to the upper boundary of its profile, provision the next profile up, so that growth does not force a disruptive infrastructure change later.

Where is the JVM heap set?

In the startup configuration of the servlet container: for Tomcat, see Java Memory for Tomcat.

Related

Get Connected