Several sessions die together, suspect the machine
When several sessions die at the same instant with no trace whatsoever in their own logs, the likely cause is the operating system killing processes under memory pressure, and the system log settles the question faster than a hunt through application errors.
A Claude Code session stops dead, with no usable error message in its own log. That is not worrying in itself. What should prompt a change of track is when two or three separate sessions stop at the same instant, on the same machine, with no dependency between them. A bug specific to the tool would rarely strike several independent processes to the second. An operating system running short of memory would.
The memory killer, a layer beneath the tool
On Linux, when available memory drops too low, the kernel triggers a mechanism called the OOM killer, for out of memory killer: it picks one or more processes and terminates them by force to stop the whole machine from locking up. The killed process generally gets no chance to write an error message before it disappears, which explains the total absence of any trace in its own log. Windows has no equivalent that kills a process this way: its resource exhaustion detector, visible in Event Viewer under the identifier Microsoft-Windows-Resource-Exhaustion-Detector, simply logs event 2004, naming the processes that were consuming the most virtual memory at the time of the measurement. This entry is enough to date a genuine memory pressure event on the machine, but it is diagnostic, it does not on its own settle what stopped a process. In both cases, the trail leads outside Claude Code: it sits one layer down, where the tool has neither visibility nor control.
The system log settles it before the application log does
Looking for the cause in the application's logs takes time and will find nothing if the cause lies elsewhere. The system log, by contrast, records the event the moment it happens, independently of what each killed process was doing. It is therefore the one to read first, not as a last resort.
# Builds a sample log, without touching the real system log
printf '2026-09-02T03:14:07 kernel: Out of memory: Killed process 4821 (node) total-vm:2048000kB\n2026-09-02T03:14:07 kernel: Out of memory: Killed process 4822 (node) total-vm:1980000kB\n' > journal-exemple.log
grep -i "out of memory" journal-exemple.log
# Out of memory: Killed process 4821 (node) total-vm:2048000kB
# Out of memory: Killed process 4822 (node) total-vm:1980000kB
On a real machine, the equivalent command is dmesg -T | grep -i killed on Linux, or a read of the System log in Windows Event Viewer looking for a resource exhaustion detection event. The two identical timestamps on the two killed processes, as in the fabricated example above, are the signature that distinguishes a memory purge from a coincidence.
The fix targets the machine, not the usage
Once the purge is confirmed, the natural response, reducing the number of sessions kept open in parallel, treats the symptom without addressing the cause. The swap file exists precisely to absorb memory spikes without killing processes: sizing it correctly, or adding one where none exists, prevents the next purge without imposing artificial discipline on the number of windows left open.
This same discipline, checking the lowest layer before blaming the tool, also structures the approach to a command that stops responding, see a stuck command.
A bug in the tool or memory pressure, four criteria to decide
| Hypothesis | Trace in each session's log | Trace in the system log | Sessions affected at the same instant | Reduced by simply closing windows |
|---|---|---|---|---|
| A bug specific to the tool | Present, an error message or a call stack accompanies the stop | Generally absent, nothing signals a matching system event | Rare, a bug hits one session at a time except in special cases | No effect, the bug reappears regardless of the number of sessions |
| Memory pressure, OOM killer on Linux | Absent, the process is terminated before it can write anything at all | Present, a timestamped purge event appears at the moment of the stop | Frequent, several processes go down at the same timestamp | Effective in the short term, but the real cause is the size of the swap file |
On a development machine, three Claude Code sessions open in three separate terminals stop at the same second, each frozen on its last displayed line. A developer opens the machine's system log and finds a memory purge entry timestamped at the same second as the three sessions stopping.
Write, in one sentence, what this situation establishes, and in one sentence what it does not establish.
What this establishes: The simultaneous stop of the three sessions coincides, at the same instant, with a memory purge entry recorded independently by the operating system itself.
What this does not establish: It does not establish which specific process triggered the memory shortage, nor whether this machine's swap file is sized correctly enough to stop the incident from happening again.
The three most common miscalibrations
- Too broad Any Claude Code session that stops without an error message is caused by a memory purge from the system.
- Too narrow This timestamp coincidence proves nothing, since only one incident was observed on a single machine.
- Off target This situation shows that the developer took too long to check the system log after the incident.
- Two or three independent sessions that stop at the same instant, with no trace in their own logs, point to a common cause outside the tool rather than to a bug in each of them.
- The OOM killer, the Linux kernel mechanism that terminates processes under memory pressure, generally leaves no error message in the log of the process it kills.
- The system log records the memory purge event the moment it happens, it is read before a search through application logs, not after.
- An identical timestamp across several killed processes is the signature of a memory purge rather than a run of independent failures.
- The durable fix sizes the machine's swap file correctly, reducing the number of open sessions only treats the symptom.
Faced with two sessions that stopped at the same instant, look first for the memory purge entry in your machine's system log before any search through application logs, then check the size of your swap file.
Every datable claim in this lesson links here to the public text behind it. A source that does not open proves nothing.
- Linux kernel, documentation of the out of memory killer mechanism consultée le 2026-09-02
- Microsoft, System log, event 2004 of the resource exhaustion detector consultée le 2026-09-02