Why Linux free memory is not just the ‘free’ of ‘-/+ buffers/cache’ [duplicate]

This question already has answers here: Why is Linux reporting “free” memory strangely? (3 answers) Closed 5 years ago. I learned and always think that linux free memory is the “free” of “-/+ buffers/cache” You can get this knowledge from lots of website. Meaning of the buffers/cache line in the output of free http://www.linuxatemyram.com/ [root@dev001 … Read more

408 errors from apache, “fork: cannot allocate memory” from dhclient and sshd

For the last three nights in a row, I’ve had an EC2 server start to give 408 errors in response to web requests. When I come in in the morning, I can’t ssh in; I have to reboot using the management console. Both dhclient and sshd are giving error messages that say “fork: Cannot allocate … Read more

Server appears to have little free memory despite apparent low memory usage in userspace

A Linux server I administer has been experiencing serious performance degradations as of late, becoming particularly apparent several weeks after each time it is rebooted. In particular Jenkins jobs allocated to the machine begin timing out several weeks after reboot, at which point all execution is sluggish, for example ssh requiring 10-15 seconds to connect … Read more

Tomcat 7 server experiencing a sudden (order of magnitude) increase of the Young GC frequency after upgrade of Ubuntu and OpenJDK

What is the issue? After upgrading instances to Ubuntu 16.04 LTS and OpenJDK 8 the GC frequency can, after hours of normal operation, suddenly increase by orders of magnitude ending up using less than 10% of the HEAP. We have analyzed the GC logs and can find nothing strange except the frequency increase. Even gceasy.io … Read more

Elastic Search using a lot of memory despite low heap size

We have configured Elastic Search JVM options /etc/elasticsearch/jvm.options to use a fixed heap size of -Xms512m -Xmx512m This can be confirmed as working when checking the Elastic Search process: However you’ll notice that it’s still using 835M of memory. If we check the actual used heap size with ES: root: curl -sS -XGET “localhost:9200/_cat/nodes?h=heap*&v” heap.current … Read more

IIS Application Pool taking too much memory

We have IIS running on two servers (IIS8 and 10), and encounter very high memory usage of our ASP.NET WebForms Applications lately, mostly accessed through aspx pages. What happens is that over time, our application pools consume more and more memory, until the physical memory on the server (64GB) is nearly exhausted. This is definitely … Read more

Out of memory in Linux server killing my tomcat server

From last night I am getting below unexpected behaviour. Out of memory: Kill process 1740 (java) score 128 or sacrifice child Apr 8 19:14:20 ubuntu-s-4vcpu-8gb-sgp1-01 kernel: [17644.393549] Out of memory: Kill process 1740 (java) score 128 or sacrifice child Apr 8 19:14:20 ubuntu-s-4vcpu-8gb-sgp1-01 kernel: [17644.395444] Killed process 1740 (java) total-vm:5739256kB, anon-rss:1083164kB, file-rss:0kB, shmem-rss:0kB Apr 8 … Read more

Memory usage doesn’t add up: most of the RAM gone mysteriously

I have a Fedora 30 [5.6.13-100.fc30.x86_64] machine with 32GB of RAM onboard. Right after boot both free -h and htop indicate that 21-22GB is used: [ andriim@dev-r-vrt-007 ~/work ] $ free -h total used free shared buff/cache available Mem: 31Gi 22Gi 6.1Gi 2.0Mi 3.2Gi 8.8Gi Swap: 2.0Gi 344Mi 1.6Gi At the same time, all of … Read more