I was trying to monitor memory consumption of a Spring Based microservice. I built the image using amazon-corretto:8-alpine-jre image. I then monitored the pod memory consumption using Prometheus-Grafana. Also, I started a separate container with the image and monitored it using Google cAdvisor. I applied load through Jmeter script with 200threads for 500 iterations To ..
I’m running a dockerised node.js application on my server, using the –max-old-space-size option to limit the applications heap size. The following output is given by htop: PID USER PRI NI VIRT RES SHR S CPU% MEM% TIME+ Command 10158 root 20 0 4284 720 644 S 0.0 0.0 0:00.00 sh -c node –max-old-space-size=512 ./dist/www.js 10159 ..
I have a Docker container running MongoDB which is running really slowly. The Db is about 5-6m documents, single collection, total size (from Compass) of about 75Gb. Its running on a Windows Server with 96Gb allocated, and Docker has 32Gb allocated, but the container is showing memory usage of only 60Mb. Resource Monitor has a ..
How to dedicate certain amount of RAM to specific docker container on ubuntu, so that in case when other processes overload the RAM, that docker container would not run into memory issues? Source: Docker..
I have a requirement to process a file based on some validations. To complete the validations it can take upto 5 minutes. What is the best approach to handle the file till the validation is complete. Is it ok to hold it in memory for that longer? Average file size would be 5-10 MB. The ..
I am working on a C# .net core application that is deployed on docker server and uses MySQL DB. We have a large data (320 MiB) that I need to cache in memory when the application starts so that we can minimize the db calls to fetch that and improve the response time. For this ..
I’m using portainer 1.24.1 to manage my containers, but I’m having an issue due to the OOM Kill from the Kernel that is killing a few of my threads and compromising the application. I need to use the flags –oom-kill-disable -m –memory-swap to limit the memory usage of a specific container, so (I hope) kernel ..
I’m using the RabbitMQ management docker image. The issue is after around 1 week uptime, the disk space and the memory gets almost drained. I need to again terminate and restart it to function normally, but by doing so, all the existing messages in the queues are lost. Command I use to start the rabbitmq ..
I am currently running a docker image on Linux, where I am supposed to compose videos together thanks to moviepy. Because I work with lots of videos, the process becomes quickly quite heavy to bear. I came to a point where it did not work anymore, with an exit code 137, but with OOM flag ..
I have VM with 8GB of memory (Terraformed), on which there are 2 Docker containers: a minimal metrics exporter, of 32MB a Bitnami Postgres12 container with my database. The data has been fully loaded, however during the import I got stuck on a CREATE INDEX statement that adds a simple hash(ID) index to a table ..