Skip to main content

Self-hosting Langfuse vs four alternatives at 100,000 traces: memory, disk and a 2 GB server

Published · 17 min read
LLM-ops platform

Self-hosting Langfuse vs lighter alternatives: five server stacks of growing size

Langfuse's self-hosting guide asks for at least 4 CPU cores and 16 GiB of memory. In our test, Langfuse held 100,000 agent traces with 2.5 GiB of memory, peaked at 3.7 GiB while ingesting, and kept running inside a 4 GB, 2 CPU limit. Two lighter tools, Arize Phoenix and AcruxCore, stayed under 1 GiB through the same load. Langfuse paid for its extra memory with speed: it accepted traces 10 to 80 times faster than the other four tools.

We ran Langfuse, Phoenix, MLflow, AcruxCore and Opik on one machine with one load generator, and every number below comes from a recorded run.

We build AcruxCore, one of the five tools. Every tool got the same traces, the same steps and the same limits. The harness, the Compose overrides and every raw reading are on GitHub, so you can run the same test on your own server.

The results at a glance​

ToolContainersMemory at idleMemory at 100k tracesPeak while ingestingTime to store 90k tracesList 50 traces at 100k (median)
Langfuse 4.7971.82 GiB2.54 GiB3.70 GiB48 s31 ms
Arize Phoenix 21.020.49 GiB0.77 GiB0.81 GiB853 s4 ms
MLflow 3.1832.61 GiB2.91 GiB2.95 GiB102 s8 ms
AcruxCore 2026.11.1150.25 GiB0.58 GiB0.87 GiB188 s6 ms
Opik 2.2.14383.06 GiB12.18 GiB17.87 GiB567 s178 ms

Then we ran each stack inside a hard memory and CPU limit and sent it 10,000 traces:

Tool2 GB, 1 CPU4 GB, 2 CPUs8 GB, 4 CPUs
LangfusePartial: stored all, but the web container restarted twice and it took 17 minutesYes, 9 sYes, 8 s
PhoenixYes, 101 sYes, 94 sYes, 105 s
MLflowNo: server killed, 0 traces storedYes, 23 sYes, 13 s
AcruxCoreYes, 65 sYes, 34 sYes, 20 s
OpikNo: 0 traces storedNo: 0 traces storedYes, 181 s

The time is how long it took until every trace was in the tool's database.

Key point: Phoenix and AcruxCore stored all 10,000 traces inside a 2 GB, 1 CPU limit. Langfuse and MLflow needed 4 GB, and Opik needed 8 GB.

  • If ingest speed matters most, Langfuse stored 90,000 traces in 48 seconds, and the next fastest tool, MLflow, took 102 seconds.
  • If the server is small, Phoenix and AcruxCore used less than a third of Langfuse's memory at every stage.
  • Disk grows in places you might not watch. Langfuse keeps every raw event in object storage, and the Postgres-based tools keep up to 1 GB of write-ahead log.

Our October test of seven tools measured the same stacks at 1,000 traces. This one adds 100 times the volume, ingest speed and the memory limits.

Why Langfuse feels heavy​

Langfuse runs seven containers: a web server, a worker, an AI gateway, Postgres, ClickHouse, Redis and MinIO. ClickHouse is a column database built for large analytical scans, and Langfuse cannot run without it. MinIO is an S3-compatible object store.

This design is why people look for Langfuse alternatives when they only want tracing on a small server. The question this post answers is narrower: how much memory, CPU and disk does each stack really use once it holds real volume?

Langfuse's seven containers: web, worker and AI gateway in front of Postgres, ClickHouse, Redis and MinIO

How we tested​

Each tool ran from its own official Docker Compose file, pinned to its latest release in November 2026. We changed only host ports and a fixed subnet, and we added the login settings each tool needs for a script.

ToolSetupVersion
Langfuserepo docker-compose.yml, headless project init4.79.0
Arize Phoenixrepo docker-compose.yml, published image, auth left on21.0.0
MLflowrepo docker-compose/ with .env.dev.example3.18.0
AcruxCoreREADME quick start, docker-compose.local.yml2026.11.11
Opikdeployment/docker-compose, full profile (what ./opik.sh starts)2.2.143

The load is a synthetic support agent. Each trace has three spans: the agent run, one LLM call with about 1.6 KB of prompt and answer, and one tool call. Four sender processes push traces over OTLP/HTTP, the OpenTelemetry protocol every tool here accepts. The sender waits for each batch of 100 traces to be accepted and retries a rejected batch for up to 10 minutes, so no trace is lost on the client side:

