Answer the question
In order to leave comments, you need to log in
VDS - is it really that bad?
Hello.
I've been renting VDS for a little over a month. KVM, 1 Core, 1GB RAM, 40GB SSD, CentOS 6.7, Vesta CP, 3 sites, one of them has 30 aliases, everything is cached.
Visually - sites work quickly. But, in principle, I cannot be sure at any time that the server is running.
And that's why
I go every 2-3 days to restart the server, because. there is a memory overflow and it simply does not respond.
Before that I was on a regular hosting, the same load never caused any problems.
With linux, this is the first experience. Are there any ready-made VDS builds for hosting 5-10 sites in which you don’t have to go into php.ini and manually write pretty obvious things (caching, etc.) - and then, I know this, because. I started looking myself. And so - in principle, not an obvious problem.
ps - this is a graph of memory for a month - breaks after peaks - my reboots, if not them - the server would have been lying
around
ulimit -m unlimited - this was the case. Infinite memory for the process...
the same for -s...
===
in general, I'm requesting a universal image for VDS - installed, launched and no need to worry about limits, leaks and other garbage. After all, it is clear that on 99% of such servers the settings are approximately the same ...
Answer the question
In order to leave comments, you need to log in
Hire an admin who will set everything up for you as it should.
Now you can only wang, what, yes, how does it work for you there.
The question is not for VDS, but for your application, what does it do with memory that fills it completely and does not clear it.
I have so:
100% that you do not have swap enabled (on VPS providers known to me, this is exactly the case).
Give the free command and show the output.
####@#####:/# free
total used free shared buffers cached
Mem: 1015040 433016 582024 20764 175448 125408
-/+ buffers/cache: 132160 882880
Swap: 1045500 0 1045500
If swap: 0 then here is the instruction - https://bekhterev.me/?p=41 (tested for Debian, unlikely to be different from Ubuntu)
Let's start with the fact that, in addition to the axis itself, you have versions of mysql, apache, nginx
, php, how it all works, show the configuration files, etc. to understand this, you need to see the apache config from the perfwork sections. If you have nginx then there is a different story. How PHP is set up, what it has in its conf, the sizes of SQL databases, how mysql is configured, etc.
In any case, now we are talking about air, since there are no universal assemblies, and in any even the most configured VPS, you will have to edit something manually + a lot of software that you will never need! Therefore, why have a hemorrhoid and a potential sieve on the head, if it is easier to raise the server from scratch, including all the most necessary and optimizing for the available resources.
Reduce memory consumption in application settings.
Or change the VDS tariff to add memory to you.
1G might just not be enough if you have something complex there.
I have 4-8 G as a rule on the server.
in general, I'm requesting a universal image for VDS...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question