Need support to improve DA on my VPS

T-100

New member
Joined
Apr 19, 2024
Messages
4
Hello,

I recently bought managed vps Linux server with directadmin personal plus control panel version 1.662:

I bought managed vps because I have no idea about server language at all.

I’ve been looking on the internet for some help and advice how to use the system and make things up and running the right way and thankfully found this forum very helpful and found lots of answers been looking for especially form users: zEitEr and Richard G.

My VPS is 4 GB DDR4 Dedicated RAM, 3 Dedicated IPv4 Addresses, 4 CPU Cores (Intel Xeon), 5 Gbps DDoS Protection.

I have migrated my woocommerce website from shared hosting but noticed that the speed is almost the same and sometimes the shared hosting is faster!

I changed the max-memory limit to 512mb, max_execution_time: 300 and max_input_time:300 and the current php version 8.1. The website is new so I don’t have visitors yet and I checked the cpu monitor surprisingly showing 100% for the command: php-fpm: pool admin which I don't know what it is. Used ram 557mb, cached: 2.14gb and free 1.32

Also, I noticed in the Brute Force Monitor, there are 1441 failed login attempt just in 3 days. From 52ips. Should I block all these ips?

I am really sorry for asking too many things in one post and please let me know if that is not allowed so I won’t post more than a question per post.

Your support and help are really appreciated.
 
Hello,

I'm glad you've found replies from Richard and me useful.

You will be probably surprised to learn how much stay unnoticeable when you use a shared hosting. You will probably surprise more how much additional steps are required to run an own server the same stable as a good shared hosting.

Brute-force, HTTP flood, vulnerability scanners, and other kind of attacks might be a pain for new and old server owners. The attacks can cause server load increase and other issues, so you might use all possible tools to stop and prevent them. I'm not sure whether is there any actual manual or guide for new server owners. There was one on the forums I believe. I don't have a link.

Anyway, you are welcome. Feel free to ask questions and share your experience. Me as well as others will glad to help, whenever we have what to say and time.
 
Hello.
Thank you, I'm glad about that too. Fully agree with zEitEr here.

Just to answer one:
From 52ips. Should I block all these ips?
Most likely DA bruteforce monitor is already blocking them. Often there are a lot of attacks via multiple ip's.
And this can be a whole lot, so blocking all of hem mostly doesn't make much sense and can cause lots of resources.

So I hope you have the firewall CSF/LFD installed which normally is installed together with Directadmin. You can set some things there. Also which kind of attacks get which kind of blocks.
Personally I often only use temporary blocks for these kind of attach, because now you have 52 and tomorrow you can have 200 different other ones. ;)

And as said, feel free to ask questions, that's what's the forum's for.
 
Thank you @zEitEr & @Richard G ?

Currently, my main concern is the website's speed; it's significantly slower than my previous one, which was hosted on shared hosting. Please take a look at the attached screenshot.

I contacted the hosting provider, and they attempted to assist by installing some caching plugins to improve speed, but unfortunately, there was no improvement at all.

Could this sluggishness be due to the server, given that it's a budget hosting option at $21 per month?

Could anyone suggest ways to enhance the speed, please?
 

Attachments

  • 1.jpg
    1.jpg
    125 KB · Views: 69
  • 2.jpg
    2.jpg
    132.6 KB · Views: 73
Despite you didn't want other persons to help you , i will try to help you :)

1. I your server resources dedicated or simply oversold node ? (want to share your provider? )
2. 4 GB is not much these days, did you install an resource program like hetrixtools to monitor your resources ?
3. any speed/server resources test that you run on your VPS ?, if not you can use this test program
4. check you server connection speed with that tool and see if there an cap on your i/o or network speed
5, add blocklist in your CSF (csf.blocklists) to lower bad ip access to your VPS
6. when using wordpress, install Wordfence with firewall enabled an throttle login and page access
 
7.) It's a manage VPS, but did they create a swap space/partition and if yes how big? Because often they think "it's not needed" but in fact there are things which don't work as good as should be if it's not present. And especially with 4 GB RAM I would advise to have at least 2 GB swap.

@Active8 is joking a bit, because he knows you said "especially from" which (next to the lots of answers) ofcourse implies that there were also various others answering. But we tend to have some fun once a while, which is ofcourse why he put the smilie there. So just to be sure, the smilie really means he doesn't mean that strict seriously.
Which is a good thing, because I myself I'm not really good in investigate speed stuff . ;)
 
Despite you didn't want other persons to help you , i will try to help you :)

