Jump to content

Recommended Posts

Posted

When I load my websites which are hosted on my vps. They shows 504 (Gateway time-out) errors many times and after some time it's getting normal and it shows website perfectly. Fix this please !

  • wolstech changed the title to [VPS Admin] 504 Error
Posted

I took a look at your VPS, and it is indeed very slow. This is because MariaDB and PHP-8.3 are using all your memory, and your load is very high. Between MariaDB and PHP-8.3 they are using 3081 MB of memory and your VPS only has 2048 MB memory, and the OS and everything else needs to have some memory to operate too. When I checked you only have 300 MB free, and 1.4 GB is swapped. You should aim to have only 0-50 MB swapped, and definitely more free memory than only 300 MB. Here are some options to increase the speed of your VPS:

  1. I would recommend increasing your memory to 3 GB or 4 GB at https://heliohost.org/dashboard/upgrade/ 
  2. You could modify the MariaDB config to use less memory if you don't want to upgrade the memory.
  3. You could modify the PHP-8.3 config to use less memory and/or have less FPM workers if you don't want to upgrade the memory.

In order to free up some memory for you, I restarted MariaDB, but it will likely just swell back up to the same memory usage as before unless you modify the MariaDB config as I suggested in option 2.

  • Confused 1
Posted
10 minutes ago, Krydos said:

I took a look at your VPS, and it is indeed very slow. This is because MariaDB and PHP-8.3 are using all your memory, and your load is very high. Between MariaDB and PHP-8.3 they are using 3081 MB of memory and your VPS only has 2048 MB memory, and the OS and everything else needs to have some memory to operate too. When I checked you only have 300 MB free, and 1.4 GB is swapped. You should aim to have only 0-50 MB swapped, and definitely more free memory than only 300 MB. Here are some options to increase the speed of your VPS:

  1. I would recommend increasing your memory to 3 GB or 4 GB at https://heliohost.org/dashboard/upgrade/ 
  2. You could modify the MariaDB config to use less memory if you don't want to upgrade the memory.
  3. You could modify the PHP-8.3 config to use less memory and/or have less FPM workers if you don't want to upgrade the memory.

In order to free up some memory for you, I restarted MariaDB, but it will likely just swell back up to the same memory usage as before unless you modify the MariaDB config as I suggested in option 2.

Yeah. Give option 2 and also option 3 for better perform. Can you do it for me please.

  • MoneyBroz changed the title to [Solved] 504 Error
Posted

A few things I wanted to note:

  1. 99% of your load is coming from the one Wordpress site travel-lk.com. I would recommend switching to another software other than Wordpress if you want better performance for the whole VPS. If you refuse to get rid of Wordpress, you really should add some more memory.
  2. Decreasing the resources MariaDB and PHP 8.3 are allowed to use helps keep the system from swapping, which increases the speed, but in order to get truly fast speed you should still increase the memory.
  3. Your system is still pretty swapped. Over 1000 MB in swap right now, but it's mostly spamd processes, named, etc. which you probably aren't even using anyways. Just like in point 1 and 2 you really should increase the memory until your system doesn't need to swap at all.
Posted
25 minutes ago, Krydos said:

A few things I wanted to note:

  1. 99% of your load is coming from the one Wordpress site travel-lk.com. I would recommend switching to another software other than Wordpress if you want better performance for the whole VPS. If you refuse to get rid of Wordpress, you really should add some more memory.
  2. Decreasing the resources MariaDB and PHP 8.3 are allowed to use helps keep the system from swapping, which increases the speed, but in order to get truly fast speed you should still increase the memory.
  3. Your system is still pretty swapped. Over 1000 MB in swap right now, but it's mostly spamd processes, named, etc. which you probably aren't even using anyways. Just like in point 1 and 2 you really should increase the memory until your system doesn't need to swap at all.

Shut travel-lk then. I don't need it. The customer has abandoned it. But others I want as they are.

Posted (edited)

I'll have Krydos take another look, but considering what was posted in your last topic and the fact the issue returned, it sounds like what you're running might just be too heavy. I'm not sure if there's further reduction possible or not. If not, the permanent fix may require buying an upgrade. I'm not sure if a trial would be possible for the upgrade to see if it would actually fix the issue before buying it.

Escalating again to see if any further improvement can be made.

Edited by wolstech
Clarify
  • Confused 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...