r/linuxadmin • • 10d ago

Linux troubleshooting scenario: Application suddenly disappears without any error logs. Where would you start?

Imagine you're handling a production Linux server.

A Java application was running normally, but suddenly the process disappears.

You check the application logs and notice something strange:

  • No Java exception.
  • No stack trace.
  • No graceful shutdown message.
  • Logs simply stop at a particular timestamp.
  • The application process is no longer running.

You check the application configuration, but nothing unusual stands out.

Now, here's the question:

Would you immediately investigate the application, or would you look at the Linux kernel first?

One possibility worth investigating is the Linux OOM (Out of Memory) Killer.

When the kernel cannot reclaim enough memory, it may terminate a process to protect the system from memory exhaustion.

I'd start by checking:

dmesg | grep -i oom

And:

journalctl -k | grep -i oom

But confirming an OOM event is only the beginning.

I'd also want to understand:

  1. Which process was killed?
  2. Was it a system-wide OOM or a container memory limit?
  3. What caused the memory pressure?
  4. Was there a memory leak or sudden workload spike?
  5. What evidence would you collect before restarting the application?

I'm interested in how experienced Linux admins and production support engineers approach this situation.

0 Upvotes

11 comments sorted by

View all comments

1

u/jlrueda 8d ago

I would use clifr to investigate a Linux OOM kill.

clifr --since "24 hours ago" oom

Your Linux process just got killed by the OOM killer. What was happening on the server immediately before it happened?

With clifr (Command Line Flight Recorder), you can travel back in time and reconstruct the system state before the incident.

Investigate:

  • Which processes were consuming the most memory.
  • How memory usage evolved in the minutes before the OOM.
  • Which processes appeared or disappeared.
  • What the killed process was doing.
  • What other processes, files and network connections were involved.

No need to reproduce the problem or wait for it to happen again. Query the historical system state using recorded data.

Use clifr diff to compare two snapshots of your Linux server: one when the process was running (BEFORE_TIME) and another when the process got killed by OOM killer (AFTER_TIME).

The objective is to identify what appeared, disappeared, or changed between the two moments. Like processes:

BEFORE_TIME="2026-11-21 14:00:00"
SLOW_TIME="2026-11-21 14:30:00"

clifr diff --at "$FAST_TIME" --at "$AFTER_TIME" "ps aux"

Compare network connections:

clifr diff --at "$BEFORE_TIME" --at "$AFTER_TIME" "ss -tanp"

Compare memory performance:

 clifr --since "$BEFORE_TIME" --until "$AFTER_TIME"--samples "vmstat"

Compare disk performance:

clifr --since "$BEFORE_TIME" --until "$AFTER_TIME" --samples "iostat -x"

clifr is a Linux System Flight Recorder (SFR) that continuously captures processes, connections, open files and system counters, then shows accurate ps, ss, lsof, top (and 30+ other) tools' full-output for any past moment; tamper-proof and with very low-overhead.