question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Sudden CPU spike to 100% and disk space decreasing fast

See original GitHub issue

Description

I have “btop” always running on my second monitor… Unpinned a message in a room (from Element Web) and all of the sudden (not sure if related) server’s CPU went crazy to 100% for a minute or so, until when I restarted the ansible playbook.

In this minute my DB has grown by 1GB more or less but I lost more than 2GB of space and I don’t know where exactly. After that I ran the rust-compress utility and did a FULL VACUUM and DB is back to normal now.

Steps to reproduce

I don’t have any step to reproduce, it happened out of the blue.

The only thing I was doing at that time was removing a pinned message from a room.

Homeserver

woodpeckersnest.space

Synapse Version

1.63.1

Installation Method

Other (please mention below)

Platform

I’m running the matrix-docker-ansible playbook on a Debian 11 VPS with 2GB RAM and 1 vCPU.

Relevant log output

Jul 21 21:42:11 matrix-synapse[1303919]: 2022-07-21 19:42:11,764 - synapse.handlers.pagination - 274 - WARNING - purge_history_for_rooms_in_range-0 - [purge] purging events not possible: No event found (ts 1655840531742 => stream_ordering 155865)

Anything else that would be useful to know?

No response

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
roughneckscommented, Jul 29, 2022

Thanks for explaining, I did a VACUUM FULL with the tools provided by the ansible playbook. Hope you can improve the process 👍

0reactions
richvdhcommented, Jul 29, 2022

I’ve seen history purges cause a big explosion in state groups in the past: https://github.com/matrix-org/synapse/issues/3364#issuecomment-395263702.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix Random Disk Usage Spikes in Windows 11/10
This post will show you how to troubleshoot and effectively fix the Random Disk Usage Spikes you may see on your Windows 11/10...
Read more >
Windows 10 Random Disk Usage Spikes - Microsoft Community
Hey, now since 3 days my Disk Usage goes randomly from 0 to 100 and then 0 %, i already tried the tipps...
Read more >
How to Fix 100% Disk Usage in Windows 10 - AVG
If your PC feels slow and if disk usage isn't an issue, you might instead be suffering from high CPU usage or insufficient...
Read more >
100% Disk Usage in Windows 10? 17 Tips and Tricks to Fix ...
Windows 10 is largely a reliable operating system, but one problem has plagued it since launch: the 100% disk usage bug.
Read more >
What are the Most Common Causes of CPU Spikes?
Heavy software applications and running many programs at once can also cause spikes. Another common cause is viruses, which tend to take up...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found