New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Comments
You need to optimize whatever the hell you're running with php.
You'll have the same load, but more resources. Depending on the host, maximizing your CPU's could be grounds for service termination.
I forgot to say the load is not always height, only 3-4 hours daily is height.
I have KVM VPS with OVH.
EDIT:
I want to add that I have a good day's visits.
What’s happening in those 3-4 hours each day?
That's 3-4 hours a day It's time in my state when the "whole world" is free, this is about 20:00, 21:00, 22:00 in the evening, means when most people are free with time.
So, you didn't even bother checking to see what Apache is doing before posting a thread?
I did not understand you.
If I buy a VPS with 2 cpu, I will have a smaller load ?
not if whatever you're running through PHP is poorly written, or if you have a ton of traffic.
I think it's a traffic problem in my case. Now that it's in my state 2:25 AM in the morning look at my CPU load:
It looks like traffic is a problem.
Only way to tell is to check your access log if you have it set to log. Either way, if so whatever you run that is PHP is either not efficient, or it is just too much traffic for a small 1 core VPS. Might be worthwhile to update PHP if you're on an older version too.
use
top
maybe the steal time up to 99%
I mean it before it is just too much traffic for a small 1 core VPS
246 MB of resident memory for each Apache process is a lot. Have you tried running Apache with event instead of prefork to help prevent high memory?
I have optimized Apache with 'keep-alive'.
I think I have too many visits.
bump
What is the server doing? Check your access.log or error.log files and see what pages are being frequently accessed. Perhaps it's some automatic task (backups? optimization? caching?)
Are you running some sort of CMS or other pre-made platform?
What are your server specs? They might just be too low.
Upgrading to a better server could solve your stuff, but throwing more resources at badly optimized code it's not a good solution. Check your scripts.
I've looked at this case a bit and the problem is when I have a big web visit cpu load jump around 1.5 - 2.2
Normally it works around 0.40 - 0.70
At first, you don't know how to use a vps. I assume you host a live site there. DON'T.
Pay more and use a managed service. You can't handle even the basics, how do you expect to react when your server will be hacked, have a malicious code, your MySQL corrupts, your server collapse or start sending tons of spam or DDoS attacks?
Have you hardened your server? Did you disable root ssh access, did you setup keys, did you configure any firewall there?
A VPS is not just setting up something vesta on it and wait to work.
On topic now, your vps is probably weak to receive certain amount of traffic over a limit. I assume you have a CMS on it, probably Wordpress or something similar, with plugins. So, when you gain more visitors, they open a lot more of http pages and php-fpm instances than when the load is low.
Bottomline:
There are lot of things you can do to optimize your server. Can you understand what I wrote before? If not, move your site to a managed vps of, if this is too expensive for you, move it to a good shared hosting provider. You will have much more optimized performance, due to the optimized server, the usage of litespeed server, the caching etc. But again, you will have there also to optimize your site.
this! all of it.
probably just a poorly coded plugin that does too much ajax calls which utilize php/mysql for nothing.
but to answer the initial question: yes more cores probably will help to do the workload more parallel instead of queuing and therefore get things done more easily. upgrading to 2 or even better 4 core most likely will make quite difference. for a while.
still better to read and follow @jvnadr advice.
I heard scaleway has 4 cores for 7.99 ... though, they don't support
stupidpaypal :-PThank you for your answer first of all.
Every point you have written up above I know exactly what you are talking about.
My VPS server is optimized, I personally optimized it (apache, php, mysql, CDN).
As I have already written, the problem is that the vps is sometimes "small" becouse of lots of visits that I get at a certain time.
Sirius business needs to run on sirius hardware.
My hardware is 'OVH VPS'.
VPS is software.
Yes, Software located at Hardware
even though you are using less than half of your total memory; how is it possible you have 0 swap usage at 60 days with an active site? is mysql just for show?
If it is "optimized", then your last resource is to add a CPU core.
I have to go to better vps and that's all.
You have not answered even to one question: What kind of website do you use, what if any CDN, if caching and at what level etc. If you don't really want help, then, why the hell did you open this thread?
OK, I will give a last try:
It's not bad to have a lack of knowledge. It is bad when you are trying to tell in a technical forum that you have that knowledge, especially when it is a clear thing that you don't. Even more, when you are asking in your original post questions that is not even primary in hosting skills (e.g. if I add a core will the load fall).
And the worse thing would be if you really believe that you have knowledge and not admitting to yourself you don't!
This is the icing on the cake! You don't try to troubleshot your server but to hide the dust under the carpet. You may add a core or two, but soon enough, you will face same issues and your php will eat much more resources if you don't optimize your site and your server.
At the end, you can buy a dedicated beast with 24 cores and 64GB memory for a single website with some hundered of daily visitors, but this is equal of buying a skyscraper just to use its basement to park your Hyundai Atos 1100cc car in the area...
I wonder what this guy is on about. He refuses to send his own personal data, wants to use an anonymous vps, rejects anything that isn't PayPal and has a multi-tb website with such limited skills.
Are you hosting rojadirecta?
I do not know how to close this thread, I checked all the logs and concluded that I needed better VPS.
@jvnadr you do not know me, my knowledge own, so you can not write this:
"You don't really know what optimization is."
... and the same thing I can not tell you, it just would not be okay.
Related to VPS, I have a strong visit and VPS has only 1 vCore. I repeat my VPS is optimized: php, apache, mysql. I use Cloudflare (CDN) which I also maximally optimized.
There is not much more here, 1 core is a little for the visit which my VPS receives.
For Smart is enough !