r/linuxadmin • • 3d 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

3

u/ultrahkr 3d ago

Linux Kernel would be next to last under many other things to check...

1

u/NotAWittyScreenName 3d ago

This is such a weirdly worded question, but fuck it, I'll bite.

I would take the time stamp from when the application stopped writing logs and use that time stamp to correlate OS logs and monitoring data. This is production so you do have historical monitoring data right? Rather than jump to conclusions looking for something specific like OOM killer, if you have the right historical data you should be able to narrow things down quickly.

1

u/CautiousCat3294 3d ago

Thanks I will try this approach

1

u/AmbitiousJump7196 2d ago

I'd timestamp any reappearance on the same time as well, just so the observations after it comes back up aren't mixed up in with whatever signaled the original dropout. Just because a service is back up doesn't mean you know why it went down in the first place.

2

u/XMRoot 3d ago

Imagine this: You're a clown who cosplays as a Linux admin.

You use AI to post on reddit to promote your lame youtube channel.

You check your diary and you notice something strange:

  • You don't have any original ideas or thoughts
  • Nobody cares
  • Your Youtube channel garners next to zero views

This is your life ending one moment at a time

2

u/Ancient-Bat1755 3d ago

Why you need to train a model? Who cares.

1

u/northrupthebandgeek 3d ago

It's Java, so also check the -Xmx and -Xms flags used when launching it.

1

u/SadanielsVD 3d ago

Journalctl logs, dmesg logs maybe kernel logs, systemd messages

1

u/unknownman652 3d ago

🙂

1

u/jlrueda 2d 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.