def flush(self):
failures, first_fail = 0, None
while self.exporter.export(self.buf) != SpanExportResult.SUCCESS:
failures += 1
first_fail = first_fail or time.time()
if failures >= 30 or time.time() - first_fail > 600:
raise RuntimeError("batch rejected for too long")
time.sleep(1)
self.buf = []

For every tool, the script:

  1. started the stack three times from empty volumes and timed it until the health URL answered,
  2. waited 3 minutes and recorded idle memory and disk,
  3. sent 10,000 traces, then 90,000 more, sampling docker stats throughout,
  4. counted the traces in the tool's own database until all of them were there,
  5. waited 10 minutes after each batch and recorded memory and disk again,
  6. timed two API calls 30 times each: the latest 50 traces, and one trace with its spans.

We measured two ingest times. "Accepted" is when the server took the last batch. "Stored" is when the tool's database held every trace, which is what you see in the UI.

The machine had 24 cores, 62 GiB of memory, an NVMe disk and Docker 29.9.2. Nothing else ran in Docker during the test.

Memory: idle is not the number to plan for​

Idle memory tells you whether a tool starts on your server. The peak tells you whether it survives a busy hour.

ToolIdleAfter 10k tracesAfter 100k tracesPeak while ingestingLargest container at 100k
Langfuse1.82 GiB2.42 GiB2.54 GiB3.70 GiBworker 862 MiB, ClickHouse 808 MiB
Phoenix0.49 GiB0.65 GiB0.77 GiB0.81 GiBPhoenix server 607 MiB
MLflow2.61 GiB2.84 GiB2.91 GiB2.95 GiBMLflow server 2,614 MiB
AcruxCore0.25 GiB0.38 GiB0.58 GiB0.87 GiBPostgres 174 MiB
Opik3.06 GiB9.58 GiB12.18 GiB17.87 GiBbackend 7,196 MiB

Langfuse's memory grew by 0.7 GiB between idle and 100,000 traces. Its peak came from ClickHouse while it wrote the 90,000-trace batch.

MLflow surprised us. It used more memory at idle than Langfuse, because its server starts about 15 Python processes. Its memory then barely moved under load.

Opik grew the most. Its Java backend reached 7 GiB, and the whole stack used about 20 CPU cores while it ingested. Opik's own docs say the local Docker setup is not meant for production, so treat it as the upper bound here.

Ingest: queued writes vs direct writes​

The five tools take traces in two different ways, and the difference explains most of the speed gap.

Tool90k traces accepted90k traces storedEffective rate (spans/s)How it writes
Langfuse10 s48 s5,600Queue in object storage, worker writes to ClickHouse
MLflow102 s102 s2,640Directly to Postgres
AcruxCore188 s188 s1,440Directly to Postgres
Opik567 s567 s480Directly to ClickHouse
Phoenix791 s853 s320In-memory queue, one writer to Postgres

Langfuse's web container writes each batch to MinIO and puts a reference in Redis. The worker then loads the batch into ClickHouse (Langfuse architecture docs). The sender gets an answer almost at once, and the traces appear in the UI a few seconds later. For the 90,000-trace batch, that delay was 38 seconds.

Phoenix also queues, but in memory and with one writer process. That process stayed near 100% of one core for the whole run. When its queue reaches 20,000 spans (PHOENIX_MAX_SPANS_QUEUE_SIZE), Phoenix asks the sender to retry, and our sender retried 48 times. No trace was lost, but 90,000 traces took 14 minutes.

Queued writes (Langfuse, Phoenix) reply fast and show traces later; direct writes (MLflow, AcruxCore, Opik) reply after the write and show traces at once

MLflow, AcruxCore and Opik write each request before they answer it, so a trace is visible as soon as the sender gets its reply. During AcruxCore's ingest, its API container used about 1.4 cores and Postgres about 1.3 cores, so the work was split between the API and the database.

If your agents send a few traces per second, every tool here keeps up. The gap matters for batch jobs, backfills and evaluation runs that emit thousands of traces at once.

Disk: where the bytes go​

Disk grew by these amounts between idle and 100,000 traces:

ToolIdleAt 100k tracesPer 1,000 tracesLargest part at 100k
Langfuse93 MiB682 MiB5.9 MiBMinIO (raw events) 379 MiB
Phoenix140 MiB1,016 MiB8.8 MiBPostgres 920 MiB, of which 464 MiB is write-ahead log
MLflow104 MiB1,780 MiB16.8 MiBPostgres 1,725 MiB, of which 960 MiB is write-ahead log
AcruxCore51 MiB1,100 MiB10.5 MiBPostgres 1,097 MiB, of which 656 MiB is write-ahead log
Opik312 MiB4,404 MiB40.9 MiBClickHouse 3,921 MiB, of which 1,754 MiB is its own system logs

