S
S
Splite2015-09-20 12:20:30
linux
Splite, 2015-09-20 12:20:30

How to prevent linux server from freezing when there is not enough RAM/CPU?

Hello! I have been observing such a problem for quite a long time, several very resource-intensive java applications are running on the server, periodically the server completely hangs (does not respond via ssh, only a reboot by the host helps). There is no way to trace the problem, the hoster does not advise anything intelligible, there is nothing interesting in the logs. Is it possible that this is due to a lack of resources? What can be done?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
A
Armenian Radio, 2015-09-20
@gbg

How to find the cause of the server crash?
Do you naively believe that psychics have an astral vacation that lasts only a week?
All common phrases about finding glitches on the server have already been given to you.

V
Vladimir, 2015-09-20
@rostel

prevent "overeating" resources by setting limits for applications on memory and percent through Control Groups (cgroup)
an example of manually managing memory limits Protecting the
server from resource exhaustion using c...

R
ramjke, 2015-09-20
@ramjke

Similar to Out of memory. Are you sure there is nothing interesting in syslog?
How much free RAM is left after running all the necessary applications?
Try adding operators.

A
Alexey Cheremisin, 2015-09-20
@leahch

Set limits, let the processes be shot by the system, and then you will understand what is happening by the core files. As long as the processes don't go into swap. Well, it won't hurt to profile your applications, and set up some kind of monitoring, like collectd + influxdb + grafana

A
angry_cellophane, 2015-09-20
@angry_cellophane

Try looking at sar logs: cpu, memory, io, network. Determine the root cause first, it's premature to talk about the lack of memory.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question