Skip to content

Lightsail VPS CPU bursts of unknown reason

0

Hi! Recently my Lightsail instance started repeatedly becoming unresponsive after some some random time after booting. It can happen in less than an hour as well as in a couple of weeks of normal operation. Unresponsive means I cannot SSH onto the container and I cannot connect to other network services running on it. The instance status in Lightsail dashboard is Running, however. The only thing that helps is to stop and start the instance.

Here's the graph of my container's CPU usage. CPU Metrics

After some time the burst quota runs empty and status check failures start to be reported contunuously until I stop the instance. Instance status check failures

I have no idea what causes the consumption and to find that out I started a script that logs top output sorted by CPU and memory usage to a text file every 10 seconds. After having another burst and restarting the instance I saw that no excess activity or memory consumption was spotted by the top utility.

Here is a sample top report in the middle of the CPU burst.

top - 08:40:51 up 13 days, 23:52,  0 users,  load average: 0.00, 0.00, 0.00
Tasks: 104 total,   1 running, 103 sleeping,   0 stopped,   0 zombie
%Cpu(s):  0.0 us,  6.2 sy,  0.0 ni, 93.8 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
MiB Mem :    446.0 total,     11.4 free,    274.5 used,    160.1 buff/cache
MiB Swap:      0.0 total,      0.0 free,      0.0 used.    142.0 avail Mem

    PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND
      1 root      20   0  166448   8820   5364 S   0.0   1.9   4:07.13 systemd
      2 root      20   0       0      0      0 S   0.0   0.0   0:00.02 kthreadd
      3 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 rcu_gp
      4 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 rcu_par+
      5 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 slub_fl+
      6 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 netns
     11 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 mm_perc+
     12 root      20   0       0      0      0 I   0.0   0.0   0:00.00 rcu_tas+
     13 root      20   0       0      0      0 I   0.0   0.0   0:00.00 rcu_tas+
     14 root      20   0       0      0      0 S   0.0   0.0   0:48.85 ksoftir+
     15 root      20   0       0      0      0 I   0.0   0.0   0:29.64 rcu_sch+
     16 root      rt   0       0      0      0 S   0.0   0.0   0:07.38 migrati+
     17 root     -51   0       0      0      0 S   0.0   0.0   0:00.00 idle_in+

Does anyone have ideas what else can I do to track down the cause of the problem?

  • Hi roose, did you ever get a definitive answer to this issue? We are experiencing it now as well beginning July 18.

  • Hi Firehammer. I haven't found out what was the cause of the issue. However this stopped happening after I switched from Ubuntu to Debian.

asked 2 years ago824 views

2 Answers
0

Hello.

Is it possible to run the "ps" command to see which processes have high CPU usage?

ps aux

By the way, if you look at the burst line, it looks like you are using a smaller Lightsail instance.
What kind of applications are you running on your smaller Lightsail instances?
Is it possible that the load is caused by the application you are running?
https://docs.aws.amazon.com/lightsail/latest/userguide/baseline-cpu-performance.html

EXPERT

answered 2 years ago

  • Hi! Yes, sure. Here's the ps output right now (the instance is running normally): https://paste.ee/p/rDYL4#7KCtMGwwpfChlylYc89WXldmIZgD2VcH

    I only run two shadowsocks servers (ss-server, outline-ss-server). I don't think they are the cause. At least because I should have seen them in the top output during the burst. And also there was almost zero incoming traffic at the time of the last burst.

    The strange thing is that top didn't spot any CPU activity during the burst. Could it be the case that the problem is with the system that hosts my container and not with my container itself?

0

Same is happening with me. Zero traffic, Only one docker container of Wireguard, running Debian, still it becoms unresponsive after every 2-3 days. Strange thing is that I don't see any visible usage bump in the metrics.

answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.