A running program is a “process”
When you open an app, the OS loads the program into memory and runs it. This “running unit” is called a process. You can see the list in Task Manager on Windows or Activity Monitor on Mac. The rule is that a process borrows memory from the OS to work and returns it when done.
Memory leaks: borrowed memory never returned
If a program has a bug, it may forget to return memory it’s finished with. A little each time, but after days of running, unreturned memory piles up and usable memory slowly shrinks. This is a memory leak. When memory runs short, the OS starts using storage as stand-in memory, and things suddenly get slow.
When a restart ends every process, all the memory that was never returned comes back. This is one reason “it gets slow if you leave it on, and a restart fixes it.” Frozen processes and files held open while “in use” are also all cleared up by a restart.
Why “Shut down” doesn’t clear everything
Windows 10 and 11 have a feature called Fast Startup: at shutdown, the state of the OS core (the kernel) is saved to storage and read back at the next startup. Startup gets faster, but problems in the core can also carry over to the next session.
“Restart” doesn’t use this feature; it rebuilds everything, core included. That’s why, when you want to fix something, you choose “Restart.” Windows Update also finishes during a restart because files that are in use can’t be replaced while running.
A server restart is 90% preparation
Servers are used by many people, so you can’t restart them casually. In practice, the steps go like this:
- Check what will be affected and give users advance notice (set the work window)
- On a virtualization platform, move the virtual machines to another host (vMotion, maintenance mode)
- Shut down properly by the OS procedure (don’t just cut the power)
- After startup, check that the services are running and that the logs show no errors
And don’t stop at “a restart fixed it.” Look at logs and graphs — for example, is memory use creeping up a little every day? — and fix the root cause. A restart is first aid, not a cure.
Data centers are often far away. iDRAC on Dell PowerEdge (iLO on HPE) is a small computer that runs separately from the server’s OS. Even when the OS is completely frozen, you can see the screen or power-cycle the server from a browser. Because it’s managed over a path separate from normal traffic, it’s called “out-of-band management.”
Practice questions
Four-choice questions in the style of Japan’s Fundamental Information Technology Engineer Examination. Tap below to see the answer.
Q1Which is the phenomenon where a program doesn’t release memory it has finished using, so available memory gradually decreases?
- AThrashing
- BDeadlock
- CFragmentation
- DMemory leak
Show the answer and explanation
Answer: DA memory leak happens when allocated memory isn’t returned. Thrashing is slowdown from constant swapping with storage when memory is short, and deadlock is when several processes stop because each is waiting for the other.
Q2On Windows with Fast Startup enabled, which action is appropriate if you want to reset the OS all the way down to its core?
- AShut down and turn the power back on
- BRestart
- CPut it to sleep
- DLock the screen
Show the answer and explanation
Answer: BWith Fast Startup, shutdown saves the core’s state and carries it over to the next session. “Restart” doesn’t use this feature, so the core is rebuilt.
Q3When a server’s OS stops responding, what is the method of checking the screen or controlling power remotely over a management path separate from the OS called?
- AOut-of-band management
- BHot standby
- CLoad balancing
- DFailback
Show the answer and explanation
Answer: AManaging equipment over a path separate from normal traffic, like iDRAC or iLO, is called out-of-band management. Its strength is that it works even when the OS is frozen.
- A running program = a process. Memory that never gets returned piles up: a memory leak
- Windows has Fast Startup, so to fix things, choose “Restart”
- A server restart comes with planning — and finding the root cause