S
S
StanleyShilow2018-10-21 01:45:59
Django
StanleyShilow, 2018-10-21 01:45:59

What to do with lack of RAM on VPS(REG.ru) / nginx, uwsgi, django?

Friends, hello everyone! I launched such an average site on python, uploaded it to vps (512MB) ubuntu16.04. Everything would be fine, but I constantly receive notifications about the lack of RAM. The top says that one process was stopped, and the logs come with the following content:
Oct 20 21:05:39 ovzhost20 kernel: [7368165.373630] Out of memory in UB 39905529: OOM
killed process 141847 (uwsgi) score 0 vm:195944kB, rss: 52656kB, swap:0kB Have
n't dealt with administration yet and am unsatisfied with my guesses about this bug.
I would be grateful to anyone who can help me somehow to solve this problem. Thank you and have a great day!

Answer the question

In order to leave comments, you need to log in

5 answer(s)
B
Boris Syomov, 2018-10-21
@kotomyava

It is necessary to take a VPS with more memory and / or limit the number of processes that uwsgi spawns.

K
klepiku, 2018-10-21
@klepiku

exit 2
1 increase vps
2 optimize, remove unnecessary
see autoload

A
Alexander, 2018-10-21
@sxq

maybe just create/grow a swap file with at least 2 times the physical memory?

D
Dimonchik, 2018-10-21
@dimonchik2013

change provider

S
StanleyShilow, 2018-10-21
@StanleyShilow

Comrades! There 512MB is it really not enough? Something tells me that it is better to score on all the bolt and wait until everything falls ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question