r/linuxadmin • u/CautiousCat3294 • 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 oomAnd:
journalctl -k | grep -i oomBut confirming an OOM event is only the beginning.
I'd also want to understand:
- Which process was killed?
- Was it a system-wide OOM or a container memory limit?
- What caused the memory pressure?
- Was there a memory leak or sudden workload spike?
- What evidence would you collect before restarting the application?
I'm interested in how experienced Linux admins and production support engineers approach this situation.
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.
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:
This is your life ending one moment at a time2
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
-Xmxand-Xmsflags 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.
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:
No need to reproduce the problem or wait for it to happen again. Query the historical system state using recorded data.
Use
clifr diffto 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:
Compare network connections:
Compare memory performance:
Compare disk performance:
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.