25 questions
0
votes
0
answers
41
views
Facing "java.lang.OutOfMemoryError: Java heap space error" for the following script
import json
from datetime import datetime
from pathlib import Path
import os
import shutil
from pyspark.sql import functions as F
from pyspark.sql.functions import rtrim, udf, unix_timestamp
from ...
0
votes
2
answers
82
views
Mule 4 - 1GB file data transformation
My requirement is to read a file with .json extension from an SFTP server and perform some dataweave transformations on it.
The issue is the file is very large, at times between 1 and 2GB. The format ...
0
votes
0
answers
41
views
Java Heap Space in PySpark while running using Rapids GPU
I have an issue when running a Spark submit. I'm not sure whether the problem lies in my Spark script or my resources (but I suspect it's related to the resources).
I have 9 main processes:
A ...
2
votes
0
answers
254
views
Spring application does not respond after successful start
I stumbled upon the same strange error, that is described here: related question
I upgraded my Spring boot application from version "2.7.18" to "3.3.0".
I updated dependencies ...
0
votes
0
answers
92
views
Memory leak through UnmarshallingContext
I've upgraded a Java microservice from Java 8 to Java 17, and I am encountering an "Out of Memory" (OOM) issue when processing bulk records. In heap dumps, the suspect is identified as com....
0
votes
0
answers
225
views
Heap Allocation in ZGC
My application uses 20 GB of RAM for storing the session data i.e. JVM size to store. The sessions are referred, updated and cleared continuously producing qt high number of unused objects every ...
1
vote
1
answer
475
views
Recommended Java Heap Size for Commercial JMeter Project
Depending on the nature of the automated workflow and the number of active threads at any given time the Heap size requirement for JMeter can vary and in the testing I am doing there is some ambiguity ...
1
vote
1
answer
5k
views
Java heap space : pros/cons of size in performance terms
What are the limitations on Java heap space? What are the advantages/disadvantages of not increasing the size to a large value?
This question stems from a program that I am running sometimes running ...
0
votes
1
answer
630
views
heap memory overflow master nodes (continuous GC) - Elastic Search
Recently, encountered increases in the heap memory usage in the master nodes (heap memory overflow master nodes continuous garbage collection ). I try to debug the root cause using the heap dump saved ...
-1
votes
1
answer
713
views
Trying to create a Mosaic in ImageJ and I get this Java error
I am trying to stitch images using the MosaicJ plugin in Fiji (ImageJ), however, I get the error in the code below. Does anyone know what it means and how I can fix this please? I have no experience ...
0
votes
0
answers
24
views
java.lang.OutOfMemoryError: Java heap space thrown from java.net.http.HttpClient [duplicate]
My Java application sends HTTP requests through java.net.http.HttpClient.
The class that holds the HttpClient is a singleton that initializes the client in the constructor, which means only one ...
2
votes
2
answers
3k
views
G1 GC allocated memory is more than heap size
I change GC for application server. Now I use G1 GC. I have 30 GB RAM. For initial testing I set only Xms and Xmx values to be the same 23040 mb.
Settings I use:
-Xms23040m -Xmx23040m -XX:+UseG1GC ...
0
votes
0
answers
99
views
java heap error while reading a file line by line inside a while loop
i'm using weblogic and java ee. when i try to read a text file (about 100mb) and create an array out of it, java heap size exceeds and weblogic goes down.
i use scanner to avoid reading file in memory ...
2
votes
1
answer
347
views
How much memory takes TreeMap<Long, Long> collection granularly?
How much memory takes TreeMap<Long, Long> collection filled with 1000 (all unique) key-value pairs?
Yes I can just watch memory dump, but need to know granularly why exactly:
Long = n bytes
...
1
vote
1
answer
373
views
Getting "java.lang.OutOfMemoryError" exception while running a cucumber test using java-selenium
While running a cucumber test using java-selenium getting error at following line:
PageFactory.initElements(driver,LandingPage.class);
Below is the complete code of Page Object Class:
public class ...
0
votes
1
answer
300
views
JVM committed heap memory is more than Xmx
I have these jvm param set
-Xms24g -Xmx24g -XX:+UseG1GC -XX:+AggressiveOpts -XX:+UnlockCommercialFeatures -XX:+UnlockExperimentalVMOptions -XX:InitiatingHeapOccupancyPercent=17 -XX:G1MaxNewSizePercent=...
9
votes
2
answers
7k
views
Java Heap Dump : How to find the objects/class that is taking memory by 1. io.netty.buffer.ByteBufUtil 2. byte[] array
I found that one of my spring boot project's memory (RAM consumption) is increasing day by day. When I uploaded the jar file to the AWS server, it was taking 582 MB of RAM (Max Allocated RAM is 1500 ...
0
votes
1
answer
316
views
manage assigned memory size in Anylogic
for increasing the heap size for Anylogic I have followed the method explained here but it just work for 1.5G of ram. my operating system is Windows 10 (64bit) and JVM is 1.8.0_281 (64bit).
when I ...
0
votes
1
answer
143
views
pyspark java heap space error when just retrieving data frame columns
Is spark's lazy evaluation really executing anything for the following simple example of pointing to a partition of a hive table and getting columns but nothing really heavy:
>>> spark.sql('...
0
votes
0
answers
3k
views
Generating Java heap dump in Kubernetes container
I am running a Jenkins Controller in kubernetes. I have noticed that the controller has been restarting ALOT.
kgp jkmaster-0
NAME READY STATUS RESTARTS AGE
jkmaster-0 ...
0
votes
2
answers
361
views
When a methd returns a String , will it be a literal or a String object?
Lets say a method returns a String
String str = methodCall();
The return type of methodCall() is String.
Will we get a String literal which will be in pool memory or just a String object?
0
votes
1
answer
496
views
Apache Spark : java.lang.OutOfMemoryError: Java Heap Space issue
I am facing the java.lang.OutOfMemoryError: Java Heap Space issue when I run the same spark program every 2nd time.
Here is a scenario:
When I do the spark-submit and runs the spark program for the ...
4
votes
1
answer
1k
views
Memory size feasible via Virtual Memory vs RAM
I am trying to instantiate a huge ArrayList
List<Integer> list = new ArrayList<Integer>(Integer.MAX_VALUE);
Running it in eclipse I get:
java.lang.OutOfMemoryError: Requested array ...
0
votes
2
answers
4k
views
Java Garbage Collection after heap memory crosses a threshold
Is it possible to invoke a forceful garbage collection in java every time heap memory crosses a particular threshold ?
7
votes
2
answers
4k
views
How much headroom to leave between Java Xmx and Docker container RAM size?
I'm 100% aware of the pitfalls of the JVM and advances/strides that have been done in the JVM world for it to understand the ergonomics/resources of a container. Also, yes I know that Java by default ...