# Dedicated Server Stops Logging and Takes up 99% of CPU

**URL:** <https://forums.unrealengine.com/t/dedicated-server-stops-logging-and-takes-up-99-of-cpu/462662>\
**Category:** Platform & Builds\
**Tags:** dedicated-server, freeze, cpu-usage, Linux, linux-server, unreal-engine, question\
**Created:** [March 20, 2020, 6:20am UTC](https://forums.unrealengine.com/t/dedicated-server-stops-logging-and-takes-up-99-of-cpu/462662 "2020-03-20T06:20:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![StBlueFire](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/stbluefire/32/641418_2.png) [@StBlueFire](https://forums.unrealengine.com/u/StBlueFire)\
**Post date:** [March 20, 2020, 6:20am UTC](https://forums.unrealengine.com/t/dedicated-server-stops-logging-and-takes-up-99-of-cpu/462662/1 "2020-03-20T06:20:42Z")

</div>

So we have the weirdest behavior on our Linux Dedicated Server on Gamelift Spot instances.

Symptoms:

1. CPU usage goes to 99%-100%
2. Logs stop coming in. (we have a healthcheck that runs every minute)
3. Gamelift healthcheck continues to pass and players are still shown as active after disconnecting
4. Server process continues to run for days if we allow it
5. Other server processes run on the same ec2 and are fine.

Has anyone seen anything like this? Any ideas on where to even start troubleshooting? We’ve been working at different shots in the dark for weeks with no luck. I’d say repro rate is like 1/100 instances.

---

<div class="post-metadata">

**Author:** ![StBlueFire](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/stbluefire/32/641418_2.png) [@StBlueFire](https://forums.unrealengine.com/u/StBlueFire)\
**Post date:** [April 10, 2020, 10:42am UTC](https://forums.unrealengine.com/t/dedicated-server-stops-logging-and-takes-up-99-of-cpu/462662/2 "2020-04-10T10:42:23Z")

</div>

So in case someone else find this. You can find what’s causing the CPU to spike with perf tools in linux.

Here are some helpful links:

> **[Installing and Using Perf in Ubuntu and CentOS | FOSS Linux](https://www.fosslinux.com/7069/installing-and-using-perf-in-ubuntu-and-centos.htm)**
>
> Performance is one of the most complicated parts of systems administration.  Whenever you are trying to investigate the source of bad performance or the reason for the high workload, you need the right tools to do so.

> **[Linux perf Examples](https://www.brendangregg.com/perf.html)**
>
> Examples of using the Linux perf command, aka perf\_events, for performance analysis and debugging. perf is a profiler and tracer.

Our servers still freeze, but since they aren’t eating up 99% of the CPU and freezing the process we can effectively notice and kill.
