Skip to content
‹ 30-Day Drill

Day 14: Fine After a Restart, Stuck Again a Few Hours Later

Illustrative interview practice. Generic company names and hostnames do not represent any specific organization.

Scenario

Interviewer Processor and memory look normal, but over a few hours a service slowly stops responding. Restarting it fixes the problem, and a few hours later it is back. What is going on? And why does a growing number of connections in the CLOSE_WAIT state point to a fault in the program itself?

In plain words

The pattern matters more than any single number here. The service is fine at first, gets worse slowly, is cured by a restart, and then gets worse again on the same timetable.

The question asks what kind of fault behaves like that and how you would prove it. It also names one particular state a connection can be in, and asks what that state tells you about where the fault lies.

Words you need

WordWhat it means
ConnectionAn open line between two programs, used to send requests and answers.
Connection poolA fixed set of connections, usually to a database, that a program borrows from and hands back.
File descriptorA ticket a process holds for each file or connection it has open. Each process has a limited number.
SocketOne end of a network connection, as the operating system sees it.
FINThe message one side sends to say it has finished and is closing the connection.

Your answer

2:00

Observe → Hypothesise → Investigate → Mitigate → Prevent. The timer is optional; your answer is not auto-submitted.

0 / 20,000 characters · Not saved
Sign in to save