Apache ActiveMQ on Docker, Kubernetes or VMs: which model fits your team
Virtual machines suit teams with established host management and direct control of shared storage, Kubernetes suits teams already operating a cluster with persistent volumes, and Docker on a single host suits development, test and non-clustered workloads. For a shared broker carrying JMS and other protocol traffic, the decision turns on three things: the high availability design, the persistence layer, and who owns host and image patching. Answer those three questions in writing before you pick a model, because each one can rule out an option that looked simple at the start.
ActiveMQ Classic documents high availability on shared storage, so the persistence choice and the high availability choice are one decision. With KahaDB, the store sits on storage that the active and standby brokers both reach, which puts the mount, its locking behavior and the failover timing in your hands. With JDBC persistence, the database becomes the shared layer, and its own high availability sits outside the broker. On VMs, you usually control the shared mount and the fencing directly. On Kubernetes, the persistent volume must support the access mode your design needs. Docker on one host has no broker failover at all. Confirm with your storage vendor and the ActiveMQ Classic documentation how a standby takes over before you commit.
Patching ownership decides how often you rebuild, and the release lines make that cadence concrete. The apache/activemq releases show 6.2.10 published on September 22, 2026 and 5.19.11 on September 2, 2026, so a team on the 5.19 line and a team on 6.2 face different upgrade paths. On VMs, the infrastructure team usually owns the operating system and the broker install, and the application team may own neither. On Kubernetes, someone must own the base image rebuild and the chart or manifest version. In Docker, the team that builds the image owns every patch inside it. Write down an owner for each host and image patch, each broker upgrade and each failover test, and assign them before you choose the model. The apache/activemq releases page is the place to track new versions.
How Apache ActiveMQ on Docker, Kubernetes and VMs compares
This table compares how Apache ActiveMQ Classic behaves on a single Docker host, on Kubernetes and on virtual machines across sizing, high availability, persistence, upgrades, backup, monitoring, skills and cost. Read each row as a condition to check in your own environment. The main takeaway: the persistence choice and the storage platform often drive most of the effort, so test shared storage and database failover before you pick a platform.
| Factor | Docker on a host | Kubernetes | Virtual machines |
|---|---|---|---|
| Resource control and sizing | Limits set per container at run time; the broker shares host CPU, memory and disk with other containers. | Requests and limits set per pod; effective sizing depends on the cluster's scheduler and node pools. | vCPU, RAM and disk fixed per VM by the hypervisor; the JVM heap is set inside the guest. |
| High availability wiring | Shared-storage master and standby need a second host and a shared volume both brokers can mount. | Replicas depend on a StatefulSet and a shared volume whose access mode your storage class supports; confirm it. | Primary and standby on separate VMs sharing a mount; confirm failover behavior against the ActiveMQ documentation. |
| Persistence choice (KahaDB on shared storage or JDBC) | KahaDB needs a named volume that survives container replacement; JDBC needs a reachable database. | KahaDB needs a PersistentVolumeClaim with a shared access mode; JDBC needs a managed or in-cluster database. | KahaDB on an NFS or SAN mount; JDBC to a database the VM can reach, with its own backup schedule. |
| Upgrade path | Pin the image tag, test the new tag, then replace the container; rollback means redeploying the old tag. | Rolling updates through the StatefulSet or Helm chart you run; check the chart's ActiveMQ version and persistence settings. | In-place package or archive upgrade per host; plan maintenance windows and keep the previous install for rollback. |
| Backup approach | Back up KahaDB or JDBC data from the mounted volume or database; the container image holds no broker data. | Snapshot the PersistentVolume or back up the database; confirm your CSI driver supports snapshots. | Standard VM backup or file-level copy of the data directory; use a database backup for JDBC. |
| Monitoring | Container stats plus broker metrics; route logs through your host's logging agent or Docker log driver. | Pod metrics and probes; scrape broker metrics through your existing Prometheus stack if you run one. | Host agent, JVM metrics and broker statistics feed the monitoring tools already installed on the hosts. |
| Operating skills | Linux, Docker runtime and JVM tuning; a small team can run it if it already operates containers. | Kubernetes storage, StatefulSets and Helm; needs cluster staff, not only broker administrators. | Linux administration, JVM tuning and hypervisor management; fits teams that already patch and back up VMs. |
| Main cost drivers | Host capacity, shared storage and staff time to maintain images and volumes; the broker itself is Apache 2.0. | Cluster overhead, storage class costs and platform staff; cost is shared with other workloads on the cluster. | VM capacity from the hypervisor platform, backup tooling and patch effort for each host. |
Where the broker, storage and clients sit in each model
The four cards follow one ActiveMQ Classic deployment from the broker process down to the host under it. Ownership moves in each model: a VM team runs most layers directly, while Docker and Kubernetes hand part of the stack to a platform team. Check each card against your own operating model before you choose.
Broker process and configuration
The broker process is the ActiveMQ Classic service that accepts client connections over JMS, AMQP, MQTT, STOMP and HTTP/WebSocket, and its transports, destinations and persistence are set in the broker XML configuration. In a VM, the team edits that file on the host, while in Docker or Kubernetes it usually sits in a mounted volume or ConfigMap. Check which protocols you enable, which settings the project documents for the release you pin, and how configuration changes are reviewed before they reach every node.
ActiveMQ Classic docsPersistent storage and shared volumes
Persistence uses KahaDB files or a JDBC database, and the ActiveMQ site lists shared storage as the basis for high availability. In a VM, the team owns the file system, the mounts and any SAN or NFS behind them. In Docker, it owns the host volume or network share. In Kubernetes, it owns the PersistentVolumeClaims and the storage classes behind them, and must confirm that the class gives the locking and write behavior the broker relies on. The shared store must have one active owner at a time, so check how failover is gated before go-live.
Client failover and broker networks
Clients reconnect through a failover transport that lists more than one broker, and networks of brokers spread load between nodes. The team owns the connection strings in every application, any DNS or load balancer names in front of the brokers, and the network connector topology. In Docker or Kubernetes, broker-to-broker addresses depend on service names and pod identity, so confirm they stay stable across restarts. Test client reconnection during a node loss using the failover settings your release documents, before go-live.
ActiveMQ repositoryHost layer under the broker
The host layer is the Docker host, the Kubernetes cluster with its node pools and storage classes, or the hypervisor under a VM. In every model the team owns OS patching, time sync, resource limits and the upgrade path for that layer, and Kubernetes adds the scheduling rules that keep broker pods on separate nodes. The project docs cover the broker only, so host runbooks are yours to write. Check who operates the cluster or hypervisor and how drains and host maintenance stop a broker. Node maintenance can take a broker down, so agree the drain procedure in writing before the first patch cycle.
Why shared storage and JDBC persistence decide the high availability design
The persistence path decides what the hosting model has to supply. With KahaDB, the file-based store, high availability through shared storage means every candidate broker must mount the same data directory on a shared volume, so the platform team owns that volume, its file locking behavior and its mount options. With JDBC, messages sit in a relational database, so the broker containers or VMs hold no message state, but the database becomes the availability boundary and needs its own replication, backup and failover design, which is often owned by a different team. Either way, the Docker, Kubernetes or VM choice must provide a shared volume or a database with a tested availability design. Settle the store before you size the platform, because the storage requirements shape the platform more than the broker configuration does.
A container restart or VM reboot does not replace a tested failover. Restarting one process on one host shows that the broker starts again, but it does not show that a standby broker acquires the shared store when the active one stops, that clients reconnect to it, or how in-flight messages and transactions are handled. Those are the behaviors to test. Plan a controlled stop of the active broker, a loss of the shared volume or database connection, and a full host loss, then record how long clients take to resume and whether any messages are lost or redelivered. Keep the results in your runbook so the on-call team knows what the failover actually did.
Before you choose a hosting model, confirm with the Apache ActiveMQ project or your vendor how failover behaves in the exact release line you plan to run. The 5.19.x and 6.2.x lines both have releases on the project's GitHub page, with 5.19.11 and 6.2.10 published in September 2026, so check the release notes for the version you select. The ActiveMQ Classic component page summarizes shared storage, KahaDB and JDBC at a high level, so ask for the details in writing: which lock mechanism the shared store uses, whether your shared volume type is supported, which JDBC driver and database failover settings are tested, how clients reconnect after a switch, and what changed in failover between your current release and the one you plan to run.
Decision path from team skills to a hosting model
The path starts with Kubernetes in production. A team that already runs Kubernetes moves to the storage question, and if it can operate shared storage or a database for persistence, it moves to the high availability question. A clustered need ends at Kubernetes, and a single instance ends at Docker on a single host. Without storage skills, the path ends at virtual machines. Teams without Kubernetes reach the availability question first, where a clustered need points to virtual machines and a single instance points to Docker on a single host. Check each answer against your own storage and failover design before you commit.
Three hosting models, selected by Kubernetes experience, persistence skills and availability needs.
How Apache ActiveMQ upgrades, backups and monitoring differ by model
This table compares how each deployment model handles upgrades, rollback, message store backup, configuration, monitoring, failover testing and team skills for Apache ActiveMQ Classic. Read across a row to see which work each model moves onto your team, and confirm each release line's support window with the project before you schedule an upgrade. The main takeaway: containers and Kubernetes make upgrades repeatable but put storage and secrets decisions into the platform, while virtual machines keep most steps manual and host-specific.
| Area | Docker | Kubernetes | Virtual machines |
|---|---|---|---|
| Upgrade path | Change the image tag to a 6.2.x or 5.19.x release and recreate the container on the same data volume. | Roll a new image through the StatefulSet or Helm chart, and test each release in staging first. | Install the new release on the host, then restart the broker service. Steps are manual unless you automate them. |
| Rollback | Redeploy the previous image tag on the same volume. Check the release notes allow this before relying on it. | Roll back the Deployment or StatefulSet revision, then confirm the broker reattaches to its persistent volume. | Stop the broker, restore the previous install and configuration, then restart. Keep the old install until the upgrade is verified. |
| Message store backup | Back up the mounted volume holding KahaDB files or the JDBC database, with the broker stopped or a consistent snapshot. | Snapshot PersistentVolumes through the CSI driver, or back up the JDBC database. Confirm snapshot consistency with the project documentation. | File-level or disk-level backup of the data directory or JDBC database. Quiesce the broker first so the store is not copied mid-write. |
| Configuration and secrets | Mount broker configuration and credentials from Docker secrets or permission-restricted environment files. Keep them out of the image. | Keep configuration in ConfigMaps and credentials in Secrets or an external secrets manager, versioned with your manifests. | Configuration files sit on the host under change control. Credentials go in a vault or permission-restricted files. |
| Monitoring and alerting | Export JMX or log metrics through a sidecar or host agent. Alert on queue depth, store usage and broker availability. | Use cluster monitoring for pod restarts, volume usage and broker metrics. Alert on failed rollouts and StatefulSet health. | Use host agents and log shipping to your monitoring stack. Alert on process liveness, disk usage and queue depth on each host. |
| Failover testing | Stop the active container and start a standby on the same shared storage. Confirm which hosts can reach the store. | Drain nodes and delete pods to test failover. Confirm the storage class supports the access mode your shared-storage design needs. | Power off or isolate the active host and confirm the standby takes over the shared store. Document the fencing steps. |
| Team skills | Container basics, volume management, Linux and ActiveMQ configuration. The smallest skill set for a single-team deployment. | Kubernetes operations, storage classes, Helm or manifests, secrets management and ActiveMQ. Best fit for teams already running clusters. | Linux administration, configuration management, backup tooling and ActiveMQ. Familiar to traditional operations teams. |
| Release line planning | Pin the 6.2.x or 5.19.x tag for each environment. Confirm each line's support window with the project first. | Pin the chart or image version for each cluster. Confirm each line's support window with the project first. | Plan installs by host group. Confirm each line's support window with the project before scheduling any upgrade. |
Which team fits which hosting model
A team that already runs virtual machines, configuration management and shared storage for other middleware is the closest fit for ActiveMQ on VMs. Most of the operating model is already in place, so the new work sits in broker-level design, and that design has to be owned by the team itself.
- What the team already owns: VM builds, patch windows, backup jobs and the shared storage the broker will use.
- Effort the model adds: Designing the shared-storage high availability pair, running failover tests by hand and writing a runbook for each ActiveMQ upgrade.
- Skills to train or hire for: ActiveMQ Classic configuration, including transports, persistence (KahaDB or JDBC) and networks of brokers, plus JMS client behavior for the application teams.
- When another model makes more sense: If the organization is moving its other middleware onto containers, the team may prefer to run the broker there so that deployment tooling is shared.
Before committing, confirm with the storage team that the shared array meets the locking and latency expectations of the high availability mode you plan to run, using the ActiveMQ Classic documentation as the reference.
A platform engineering team that already runs Kubernetes, persistent volumes and GitOps can deploy the broker as one more workload. The stateful part is what changes the work: the team owns the cluster and delivery pipeline, while the broker's message storage and failover design now depend on how the volumes behave.
- What the team already owns: Cluster operations, storage classes, persistent volume provisioning, GitOps repositories and the policy controls around them.
- Effort the model adds: Mapping the broker's persistence and high availability mode onto volumes, setting disruption and resource limits, and building an upgrade path through the GitOps pipeline that is tested before production.
- Skills to train or hire for: ActiveMQ Classic operations, including persistence, failover and upgrade sequencing, which platform engineers often need to learn because Kubernetes skills do not cover broker internals.
- When another model makes more sense: If the cluster's storage cannot meet the write and locking behavior that the chosen high availability mode needs, or no one will own broker failover tests, a VM with a documented runbook may be easier to operate.
Before you commit, ask the platform team to demonstrate a failover and a rollback of the broker in a non-production cluster that uses the same storage class as production.
An application team that needs a development or test broker with a small footprint usually owns its own compose files, local tooling and perhaps a shared test environment, and little else. For this team the main question is whether a single broker instance matches the environments it tests against. A container or a single VM is often enough for that scope, and the operating effort stays small.
- What the team already owns: Application code, JMS client configuration, local developer setup and sometimes a shared test environment.
- Effort the model adds: Pinning an ActiveMQ image or package version, mounting a volume for message data and deciding when test queues are reset.
- Skills to train or hire for: Basic broker configuration (queues, topics and authentication) and the Spring or JMS settings that point the application at the broker. ActiveMQ Classic can be embedded in Spring applications, which some teams use for unit-level tests.
- When another model makes more sense: If the test broker has to match the production topology, including high availability and networks of brokers, run it on the same model as production so that failover tests are meaningful.
Before adopting a container or single VM for testing, confirm that the broker version, authentication and persistence settings match what production runs, and document any difference you accept.
How the release lines and the Artemis split shape the hosting choice
Pin the release line you plan to run before you pick a hosting model, because the line sets how often you rebuild. ActiveMQ 6.2.10 was published on September 22, 2026, and the 6.2.x series started with 6.2.0 on November 14, 2025. The 5.19.x line continues with maintenance releases, and 5.19.11 was published on September 2, 2026. Check the release history for the line you choose, since patch cadence differs between lines. In a container, the broker version is the image tag in your Dockerfile. On a VM, it is the package or tarball your configuration management pins. Either way, every upgrade on a line you later abandon is extra work over the life of the deployment.
The Artemis split is the decision that matters most for a long-lived hosting choice. The ActiveMQ PMC voted to establish Apache Artemis as its own project, and the project announced this on November 19, 2025. A team running Classic should treat a later move to Artemis as a planned event, not an assumed upgrade. Write down which Classic features your configuration depends on, such as KahaDB or JDBC persistence, shared-storage high availability and networks of brokers, and ask what a move would touch in each. Confirm the support status of the line you run in the ActiveMQ news feed and with the project before you commit to a hosting pattern that is expensive to unwind.
Upgrade speed depends on how much of the broker is baked into the artifact. A Docker image built from a maintained base can be rebuilt and redeployed through a pipeline, so a patch means changing the tag, running tests against a copy of your persistence store and rolling the containers. A VM is slower to upgrade when the JVM, operating system packages and broker files are all changed by hand, but it is simple to snapshot before a change and roll back if the broker fails to start. On Kubernetes, the StatefulSet rollout order, storage class and readiness checks you define decide whether a broker using shared storage fails over cleanly during an upgrade. Before you choose, read the release notes for every version between your current and target release, and confirm the support statements for your line with the project.
How much effort does Apache ActiveMQ on Kubernetes or VMs take to run?
What drives the ongoing cost of a self-hosted ActiveMQ broker?
Staff time is the largest driver, with storage, monitoring and the host platform as the other main cost lines. Staff time covers the initial build, broker and JVM upgrades, watching queue depth and disk use, and responding when a broker fails over. Storage cost depends on how many persistent messages you keep and how fast the disk is under KahaDB or the database behind JDBC persistence, so retention settings change the bill as much as the broker does. Monitoring means metrics, alerting and log retention, which an existing stack may already cover. On Kubernetes you also pay for cluster capacity and the people who run it. On VMs you pay for hypervisor licensing, patch windows and the storage array. Commercial tooling is optional, so ask whether any monitoring or support product adds a per-host or per-core charge before you compare totals.
Which costs are one-time and which recur for ActiveMQ?
One-time costs come from the design and first build, and recurring costs come from keeping the broker running after go-live. One-time work usually includes:
- Choosing the persistence model (KahaDB or JDBC) and the high availability design
- Building the deployment, security settings and client connections
- Writing runbooks and testing backup, restore and failover
Recurring work includes:
- Applying patches and planned upgrades on the release line you choose
- Rotating certificates and secrets, and reviewing user access
- Reviewing storage growth, alert thresholds and capacity
- Any monitoring or support subscription, which bills on its own schedule
Ask for any quote to show both parts separately so the recurring share is visible.
Can an in-house team run ActiveMQ without outside help?
Often yes, if the team already runs JVM services, Linux and a shared storage or database platform, but confirm the skills gap before you commit. The skills that matter are broker configuration, choosing persistence, setting up high availability with shared storage or a JDBC database, designing networks of brokers, and securing transports and user access. On Kubernetes, add operator or chart management and persistent volume behavior. Failover is often where skill gaps show, because a fault in shared storage or in client reconnect settings may appear only under load. The ActiveMQ Classic page describes the high availability and persistence options, which makes a useful reading list for your architects. Ask who owns the storage layer, since that owner belongs to the operating model even when the broker team is in-house.
What sets how long a first ActiveMQ deployment takes?
The duration depends more on the design decisions and approvals around the broker than on the installation itself, so ask for a written timeline in the scope. The main drivers are:
- The number of client applications and protocols in use, such as JMS, AMQP, MQTT, STOMP or HTTP
- The high availability design and whether shared storage or a JDBC database already exists
- Security integration, including TLS, user authentication and secrets handling
- Testing of backup, restore and failover, which needs its own environments and change windows
- How quickly your security, infrastructure and change teams review access and approvals
Each connected application adds client configuration and testing, so the integration count changes the schedule as much as the broker count does.
What does an ActiveMQ deployment need from our team?
An ActiveMQ deployment needs access, storage, change windows and test environments agreed before work starts. DeployOpen works inside your own cloud accounts, data centers or air-gapped networks, so these inputs come from your side. The main requirements are:
- Access: accounts or cluster roles for the build, network paths between brokers and clients, DNS entries, and a secrets store for credentials
- Storage: volumes sized and performing for your persistence model, plus shared storage if you use it for high availability
- Change windows: time for restarts, upgrades and failover tests, agreed with the owners of connected applications
- Test environments: a staging setup close to production, with representative message sizes and a way to generate load
Ask which of these your team owns and which must come from another group, because those handoffs set the pace of the engagement.
Is moving ActiveMQ to a different hosting model expensive later?
It can be costly, mainly because the broker's state, configuration and failover behavior all move with it and each needs retesting. Storage layout matters first: KahaDB data directories or a JDBC schema must carry across with consistent paths, permissions and volume sizing, and queued messages need a drain or a planned copy. Configuration moves too, including transport connectors, TLS settings, users, destination policies and any network of brokers. Failover is usually the last step and often the most work, because shared storage locks, client reconnect settings and load balancer or DNS entries behave differently on each host model. Draining queues before the move and keeping the original design documented lowers the cost. Ask that any scope lists the failover test as a named deliverable.
How to choose and test a deployment model before go-live
Work through these steps in order before go-live. Each one names who decides and the evidence to keep, so the deployment choice can be defended to auditors, the next team and the vendor support contract. Keep the evidence from every step in one shared folder for the handover.
Confirm availability target and client protocols
The business owner of the messaging workload and the architecture lead decide this together. Record the availability target in writing, then list every client the broker must serve, including JMS applications, AMQP, MQTT, STOMP, HTTP/WebSocket and any .NET or C++ clients built on the Apache.NMS.ActiveMQ or CMS components. Note whether consumers need persistent, transactional or XA messaging. Done when a signed requirements sheet names each client, its protocol and the outage the business will accept.
Inventory platform skills and storage
The platform lead and the infrastructure team decide this. Inventory who can operate Docker, Kubernetes or hypervisors, who already runs shared storage, databases, monitoring and backup, and which storage classes, network paths and backup tools exist today. A team without Kubernetes operators on call should weigh that gap before choosing a cluster model. Done when a skills matrix names an owner for each platform layer and a storage inventory lists capacity and access paths.
Choose persistence and failover design
The architecture lead decides this with the storage and security teams. Choose KahaDB or JDBC persistence, then pick the high availability design: shared storage for failover, or networks of brokers where the goal is distributing load. Confirm with the Apache ActiveMQ documentation and your shared storage vendor that the chosen layout works on your target version. Done when a one-page decision record states the persistence option, the failover path and what happens if shared storage is lost.
Build the same configuration in test
Platform engineering builds this, and the architecture lead signs off. Deploy the same broker configuration on each candidate model (Docker, Kubernetes or VMs) with the same TLS, authentication, destinations and monitoring. Keep the configuration in version control so the only difference between candidates is the hosting layer. Done when each candidate passes a smoke test for every client protocol named in the first step, and the configuration diff shows only hosting differences.
Run failover and restore tests
The operations lead runs these tests, and the messaging owner accepts the results. Script the failure cases: stop the active broker, cut access to shared storage, and restore from a backup onto a clean host. Check that persisted messages survive, that consumers reconnect, and whether any redelivery or duplication stays within what the application tolerates. Record observed recovery times against the availability target. Done when a signed test report lists pass or fail for each scenario, with logs and open gaps.
Document upgrade and rollback steps
The platform team writes this, and the service owner approves it. Document the upgrade path within the release line you selected, pinned image or package versions, storage checks before and after the change, and the rollback path, which includes restoring data from backup. Confirm current releases and support status on the Apache ActiveMQ release pages before go-live, since supported versions change. Done when the runbook has been rehearsed once in the test environment and the captured output is filed with it.
Agree ownership at handover
The engagement sponsor and the service owner decide this and sign the result. Assign owners for broker patching, the Kubernetes cluster or VM hosts, backup and restore tests, persistence configuration changes and paging. Walk the on-call team through the runbook and the failover results. Done when a signed ownership matrix names one accountable person per part, and the on-call rota covers every layer the broker depends on.
How DeployOpen plans and runs an Apache ActiveMQ deployment
DeployOpen plans and implements Apache ActiveMQ inside your own infrastructure, whether that is a Docker host, a Kubernetes cluster or virtual machines. The platform choice shapes high availability, persistence and upgrades, so the work starts with a written scope that names the target runtime and the team that will operate it. Engagements are fixed-scope, with deliverables and timelines agreed in writing before work begins.
How we scope
- Written scope names the runtime, broker topology and number of broker nodes before any build starts.
- Persistence choice is set early: KahaDB or JDBC for ActiveMQ Classic, based on your database and storage standards.
- Scope states whether you run Classic 5.19.x maintenance or the 6.2.x series, since the release lines differ.
How we build
- Container images, Kubernetes manifests or VM configuration are built from your chosen target, inside your accounts or data centers.
- Broker networking, shared storage for high availability and network of brokers settings are configured and tested together.
- Access control and transport security settings and client connection tests cover JMS, AMQP, MQTT, STOMP and WebSocket clients you run.
How we hand over
- Runbooks cover failover, broker restarts, storage recovery and the upgrade steps agreed in the written scope.
- Backup and restore procedures are documented and exercised, so your operators can repeat them without us.
- Architecture notes and configuration are delivered for your compliance and security teams to review.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers after handover.
- Upgrade planning follows the supported ActiveMQ lines, which you confirm against the release page before each change.
- Security testing of the broker deployment can be scoped separately, and DeployOpen does not issue audit reports or certifications.