1. I your server resources dedicated or simply oversold node ? (want to share your provider? )
2. 4 GB is not much these days, did you install an resource program like hetrixtools to monitor your resources ?
3. any speed/server resources test that you run on your VPS ?, if not you can use this test program
4. check you server connection speed with that tool and see if there an cap on your i/o or network speed
5, add blocklist in your CSF (csf.blocklists) to lower bad ip access to your VPS
6. when using wordpress, install Wordfence with firewall enabled an throttle login and page access

Thank you @ Active8

Your support is really appreciated.

Is your server resources dedicated or simply oversold node ? (want to share your provider? )

I messaged you the link.


4 GB is not much these days, did you install an resource program like hetrixtools to monitor your resources?

I thought the performance would be 10 times better than the shared hosting as the price is 10 times more ?


any speed/server resources test that you run on your VPS ?, if not you can use this test program

I checked and there is no option to install any programme I will ask him to install these tools.


when using wordpress, install Wordfence with firewall enabled an throttle login and page access

It is already installed and no problems were found.

Thank you for your support
 
7.) It's a manage VPS, but did they create a swap space/partition and if yes how big? Because often they think "it's not needed" but in fact there are things which don't work as good as should be if it's not present. And especially with 4 GB RAM I would advise to have at least 2 GB swap.

@Active8 is joking a bit, because he knows you said "especially from" which (next to the lots of answers) ofcourse implies that there were also various others answering. But we tend to have some fun once a while, which is ofcourse why he put the smilie there. So just to be sure, the smilie really means he doesn't mean that strict seriously.
Which is a good thing, because I myself I'm not really good in investigate speed stuff . ;)
Thank you Rchard, yes there is 1gb swap but it is hardly any used.

I do appreciate anyone support but when I was searching last few days for some answers I found your comments in almost every post trying to help others?

Thanks to you and anyone helps
1713764738586.png
 
Currently, my main concern is the website's speed; it's significantly slower than my previous one, which was hosted on shared hosting. Please take a look at the attached screenshot.

The screenshots are useless without knowing the background. Time to first byte is a very unclear measure, there are too many things that can influence it: dns resolving, network speed and connectivity, server load and etc.

A shared hosting server might be a server with multi cores and 512GB RAM, running on NVMe disks and having a MySQL cluster. While for a VPS you've got what you have. It would be wrong thinking a VPS will necessary make your site running faster. This is a myth. Using VPS you might have more security and more resources. But it does not necessary guarantee a speed.

If you want to identify a bottle neck, then first of all you should compare how fast your server responds when you request a static file (HTML, JPG, CSS), then you check how fast you get a simple PHP script without SQL queries, and then you compare a response time from a WordPress site. And as soon as you have the 3 measures then you have a clue on where to dig further.

It is a bad idea to try and improve every single thing hoping it will make SQL queries with a lot of joins from tables with thousands items to work faster. I know my reply does not give direct steps on how to make the server to work faster. But nobody here can give them. All we can is to guess and offer things that helped us or other guys in the past.

I believe you should change your server provider or cancel their support plan. If you ordered a managed server and then tried to make the things by yourself, probably you've picked up a wrong hosting package. Of course a list of included works might differ, but still.

These are my thoughts, and I might sound not popular. But it will be at least my honest reply: there is no a magic pill.
 
4 GB is not much these days, did you install an resource program like hetrixtools to monitor your resources?

I thought the performance would be 10 times better than the shared hosting as the price is 10 times more ?

Like @zEitEr says it depends how your node/vps is setup/configured , that is why i have asked your to run the test program on your VPS (I have send you an PM how to do it)
 
I checked the cpu monitor surprisingly showing 100% for the command: php-fpm: pool admin which I don't know what it is.

Let's try and guess some, It might be:

- brute-force attacks on your woocommerce/wordpress site
- vulnerability scanners
- HTTP-flood
- search engines trying to reach old domains that used to be hosted on the IPs you've got now.
- old domains still point to the same IPs and attacks on them
- malware in your application
- other? Who knows?

OK, let's assume your site is under HTTP-flood or vulnerability scanners attacks.

If your home page of the site or a 404 error page is static or cached, then vulnerability scanners can not affect much your server load. If the mentioned pages list TOP 10 of goods from several categories, then who can imagine how heavy SQL queries are? And if vulnerability scanners hit a 404 page, then how much CPU/RAM will PHP consume to respond to them.

Caching plugins from wordpress might give no positive effect, if your pages use sessions and cookies. Such pages will most likely have a no-cache header, and skip caching.

And if your server CPU is overloaded, you will get slow pages load and too big TTFB.

So, again. We don't know your setup. And in order to help you, we need more details and information. There is still not a magic pill :cool:
 
Back
Top