Langfuse used the least disk. ClickHouse compresses its columns well: Langfuse's tables took 77 MiB for 100,000 traces. Most of Langfuse's disk is MinIO, where it keeps every raw ingestion event it receives.

The three Postgres-based tools carry a write-ahead log (WAL). Postgres keeps up to max_wal_size of it, 1 GB by default, so the WAL grows with write volume up to that size and then stays there. Without the WAL, the trace data itself was about 4 MiB per 1,000 traces for Phoenix and AcruxCore and 7 MiB for MLflow.

Opik stored its own trace data in 48 MiB. The largest part of its disk, 1,754 MiB, was ClickHouse's system log tables, which record every query and every merge. Plan disk for them, or limit how long ClickHouse keeps them.

Reading traces back at 100,000 traces​

ToolLatest 50 traces at 10kLatest 50 traces at 100kOne trace with spans at 100k
Langfuse15.7 ms31.0 ms14.1 ms
Phoenix4.4 ms4.3 ms4.2 ms
MLflow8.5 ms8.4 ms6.2 ms
AcruxCore3.2 ms5.6 ms7.9 ms
Opik180.1 ms177.8 ms63.1 ms

These are medians of 30 calls through each tool's public HTTP API, not page loads in the UI. Langfuse 4 has no public "list traces" endpoint, so for Langfuse we listed the root spans, which is one row per trace.

Listing got slower with volume in one tool: Langfuse doubled to 31 ms. Phoenix, MLflow and AcruxCore stayed under 10 ms at both sizes, and Opik took about 180 ms at both sizes. Fetching one trace stayed under 15 ms in every tool except Opik. We ran AcruxCore's full test twice, and the second run listed in 3.2 ms and fetched one trace in 4.3 ms at 100,000 traces, so read differences of a few milliseconds as noise.

Running on a small server​

We ran each stack again from empty volumes, this time inside a systemd slice with a hard memory limit, no swap and a CPU quota. Every container also got the same limit, so the Java and ClickHouse processes sized themselves from the limit and not from the host's 62 GiB. Each stack then received 10,000 traces.

ToolCapBootedTraces storedTime until storedPeak memoryKilled or restarted
Langfuse2 GB, 1 CPU44 s10,0001,035 s2.00 GiBweb restarted twice
Langfuse4 GB, 2 CPUs40 s10,0009.2 s2.70 GiBnone
Langfuse8 GB, 4 CPUs29 s10,0008.2 s2.93 GiBnone
Phoenix2 GB, 1 CPU17 s10,000101 s0.67 GiBnone
Phoenix4 GB, 2 CPUs15 s10,00094 s0.66 GiBnone
Phoenix8 GB, 4 CPUs16 s10,000105 s0.65 GiBnone
MLflow2 GB, 1 CPU40 s0never0.18 GiBserver killed
MLflow4 GB, 2 CPUs30 s10,00023 s2.83 GiBnone
MLflow8 GB, 4 CPUs29 s10,00013 s2.84 GiBnone
AcruxCore2 GB, 1 CPU12 s10,00065 s0.43 GiBnone
AcruxCore4 GB, 2 CPUs12 s10,00034 s0.61 GiBnone
AcruxCore8 GB, 4 CPUs12 s10,00020 s0.64 GiBnone
Opik2 GB, 1 CPU89 s0never2.00 GiBbackend and ClickHouse killed
Opik4 GB, 2 CPUs59 s0never4.00 GiBClickHouse killed
Opik8 GB, 4 CPUs55 s10,000181 s6.03 GiBnone

Langfuse runs on 4 GB. At 2 GB its stack sat at the limit the whole time. The kernel spent most of its CPU time reclaiming memory, the health URL stopped answering, and the web container restarted twice. All 10,000 traces still arrived, but it took 17 minutes.

MLflow needs 4 GB. At 2 GB the kernel killed the MLflow server for running out of memory, and no trace was stored.

Opik needs 8 GB. At 2 GB and 4 GB, the kernel killed ClickHouse for running out of memory, and at 2 GB the Java backend too. No trace was stored.

Phoenix and AcruxCore ran at every size. Phoenix took about 100 seconds at every size, because one process writes every span, so more cores do not help it. AcruxCore got faster with more cores, from 65 seconds at 1 CPU to 20 seconds at 4 CPUs, and stayed under 0.65 GiB.

Which one should you run?​

