Answer the question
In order to leave comments, you need to log in
Why does Linux hang when there is a large load on RAM?
Actually, straight to the point.
There is a laptop: intel core i3, 3 GB RAM, amd 5000 series 1 GB.
When working on any distribution kit with active use of java (development for android in android studio), there comes a moment when everything freezes, including the cursor. In the console mode on ctrl + alt + f№ does not go out. Such situation that on x86 that on x64. Swap is connected to 2 GB.
The question is rather theoretical, why is linux not provided (or not included, or something else) to clean up applications that "put down" the system?
In the same Windows XP, there was such a problem when the player could stop life on the screen for several minutes, and with the release of the seven, everything became normal, well, at least you can close the heavy process.
I don’t see the point in laying out the logs, since everything is similar on ubuntu distributions and the like, as well as on arch.
Answer the question
In order to leave comments, you need to log in
12309 - old fun.
Until you put the SSD on the root and swap, you won’t get away from this problem!
And yes, I advise you to read about oom-killer. Everything is in Linux. It's just that the oom-killer rarely manages to kill the glutton. More often, the system gets up to death like a wedge (I had this very often) and only RESET helps.
When there is not enough memory, the kernel starts swapping, and disk operations are very slow = everything falls apart. As for the "automatic kill" - how will it help you if it kills android studio;)
Tip: buy more memory if you work with Java - once. Google about application settings - two. I'm under PyCharm myself it has a settings file pycharm.vmoptions and there the magic is:
-server
-Xms128m
-Xmx512m
-XX:MaxPermSize=250m
-XX:ReservedCodeCacheSize=150m
-ea
-Dsun.io.useCanonCaches=false
-Djava.net.preferIPv4Stack =true
-Djsse.enableSNIExtension=false
-XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=50
-Dawt.useSystemAAFontSettings=lcd
-Xms128m
-Xmx512m
These are responsible for the amount of memory used.
I got up dead on my laptop with Intel guts on 16.04, and searched for a problem for a long time until I found this: ... “If it hangs tightly on distra higher than 14.04.3, then 99% that this is due to Intel graphics. I had regular freezes after 20 - 40 - 90 min. It was decided so sudo gedit /etc/default/grub bring the line GRUB_MDLINE_LINUX_DEFAULT to the following form (if nothing was added) GRUB_CMDLINE_LINUX_DEFAULT="quiet splash intel_idle.max_cstate=1" Save, close. sudo update-grub And reboot. The problem should disappear if Intel HD is to blame. "... IT HELPED ME. I specifically drove for a week without reloading the video in the chrome browser.
anonymous (06/30/17 05:54:02)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question