Forum slowing to a crawl with 504s

Last night, I started getting messages from users that my forum was slow and that they were seeing “504 gateway timed out” errors. I’ve spent hours debugging but haven’t had much luck finding the cause. What I’ve tried:

  • Rolling back to a two day old Digital Ocean backup
  • Restarting the app
  • Rebuilding the app
  • Deleting tmp/cache
  • Moving from the 2GB droplet instance to the 4GB
  • Disabled all plugins

When this didn’t help I tried setting up a local Vagrant install, but I actually get similar issues locally, whereby requests take up to 15s to complete. Usually the first page load loads normally, but then subsequent requests are slow.

I’ve looked at CPU and memory usage using htop, but to my untrained eye everything looks normal.

Any ideas? :slight_smile:

1 Like

What is your forum called?

1 Like

I think it might be due to a plugin after all :slightly_smiling:

1 Like

Mind telling us which one?

1 Like

One that – ehem, I’ve made myself :smiley:

3 Likes

That’s cool. Thanks for replying. Just wanted to make sure it wasn’t a public plugin we didn’t know about :wink:

2 Likes