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.

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...