Start from the server you have, then pick by what matters most to you.

  • A 2 GB server: Phoenix or AcruxCore. Both ran at 2 GB with memory to spare, and neither lost a trace. Phoenix is the slower of the two when a burst arrives.
  • A 4 GB server and you want speed: Langfuse. It was the fastest tool at 4 GB and 8 GB, and it stayed under 3 GiB with 10,000 traces. Expect to run seven containers, including ClickHouse and MinIO.
  • You already use MLflow for experiments: MLflow tracing, on a server with at least 4 GB. Its memory is mostly fixed: about 2.6 GiB idle and 2.9 GiB at 100,000 traces.
  • You want Opik: give it 8 GB or more and watch ClickHouse's system logs on disk. Its own docs present the Docker setup as a local install, not a production one.

Which tools stored all 10,000 traces at each limit: Phoenix and AcruxCore at 2 GB and 1 CPU; Phoenix, AcruxCore, Langfuse and MLflow at 4 GB and 2 CPUs; all five, Opik included, at 8 GB and 4 CPUs

Every tool here stored all 100,000 traces once it had enough memory. The differences are in how much hardware each one needs, how fast it takes a burst, and how quickly its disk grows.

How AcruxCore stores traces​

AcruxCore runs five containers: Postgres, Redis, the API, a worker and the web app. Traces go into Postgres, so there is no column store or object store to run, and a normal Postgres backup covers them. The API accepts OTLP/HTTP at /api/v1/traces/otlp and writes each request before it answers, which is why a trace shows up in the UI as soon as the sender gets its reply. The same stack also runs the AI gateway, prompt management and evaluations.

Self-host AcruxCore with Docker covers the setup from the published images, and Quickstart sends a first traced call.

What we did not test​

  • One machine, one run of each batch. Boot times are three runs each, and they varied by less than 2 seconds. The ingest and memory numbers are single runs, except AcruxCore's full test, which we ran twice. Its second run stored the 90,000 traces in 154 seconds instead of 188, so expect some variation between runs.
  • A memory limit is not a real VPS. The capped runs share this machine's fast NVMe disk and kernel. A cheap VPS usually has slower disk, so expect slower ingest there.
  • Synthetic traces. Every trace has the same shape and size. Real agents send larger and more varied payloads.
  • No high availability. Every tool ran as one node. None of the Compose files is a production cluster.

Reproduce these numbers​

GitHub

langfuse-selfhost-measured/ — the benchmark harness, the Compose overrides and every raw reading.

The folder's README.md lists the upstream commits to clone. run_all.sh runs every full test and every capped test, one tool at a time, and python summarize.py prints the tables in this post from the raw readings in results/. The overrides/ folder holds every change we made to each official setup, so you can check that no tool got special settings.

A full run of all five tools needs a machine with at least 20 GB of memory, because Opik peaks near 18 GiB. To test one tool, run python bench.py full <tool> or python bench.py cap <tool> <GB> <CPUs>. If your numbers differ from ours, open an issue on the repo with your results/ files.

For license, price and features rather than hosting, read 7 Langfuse alternatives and AcruxCore vs Langfuse.

FAQ​

How much memory does self-hosted Langfuse need?​

In our test, Langfuse 4.79 used 1.82 GiB at idle, 2.54 GiB with 100,000 traces and 3.70 GiB at its peak while ingesting. It stored 10,000 traces inside a 4 GB, 2 CPU limit in 9 seconds. Inside a 2 GB limit it still stored them, but its web container restarted twice and the run took 17 minutes. Langfuse's own guide asks for 16 GiB.

Can I self-host LLM tracing on a 2 GB server?​

Phoenix and AcruxCore stored all 10,000 traces inside a 2 GB, 1 CPU limit, with peaks of 0.67 GiB and 0.43 GiB. Langfuse stored them but restarted twice. MLflow and Opik stored none.

Which self-hosted LLM observability tool ingests traces fastest?​

Langfuse. It stored 90,000 traces in 48 seconds, because it queues each batch in object storage and writes to ClickHouse in the background. MLflow took 102 seconds, AcruxCore 188, Opik 567 and Phoenix 853.

Why does Opik use so much memory and disk?​

Opik's Java backend reached 7 GiB, and the whole stack peaked at 17.87 GiB while ingesting 90,000 traces. On disk, 1,754 MiB of its 4,404 MiB were ClickHouse's own system log tables. Opik's docs describe its Docker setup as a local install, not a production one.

Can I check these results myself?​

Yes. The harness, the Compose overrides and every raw reading are in scripts/blogs/langfuse-selfhost-measured, and python summarize.py prints every table in this post from those readings.