Software Testing / Learning brief

Tom watches the bath for three hours

What this means in plain language

The Daily List reminder service slows down every night. A bath with a slow leak shows why a long test is needed, and how the low points after clean-up tell Tom that memory is being lost.

Understand the full idea, step by step

Watch a bath for one minute and the water looks the same. Come back after three hours and it is half empty. The leak was there all along. This slow example needs a long observation; a larger leak may become visible quickly.

The Daily List reminder service gets slower every night. A short test shows nothing. Tom decides to watch the bath.

Evidence & review

REVIEWED 2026-10-18

The date on this lesson is when it went up on Payments Signal, not when its material was written — most of these were brought across from an earlier catalogue in a single run, which is why so many of them share a date. What the lesson says about the world is dated by the review above and by the sources below it.

Memory leaks and soak analysis as taught in this academy, with an invented app. The readings in the example come from a small Python program that was run for real.

What this brief simplifies: Fiction labelled SYNTHETIC / TRAINING ONLY. Sources were seen only as search excerpts. The bath is a teaching picture, and the toy program shows the idea, not the size of real leaks.

Sources for this brief — 4 sources
  1. Market practiceJava SE 17

    HotSpot Virtual Machine Garbage Collection Tuning Guide ↗ — Oracle · How the Java garbage collector frees memory and how the heap is organised into generations (search excerpt, page not opened)

    Implementation-specific illustration of pause, throughput and memory goals. The maximum pause-time goal is a hint and may not be met; it is not an SLA or screening benchmark. Some collection phases pause application work, while others may be concurrent. · Checked 2026-11-06

    Opened Oracle Java 17 Garbage Collector Ergonomics on 6 November 2026. Include pauses in latency attribution without double-counting a pause already inside a measured compute interval.

  2. Market practice

    tracemalloc: Trace memory allocations (Python 3.12 documentation) ↗ — Python Software Foundation · Take two snapshots of memory use and compare them to see where memory grows (search excerpt, page not opened)

    Describes taking two snapshots of memory use and comparing them to find where memory grows. Used for the leak example in this lesson. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  3. Market practice

    Memory leak diagnosis with garbage collection logs and heap dump comparison (Huawei Kunpeng documentation) ↗ — Huawei · A leak signature: old-generation memory stays high after full collections; compare two heap dumps to see which classes keep growing (search excerpt, page not opened)

    Shows a leak signature (old generation stays high after full collections) and how comparing two heap dumps shows which classes keep growing. Vendor guide. Practitioner guidance, not a standard. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  4. Simplified educational illustration

    Payments Signal editorial teaching models — Payments Signal

    This site's own simplified teaching models. · Checked 2026-07-12

    Used wherever diagrams, scenarios, figures, or example values are didactic constructions rather than sourced facts; every such use carries a simplifications disclosure. All people, companies, banks, and list entries in examples are fictional.

Learn this properly

START HEREMemory leaks and soak-test analysisProve a slow leak by running a long test, reading memory after clean-up and comparing snapshots, and tell it from a full connection pool.Opens at L0 Explain simply · about 18 min

Related briefs

Tom asks the three questions

Tom practises questions on DevOps, shift left and retrospectives. A school year with weekly quizzes shows him why testing early helps, why later testing still counts, and what a retrospective asks.

READ BRIEF

Tom watches the front desk

Mei gives Tom practice questions on attacks, privacy fixes, energy use and the names of rules. He learns to ask what an attacker wants, or what a fix protects.

READ BRIEF