Questions tagged [memory-usage]
The amount of memory required by a program or the system for a specific task.
617 questions
0 votes
1 answer
286 views
+50
System under memory pressure with high MemAvail
I am struggling with an issue which occurs about once a month. Basically we see low free memory, high avail memory and logs about memory pressure in syslog. System then becomes unresponsive and reboot ...
1 vote
2 answers
137 views
How to log most memory-consumed processes every x minutes?
I manage for our lab a computational server (Ubuntu 22.04) and our JupyterLab instance is often oom-killed. How can I log in a file the most memory intensive processes at each time step (e.g. evey 5 ...
3 votes
1 answer
155 views
Migrating ancient Linux system to newer kernel
so I just began a new job as a IT System Engineer and we have a ancient Linux system with kernel version 2.4.21 running. The distro is United Linux 1.0 which was a project of some big players in Linux ...
0 votes
0 answers
163 views
PHP FPM and Apache memory leak on Ubuntu 22 VM
I manage a high-traffic(1200 request per min), large-scale WordPress website with a dedicated MySQL server. The server has 32GB RAM and a 16-core CPU ubuntu 22.04 LTS. I've configured Apache and PHP-...
3 votes
1 answer
800 views
Proxmox VM with 32 GB RAM out of memory with 30 GB 'available'
We have an issue with a Proxmox VM (Ubuntu 24.04.2 LTS) running a dockerized Atlassian Bamboo build agent. Over time, usually after a couple of builds, RAM usage increases even though all build ...
0 votes
2 answers
96 views
Apache httpd processes use a lot of memory (using php)
We run an apache 2.4.6 with php 5.4.16 on CentOS. The php stack is using apc 3.1.13 with an apc.shm_size of 32MB. The apache is configured like this: Timeout 120 KeepAlive Off MaxKeepAliveRequests 0 ...
0 votes
1 answer
138 views
Understanding Early memory node ranges
I recently upgraded an old CentOS 7 server at AWS to a Rocky 9 server. The old t2.micro (x86 architecture) server reported a single 1G node under Early memory node ranges. About 92MB of RAM was held ...
1 vote
1 answer
202 views
apache2 out of memory when serving large static files
I am running an apache2 server with several virtual hosts. I run it on a rather resource constrained raspberry pi 4. In particular RAM is very tight (4GB). There isn't a whole lot of traffic, I mainly ...
1 vote
0 answers
124 views
pm2 frontend process restarts how to debug
We have a server running on CENTOS and as stack we use VUE3 with Nodejs, NUXT and EXPRESS js Pm2 is also used for process management The server has been running for a couple of years but lately we've ...
0 votes
0 answers
63 views
Convertingt top custom command for memory usage by processes to AIX
I wrote a custom shell command using the top command, in order of getting the sum memory usage for all the processes of a given program (for example java*, mongodb*, etc..) in a Linux based servers: ...
0 votes
1 answer
303 views
unattended-upgr causing my EC2 instance to become unresponsive and terminate
I'm running a service inside a Docker container on a t4g.nano instance (with 512 MB RAM). My services typically use around 65% of memory, and they seem to be running fine most of the time, however, ...
0 votes
1 answer
231 views
Why is screen using lots of memory over time?
From time to time I find that a Digitalocean server gets slower, had low memory... $ free -h total used free shared buff/cache available Mem: 985M ...
0 votes
0 answers
225 views
Ubuntu 20.04 - How to find out how memory is used
I have an Ubuntu server I use to run a web application through Docker. The image below shows the memory consumption (top—o %MEM) of the server with NO DOCKER CONTAINERS RUNNING. So, besides the memory ...
1 vote
1 answer
329 views
Discrepancy between kubernetes node memory stats and system memory usage
Kubernetes spits memory limit warnings at me, even though the memory of the node is not exhausted in any measure - neither by kubernetes stastics and even less by system statistics: root@ftt:local-...
1 vote
0 answers
632 views
Free disk space of Zabbix server is less than 20% on volume /var/lib
Zabbix server's /var/lib free disk space is running low: Checking the server, the ibdata1 file is causing the problem: How can I fix this? Additional question: The file named kcore is huge. What is ...
0 votes
0 answers
89 views
OOM killing programs when used memory is at 30%
I am getting a bit crazy about this one: I am getting quite often processes killed by the kernel because of OOM. I see that free reports 14 GB used out of 14 GB, but when I add up the RSS of all the ...
0 votes
3 answers
522 views
How do I reserve Debian 12 Memory for kernel and for XFCE desktop to prevent out of memory errors?
on debian 12 CAN NOT PREVENT terminal python program from crashing desktop grub command GRUB_CMDLINE_LINUX="quiet splash memmap=15G$10G" sudo update-grub wrote these scripts #!/bin/bash # ...
1 vote
0 answers
35 views
Can memory compaction cause a high perceived memory usage?
This is a bit of a long shot, but we're currently experiencing some issues with one of our Dockerized Java applications: Stackoverlow question We've set the docker memory limit to 2GB, which is way ...
1 vote
1 answer
838 views
Discover process that exhausted my memory and CPU limits on Ubuntu
I have a DigitalOcean droplet running Ubuntu 22.04.2 LTS (GNU/Linux 5.15.0-89-generic x86_64). My website went down at approximately Fri Dec 01 6:48 AM GMT. From var/log/apache2/access.log, I ...
3 votes
1 answer
3k views
optimizing PHP-FPM and Apache conf - how much RAM is actually used by each process?
I am preparing a new server (v5) to replace one that I currently have in production (v4). These machines run Ubuntu. The v5 server has PHP-FPM 8.2 and Apache 2.4.52 in mpm_event mode. I recall from ...
0 votes
1 answer
54 views
Pin point performance issue in the past
I experienced a decrease of performance on my server and I was wondering if there is a possibility to lookback in time on a rhel8 machine. Where I can pinpoint which process claimed a lot of resources ...
12 votes
2 answers
4k views
Limit the RAM available to RHEL8
We have some tests we need to run in a server with 32Gb RAM. All the servers we have access to have 64GB and we can't physically change this. Is there some way of telling RHEL to use only some fixed ...
0 votes
0 answers
472 views
How to isolate Docker containers so that they are not sharing memory from a shared object / dynamic library?
I have a third party application that our pipeline runs on a a build server, within a dedicated Docker container, spun up fresh each time, just for this job. The application is very memory & CPU ...
0 votes
1 answer
1k views
which memory limit applies when php performs a MySQL query
If I run php as FPM, I can set my memory limit in php.ini or .user.ini. PHP can perform a MySQL query, and I can set memory limits in /etc/my.cnf for for instance the innodb buffer pool. If PHP runs ...
1 vote
1 answer
2k views
High process memory usage (VmRSS) on rocky 8 vs. centos 7.7 for essentially everything
We're migrating some servers from centos 7.7ish to Rocky linux 8, and we're finding just about every process is using 20-50% more memory, causing machines to lock up. For example, sh on centos: # sh -...
0 votes
1 answer
4k views
PHP-fpm consuming most memory
My Memory and swap memory is being used mostly by php-fpm which results in slow response from server. below is the output of top command. Kindly suggest Also my php-fpm conf file settings are as ...
1 vote
1 answer
541 views
Linux: How to check total number of bytes written to memory by a process
Note: I know about the commands like top but I am interested in knowing the number of bytes written to memory and also rewrites (number of times storing to the memory happened)
1 vote
1 answer
872 views
Process memory-usage mismatch in a Kubernetes sidecar container
I have a sidecar container with the following resources: resources: limits: memory: 512Mi requests: memory: 64Mi However, when I run top, I see this: envoy & pilot-agent seem to be ...
0 votes
2 answers
136 views
Varnish 6 bans_persisted_bytes ballooning, but memory usage is fine
In a Varnish 6 server I'm responsible for, there are short bursts of very many bans. These are the result of an application I am not able to modify. This has caused RAM usage to very quickly balloon ...
0 votes
1 answer
2k views
Using `top` command shows PHP FPM processes using more memory than available
I've read this answer about understanding top, as well as man top, but I think I still have trouble turning the presented data from top into actual information. I'm logged on an Amazon EC2 instance ...
0 votes
1 answer
147 views
Do I need more memory?
I am running a website from an AWS EC2 instance (potentially multiple via Elastic Beanstalk) which over the last 24 hours shows memory percentage used consistently at 60 percent baseline, climbing to ...
0 votes
1 answer
608 views
Identifying source of memory drain on Windows Server 2019
Every Saturday night around midnight the server in question experiences a sudden loss of available memory. Over the course of about 35-40 minutes the available memory drops until the OS is unable to ...
0 votes
2 answers
1k views
High iowait, swap nearly always fully in use
I'm often experiencing slowness on a large server that is used by several users simultaneously, with many CPUs (72) and a decent amount of ram (125gb). Granted, the server runs a lot of stuff so gets ...
0 votes
1 answer
1k views
DIMM cards + what is the meaning of - Configured Clock Speed
we add the following DIMM card in our DELL server ( 16G memory ) , OS is RHEL 7.6 version as we can see the speed is - 2400MHz but the - Configured Clock Speed: is only 1866MHz so I guess that value ...
1 vote
3 answers
7k views
How to monitor memory usage continuously with Linux?
I have a daemon service application runing a Ubuntu server(20.04.1). The total phisical memory is 2G, and the swap space is 4G. Sometime my service was killed by OS quietly, eventhough I add ...
2 votes
1 answer
5k views
Limit php-fpm memory usage on a constrained server
I "move" this question from superuser as I think it's more appropiate here. I've actually found sort-of duplicate questions, but none has solved my problem. General scope I have a Nextcloud (...
0 votes
1 answer
5k views
Why does writing to a workbook of a few MB with Python's openpyxl module eat Gigabytes of RAM?
I found an old code on a legacy server that writes from a dataset of roughly 20 columns and >60K rows item by item to an Excel file using openpyxl. It does this by filling each cell on its own (the ...
7 votes
2 answers
6k views
High swap usage on Ubuntu server
This is what the free command reports on a server that is running a Spring Boot application behind an Nginx reverse proxy: $ free -h total used free shared buff/...
1 vote
1 answer
451 views
Why is my server's RAM usage growing all day, then dropping at midnight?
My server has started showing new behavior with regard to memory usage. It used to stay steadily around 40% usage, but now it steadily rises up all day, reaches about 58% at midnight, then instantly ...
1 vote
1 answer
6k views
PHP FPM cycles causing huge RAM consumption
A couple of ubuntu servers, using php8.0 / php8.1, with NGINX as a webserver, causing the problem, that my memory is filling up - based on the incoming traffic (req/s), so i have to restart the fpm ...
2 votes
1 answer
552 views
oom_reaper: MongoDb out of memory
We run a small mongodb replica set on three bare metal servers (no virtualization, no docker/kubernetes) with Debian 11 and mongodb 5.0.6: machineA: 128GB RAM, 1TB disk, PRIMARY machineB: 128GB RAM, ...
0 votes
1 answer
1k views
Where is my RAM? Memory leak?
I have a bunch of servers. It's a mix of baremetal, VMs. All running Ubuntu Bionic. This issue has been observed on both types. FYI, I have read similar questions and I've read the answers. I believe ...
3 votes
2 answers
20k views
Free up memory in Windows Server 2019 for SQL Server instance?
We have Windows Server 2019 Standard (x64) with 64GB memory. The screenshot below shows the memory usage at 96% with the SQL Server Windows NT running and using 344.5 MB. This is the Task Manager ...
1 vote
0 answers
1k views
Memory usage: big difference in `free -m` and htop as well calculation of used memory in htop compared from /proc/meminfo
I'm aware of this question https://stackoverflow.com/questions/41224738/how-to-calculate-system-memory-usage-from-proc-meminfo-like-htop Answer seems outdated regarding memory usage and this question ...
0 votes
1 answer
2k views
Determine how many memory each process use - Windows
On a Windows 2019 server equiped with 24 GiB of memory, only about 1 GiB is free. But when I use Task Manager or Process Explorer, no process use more than some MiB. If I add the memory used by each ...
0 votes
1 answer
732 views
Nagios check_nt MEMUSAGE average
there is a method to check the memory (RAM) usage by the average in windows? (Like CPULOAD -l minutes)
1 vote
1 answer
6k views
How can I see the memory content of nginx process?
Nginx 1.20.1 server working as a reverse proxy consuming a lot o memory and making the service stop requiring a system reboot. ModSecurity library is also configured on Nginx. You can see in the next ...
0 votes
2 answers
943 views
MySQL "Cannot allocate memory for the buffer pool" at 73% memory usage?
I am hosting a WordPress website on a DigitalOcean droplet (1GB RAM). The website's MySQL database crashes occasionally, which causes the website to show "Error establishing database connection&...
1 vote
1 answer
5k views
How does memory and memoryReservation work for Tasks running on EC2 ECS?
EC2 ECS lets you specify memory and memoryReservation for both ECS tasks and the containers running within those tasks. I understand that memory and memoryReservation on the container settings map to ...
4 votes
2 answers
10k views
Limiting ARC Size for the proposed system
I have a pool of 5 x enterprise 12Gps SSD that I use for internal storage for a proxmox server. This pool is used to stand up VMs and containers. The problem is that it is eating up a lot of my ...