V
V
VANY2016-06-16 11:11:40
Network administration
VANY, 2016-06-16 11:11:40

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
89dc5f9293a24fa6af24979567ed80e6.png
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
8840891804b64675a52f4b8a6f03c432.png
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

7 answer(s)
A
Alexander Taratin, 2016-06-16
@Taraflex

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.

S
safenoob, 2016-06-16
@safenoob

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:
59c3f8d35dbb443a95fdee43815019c8.png

E
Eugene, 2016-06-16
@misant

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)

S
Sergey, 2016-06-16
@hamnsk


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.

Q
qazqazasda, 2016-06-16
@qazqazasda

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.

S
Serdonda, 2016-06-17
@Serdonda

in general, I'm requesting a universal image for VDS...

It cannot be universal in principle - vds / vps is essentially just a server (hardware), which you must configure yourself, install the software as you need for your tasks.
If you do not understand / do not want to deal with the settings - then do not suffer, go back to shared hosting. Or hire an admin who will install everything you need and how you need it on the VDS.

V
Vlad Zhivotnev, 2016-06-17
@inkvizitor68sl

Say hello to the new maple PHP7?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question