8,248 questions
-5
votes
0
answers
38
views
Memory management in Kubernetes [closed]
I'm running a cluster in AWS (EKS).
I'm experiencing an issue with a pod hosting an import service (Python FastAPI endpoint).
The pod restarts upon file import.
Reason : OOMKilled - exit code: 137
The ...
0
votes
0
answers
25
views
How to avoid stopping all processes that started by one systemd service when OOM happens?
In my evn, some child processes are started by one systemd service, if there is something wrong with one child process and OOM is triggered by it, all the processes (all the child processes and the ...
-5
votes
1
answer
94
views
Leetcode 68 : memory limit exceeded [closed]
I'm using Java to solve Leetcode 68: Text Justification problem (https://leetcode.com/problems/text-justification/description/)
Given 3 test cases are passing well but for the next text case,
words = [...
1
vote
1
answer
106
views
Filament PHP: Memory exhausted when selecting all table records (500k+ rows) - How to limit or optimize?
I'm using Filament PHP v3 with Laravel and have a table that can contain 500,000+ user records. When users click the "Select All" button the application crashes with a memory exhausted error:...
0
votes
0
answers
91
views
Spark OutOfMemoryError when reading large JSON file (3.5GB) as wholeText due to colon in path
I’m trying to load JSON data into an Iceberg table. The source files are named with timestamps that include colons (:), so I need to read them as plain text first. Additionally, each file is in a ...
1
vote
0
answers
107
views
How to lazy load jsonl file
I am trying to build a pytorch Dataset based on some .jsonl files. The size of each .jsonl file is about 2GB, and I have 50 such files. Therefore, it would be not very practical to load all these ...
0
votes
0
answers
57
views
React Native Android App Crashes with OutOfMemoryError – Infinite Navigation Loop in Sentry Logs
React native 0.76.6 (old architecture)
React Navigation v7
My React Native app crashes on Android with java.lang.OutOfMemoryError, but works fine on iOS. Sentry logs reveal a breadcrumb loop like:
// ...
1
vote
0
answers
182
views
Why can out-of-memory conditions lead to access violations and stack overflows?
The following code uses Process Governor to restrict its memory use to 1 MB. It then allocates several megabytes of memory in a vector of strings, so I expect std::bad_alloc to be thrown (in strings....
0
votes
0
answers
45
views
Karate UI tests failing with connection refused and exit code 137 when running Chrome
I’m running Karate UI tests (Karate 1.5) with type: 'chrome'.
The non-UI (API) tests run fine, but the UI-based tests frequently fail with:
[WARN] [com.intuit.karate.shell.Command.run] - exit code was ...
3
votes
0
answers
100
views
JSchemaValidatingReader - OOM when handling large tokens
We have encountered some memory issues when validating JSON.
We are using:
Newtensoft.Json v 13.0.3
Newtonsoft.Json.Schema 4.0.1
.NET 9.0.304
For validation we have this code:
var validationResult = ...
2
votes
2
answers
571
views
How to release memory of intermediate Python-Polars DataFrames in a large dependency graph?
I am performing operations on a directed acyclic graph (DAG) of DataFrames using Polars (eager API).
Here’s a simplified example of my workflow:
Read parquet files into df1.
Use df1 to create df2 and ...
0
votes
0
answers
75
views
Getting java.lang.OutOfMemoryError: Java heap space with org.eclipse.paho.mqttv5.client.internal.ClientState
Memory Dump Screenshot
When I run my springboot app for some time, I get java.lang.OutOfMemoryError: Java heap space
Seems that the size of org.eclipse.paho.mqttv5.client.internal.ClientState keep ...
0
votes
1
answer
150
views
Java 17: Metaspace (data) allocation failure in GC log without a java.lang.OutOfMemoryError: Metaspace
I am seeing the below in the GC log before the JVM pauses for several minutes after which it gets restarted externally.
[2025-07-18T18:08:42.605-0600][info][gc,metaspace,freelist,oom] Metaspace (data) ...
1
vote
0
answers
131
views
How to preload videos using BetterPlayer controllers in Flutter for a video reels project?
I'm building a Flutter short video app (like Instagram Reels or TikTok) using BetterPlayer.
I want to improve the video playback performance by: Preloading the next 5 and previous 2 videos.
When I ...
0
votes
0
answers
72
views
For memory crunch, should malloc return 0 or OS issue SIGKILL? [duplicate]
I am trying to write a C program that should fail due to memory crunch. It just keeps on malloc-ing without free-ing. After each malloc I check if the returned value is zero. If so, I stop with a &...
2
votes
1
answer
151
views
osmnx out of memory if run with ox.setting.overpass_settings=f"[out:json][timeout:{ox.settings.requests_timeout}][date:\"{date}\"]"
I found that
ox.setting.overpass_settings=f"[out:json][timeout:{ox.settings.requests_timeout}][date:\"{date}\"]"
easily create an out of memory error from overpass API.
here a ...
0
votes
0
answers
36
views
Understand .NET memory usage pattern in docker - GC vs RSS vs Cache
I am running a .NET 8 application inside a Linux container on Kubernetes and monitoring it with Grafana. The pod has a memory request and limit set to 256 MiB.
I see that the memory is at 90+ percent ...
0
votes
0
answers
77
views
How to parse a BIG JSON with kotlinx.serialization in Compose Multiplatform
I have found such kinds of error while calling Web Apis when json response is too large.
Throwing OutOfMemoryError "Failed to allocate a 104643040 byte allocation with 25165824 free bytes and ...
2
votes
1
answer
127
views
Using arrays to move large data in Excel VBA: how to find the memory leak in my macro?
In Excel, I am attempting to copy/paste a large range of data (~22,000 rows x 36 columns). My Excel is crashing when I just try to copy/paste manually, so I created a macro to move the data using ...
0
votes
1
answer
44
views
Query Times: process memory used 48.26 GB exceed limit 50.21 GB or sys available memory 1.54 GB less than low water mark 1.60 GB
when I execute a not complex SQL in apache Doris, I get the error as the title, what should I do to avoid this error?
my apache doris version is 2.1.5 and I have 3 FEs with 3 BEs, each BE node has ...
0
votes
0
answers
76
views
ThrottlingInflightRoutePolicy is not working in camel throwing OutOfMemoryError when using aggregate EIP
ThrottlingInflightRoutePolicy routePolicy = new ThrottlingInflightRoutePolicy();
routePolicy.setMaxInflightExchanges(20);
routePolicy.setResumePercentOfMax(70);
from("jms:...
1
vote
1
answer
52
views
osmnx: how to access log messages when retrieve features in python?
I would like to intercept a specific log coming from overpass api and perform a retry of the function. When using
import osmnx as ox
ox.settings.log_console = True
I see the messages i.e. :
2025-05-...
1
vote
1
answer
193
views
oom error from docker container possible causes
I am experiencing an issue at my company's application where a docker container has memory that continues to grow until an OOM error occur and the container restarts. It seems to indicate there is a ...
0
votes
1
answer
104
views
Spring boot multi-module gradle project - integration tests throwing java.lang.outOfMemory error
I have a big Spring Boot aplication composed of multiple micro services using Gradle buildSrc. It contains a lot of tests seperated into seperate tasks (unit, integration, acceptance...).
These tests ...
1
vote
0
answers
54
views
Weird RAM overload with Async Task on ARM32 - Android API 27
After finishing developing the App in MAUI, I tested it for the first time on an older device: Motorola e5 Play (2 GB RAM) - Android 8.1 Oreo. When opening the App, around 300 MB of memory is ...
0
votes
1
answer
78
views
"OOMKilled" and "CrashLoopBackOff" errors deploying Cassandra on Minikube
Previously I had 32GB RAM on my laptop and could deploy Cassandra with the following .yaml file and no issues on a 3-nodes Minikube cluster, each node had an 8GB RAM:
apiVersion: v1
kind: Service
...
1
vote
0
answers
220
views
dealing with reading/writing large files inside a k8s pod with a memory limit
I have several applications that run inside a k8s pod, where the pod has a specific memory limit.
I noticed that if i run a python script that deal with a large file, e.g: unzip a large file example....
0
votes
0
answers
97
views
Memory issue: Numpy large scale array assignment
I try to pre-allocate a numpy array, and then assign the value by iteration
Buffer = np.zeros((1024, 120, 90, 3), dtype=np.uint8)
for i in range(8192):
print(f"{i} Memory Usage: {psutil....
1
vote
1
answer
50
views
Oom-kill event by cgroup when using grid search with cross-validation for training LSTM with Keras
I´m training LSTM models and doing grid search with cross-validation (10 kfolds per model), using parallel processes with MPI on SLURM environment. I'm using CPUs (not tried cuda yet) and getting the ...
0
votes
0
answers
92
views
Delphi 10.4 Initiated VBA code - not able to debug - fails with Out of memory
I have recently upgraded my application from Delphi 7 to Delphi 10.4. My application launches VBA 6.5, which kind of is hosted within Delphi (i.e. it vanishes along with the main application).
I am ...
0
votes
0
answers
61
views
Tensorflow: Model out of memory - preallocated temp allocation extremely large
I am trying to reduce the memory requirements of a model I am working with. The model, which I cannot share in its entirety, is not large, only about 600k parameters. The main part consists of two ...
0
votes
0
answers
18
views
io.netty.buffer.PoolSubpage[] does not decrease
My project uses RSocket to upload images to an FTP server:
public Flux<String> uploadFile(String currentDateDirectory, String fileName, Flux<DataBuffer> bufferFlux, int numberRetry)
During ...
-1
votes
2
answers
190
views
How to load a large xlsx file with POI library?
I have a large .xlsx file (180 MB, containing 300K lines with 150 columns each) I need to perform some operations within. I am having problems with loading this file (OutOfMemoryError), as POI has a ...
0
votes
0
answers
70
views
MIPS32 KASAN support
I found a patch for MIPS64 that enables KASAN support:
https://patchwork.kernel.org/project/linux-mips/patch/[email protected]/#22851077
Is it possible to add KASAN ...
0
votes
1
answer
64
views
Memory limit in Python
My problem is that I keep getting a memory limit in python. I have three sets of code that generate combinations of a set of characters. I have run it on simulators and if it tries to generate ...
0
votes
1
answer
60
views
gcAllowVeryLargeObjects is not effective for using more than 2GB in an array in C# Asp.NET
I have struct as following
public struct Data
{
public readonly long Start;
public readonly long End;
public Data(long start, long end)
{
Start = start;
End = end;
...
0
votes
0
answers
67
views
Find option not working in Excel VBA developer window
I am running macro-enabled Excel file in one of the server computers in my organization.
When I try to use the Find option in VBA developer window, it does not work.
For example, when I use Ctrl+F or ...
1
vote
1
answer
844
views
MariaDB Retains Unused Memory and Causes OOM Kill
I'm facing a memory management issue with MariaDB in one of my projects. My environment:
MariaDB version: 10.6.18
Total RAM: 4GB
Current Configuration:
[mysqld]
innodb_buffer_pool_size = 256M
...
1
vote
2
answers
128
views
Do prepared statements in PostgreSQL respect shared_buffers memory limits?
Recently I observed OOMs in a PostgreSQL 16 server used by an application which made heavy use of prepared statements. Memory would gradually grow until hitting an OOM.
How to limit the usage of ...
2
votes
1
answer
85
views
OutOfMemoryError on Class.getResourceAsStream only when running with the JLink image
I have a Java app that include a big file into its resource (650MB).
Somewhere in my code, I'm using this resource with :
this.getClass().getResourceAsStream("...")
When running the app in ...
0
votes
1
answer
327
views
OOM-killer on slurm based cluster
I am running a c based simulation code on a cluster with 30 nodes, with 112 cores per node. My job submission script is as follows:
#!/bin/bash
#SBATCH --account aac1
#SBATCH --partition par1
#SBATCH -...
0
votes
0
answers
112
views
How to use rasterio to process large raster data(tif)
def reproject_raster(input_file, output_file, dst_crs, resolution=None, resampling_method=Resampling.nearest, dst_nodata=None):
with rasterio.open(input_file) as src:
src_nodata = src....
0
votes
2
answers
1k
views
Remove GPU Ram with VLLM
After running this code within a jupyter notebook, it runs properly. However, the memory is still stored in the GPU. How do I get rid of this memory to clear up space on my GPU. Sorry if I am ...
1
vote
0
answers
81
views
Scraping infinite scrolling site causes Out of Memory Error
I'm trying to scrape a facebook page which has loads of posts. The issue is that after scraping a few hundred posts, the memory accumulates rapidly and then I get an Out of Memory error.
I've tried ...
0
votes
2
answers
204
views
External sort fails with MEMORY_LIMIT_EXCEEDED
I have a large table in ClickHouse (MergeTree engine) with a few hundred million rows and around a hundred columns. When I select a few dozen columns based on a complex condition that returns several ...
-1
votes
1
answer
51
views
How to assign more than 5 GB memory to java in Android Studio?
My Java app on Mac OS needs to process a file that is 2 gigabytes in size.
I already increased the maximum Heap size of Android Studio to 7000MB, by setting
-Xmx7000m
in the file studio.vmoptions, ...
6
votes
2
answers
444
views
Why does Runtime.maxMemory() change its value on separate calls?
I was debugging some OutOfMemoryError issues in my code, so I built a method that printed out the RAM statistics, including the max memory.
To my surprise, multiple attempts at calling the method ...
6
votes
2
answers
280
views
Java application memory consumption
I've a Java application with the configuration -Xmx4096m. The application itself is deployed in a k8s pod with a memory limit of: 8192Mi. After doing some analysis with the command jcmd 8 VM....
0
votes
1
answer
211
views
Abnormal cuda and cpu memory usage with huggingface transformers ViT-msn model
There are basically two parts to the question, the first part is that while inferring on the model and storing minimal results, the python app takes up around 3GB of memory on my system ( i have ...
0
votes
1
answer
136
views
OutOfMemoryError with PatchCore Training on 23.67 GiB GPU
I’m training a PatchCore model with an image size of 128x512 on a GPU with 23.67 GiB memory. However, I’m encountering the following error:
CUDA Version: 12.4
PyTorch Version: 2.5.1
OutOfMemoryError: ...