Answer the question
In order to leave comments, you need to log in
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
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.
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...
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.
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
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 questionAsk a Question
731 491 924 answers to any question