56 questions
0
votes
0
answers
39
views
java spring application - unhealthy heap behaviour
So i have a very relatively simple java application spring 2.3.7 on java 8 that microservice simply calls DB to save update or retrive base64 image string thats all.
So i have deployed that in my ...
0
votes
1
answer
181
views
Java Compressed Class Space behaviour
Similar question to this: java.lang.OutOfMemoryError: Compressed class space however my application is not exiting with an OutOfMemory error, and I'm interested in the expected usage of JVM compressed ...
0
votes
1
answer
123
views
The memory consumed by WSO2 APIM increases over time
I have an instance of WSO2 APIM version 4.2.0 installed on an Oracle Linux 8 server which has 16gb of ram. The problem noticed is that the more time passes, the more the consumption of physical memory ...
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....
1
vote
1
answer
732
views
Java Memory leak: Java.lang.ref.finalizer object
I've upgraded a Java microservice from Java 8 to Java 17, and I'm encountering an Out of Memory (OOM) issue when processing bulk records. In heap dumps, the suspect is identified as java.lang.ref....
1
vote
0
answers
97
views
Why does the Java process memory still increase after calling memory.close?
After running the following program, the memory occupied by the Java process increased from 83M to 99M. Through monitoring, it was found that the increase was almost 1.4M several times (approximately ...
2
votes
0
answers
848
views
Java | Memory Leak issue due to sun.security.ssl.SSLSessionContextImpl
In our application we are using Spring Framework v2.3.3.RELEASE. The application acts as a GRPC Server and responds to GRPC Requests sent from another application (It's micro-service architecture).
...
0
votes
0
answers
765
views
Intellij Too much memory consumption in Spring boot app
When I open intellij IDE with my spring boot app, I can see too much cpu and memory usage of my system. Facing this problem from last 1-1.5 month. Earlier, it was running smoothly.
I am using the ...
3
votes
1
answer
2k
views
LazyList memory leak in Jetpack Compose
I found out that LazyList generates memory leaks. When I scroll down to the bottom of the list memory usage by my app increases by ~3MB. After I scroll up and usage also increases by ~3MB. Memory ...
0
votes
1
answer
1k
views
How to force NEO4j Garbage Collection?
ADDENDUM TO ADDENDUM:
I turned Garbage collection logging on and now I get lines and lines of the same error. First the log shows my looped dbms.clearQueryCaches() in a series of 50 or so.
2022-03-21 ...
0
votes
1
answer
497
views
Does not storing a newly declared object cause a memory leak?
What I mean to say through the post title is - doing this:
public static void makeNewObjectAndDoTask() {
new SomeClass().doYourTask();
}
I have myself written such code in languages such Java and ...
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
...
0
votes
0
answers
1k
views
There is a memory leak in One of My activities due to mLoadedApk. I have used LeakCanary. But not able to understand it
InstagramActivity is First Activity which will visible to user after splashscreen. GetDataFromServer is a singleton which i use for network call using retrofit.
I couldn't understand mLoadedApk and ...
4
votes
1
answer
2k
views
Java Memory issue : Java.lang.ref.finalizer object
In most of the research about the memory leak caused by finalizer object, either in our code or in a dependent library, one should be overriding the finalize method. But in my whole project its ...
5
votes
0
answers
599
views
Java objects unnecessary promotion to old generation just after a minor gc causing memory fragmentation issues
We are facing a strange memory leak issue in our application.
GC configuration: ParNew + CMS
A certain type of Objects are getting promoted to old generation too early and causing severe fragmentation ...
1
vote
1
answer
652
views
jvm full gc can't unload classes even permgen is full
Our production server went OOM because permgen is full. Using jmap -permstat to check the permgen area, we found there were many classes loaded by com.sun.xml.ws.client.WSSServiceDelegatingLoader. The ...
4
votes
1
answer
2k
views
LeakCanary not giving enough information to identify leak
I'm using LeakCanary but the heap analysis result doesn't provide enough information to detect any leak. It only mentions that the activity is leaking.
D/LeakCanary:
=============================...
0
votes
1
answer
133
views
java 'Robot' class memory leak
I making share screen program.(client)
Sadly, I found out that a memory leak was happening.
To check for memory leaks, I've simplified it to:
import java.awt.*;
import java.awt.image.BufferedImage;
...
3
votes
0
answers
52
views
How do I analyze a Java heap dump when local memory is less than the size of the dumped heap? [duplicate]
I have a really big hprof file about 21G which located on a remote server with 32G memory, and I would like to understand what happened in my program. However, on my local desktop I have only 8G ...
1
vote
2
answers
2k
views
Tesseract / Tess4j memory leak
We are trying to use Tesseract with Tess4j for OCR text extraction.
On continuous use of tesseract over a period, we notice the RAM used by the application getting increased gradually, During this ...
0
votes
0
answers
522
views
Java - OutOfMemoryError during JSON String manipulation
I am trying to track down a memory leak in the Java code shown below.
This code throws OutOfMemoryError: heap space while running with a max heap size of 2 GB after handling only a few file updates.
...
2
votes
2
answers
15k
views
Which java garbage collector we should use for spring boot with java 11 and Ubuntu 18
We have 10 spring boot applications which are running on ubuntu18 with 8GB RAM and Java 11.
We are running the apps using java garbage collector -XX:+UseSerialGC without restricting the heap space.
...
11
votes
1
answer
9k
views
Why is Java11 keeping java.util.zip.ZipFile$Source on heap?
Can somebody help me understand if what I see is deliberate, correct behaviour or some kind of leak in Java11? Let's take a stupid-simple hello world app:
package com.example;
public class ...
0
votes
1
answer
7k
views
java.lang.OutOfMemoryError: Java heap space (JUnit test)
I have a class,which i use input stream and then conver it to string.
Also i have a Junit test,where i get the exception " java.lang.OutOfMemoryError: Java heap space",I know that the problem is that ...
0
votes
0
answers
484
views
Tomcat is crashing after a web service call deployed on tomcat
Deployed a webservice on tomcat 7.0.99
Tomcat is running on MacOS, We are doing multiple web service calls to the service deployed on Tomcat. After completion of first service call the tomcat is ...
1
vote
1
answer
2k
views
Java Tomcat application Heap size a lot larger then Used Heap
I'm working on a Java Webapp that's running on a 1GB memory server with Tomcat.
Lately we've noticed that the app is eating up most of the memory on that server - around 83%.
I have profiled the ...
0
votes
1
answer
482
views
Memory leak from PODS
We have some rest services which is going out of memory frequently.
I was doing code review and saw heavy usage of static methods.
Can that be an issue ?
Java 8, spring-boot 2.1.5
How do I debug this ...
0
votes
1
answer
698
views
I'm having trouble installing the 'Spring IDE' plugin in Eclipse, and I want to know how to solve this
I want to install and configure spring framework in eclipse. However, the installation process is failing.
The operating system of the PC I use is Window7, 32bit. RAM is 2GB.
I ran Eclipse (Version: ...
-2
votes
2
answers
371
views
What will happen If I initialize a Class object which is already initialized in JAVA?
I want to know what will happen if I initialize an already initialized Class object in Java. Does the garbage collector destroys the object and free the memory?.
Example code:
........
Object target ...
3
votes
1
answer
1k
views
Java Process with constant heap size allocates more and more memory in OS
I have a java application which seems to allocate more and more memory from OS(but the heap size isn't growing at all!) It's an application communicating with a PLC so it needs quite some CPU.
for ...
0
votes
0
answers
55
views
Identifying Memory Leaks
I have captured the heap dump using the Android Studio Memory Profiler. I know how to check the Leak Activity using the heap dump. I want to check memory leak Not in Activity only as my app contains ...
0
votes
0
answers
902
views
Apache Tika keeps dying
I am using openEdgar to parse SEC filings data and it uses Apache Tika to parse HTML, XML and LBRL content. I am running this on a box with 4G of memory and it keeps dying on me.
I ended up starting ...
0
votes
1
answer
59
views
Benefits of Private Constructor - Singleton Design Pattern
I understand that it helps creates single copy of class.
I would like to know:
What is the harm in creating multiple such instances of a class ? since garbage collection will take care of it.
Is it ...
0
votes
1
answer
949
views
Android - Can Application Context Solve Memory Leaks?
Using the longest-lived context instead of Activity context should be a good practice to avoid memory leaks when configuration (screen orientation, default language) change.
However, I think these ...
0
votes
1
answer
126
views
Accessing data of destroyed activity means I have a memory leak?
I've created an interface which holds a reference to an interfaces instantiated from an activity.
This is the interface:
public interface Calback {
void fun();
}
This is the activity which ...
0
votes
1
answer
2k
views
Finding a memory leak in java restful api
Im an amateur programming ambitious to learn, but I've encountered a new type of problem that I don't even know where to begin to look - memory leaks in java. I've searched around and can't really ...
0
votes
1
answer
1k
views
PMD Memory Leak
I have a serious memory leak when using pmd in eclipse on windows. I import a bunch of large maven projects. After m2e and compilation PMD starts up. It then eventually runs in about 8-10 eclipse job ...
3
votes
1
answer
275
views
Anonymous class hidden reference to local variable
I encountered a reported memory leak in my Android app, after some investigation I pretty much find out where the leak is, here is the simplified code:
public class LeakTracker {
public static ...
0
votes
1
answer
423
views
Javafx TextField memory issues
I could use some help debugging a memory (leak?) issue. I've made a simple example below. There's some kind of bug in Javafx related to TextFields. The below code adds 2000 TextFields to a FlowPane ...
1
vote
0
answers
183
views
Threads Error Memcached cloud Heroku Java
Background
We are developing a Java service in Heroku with 1 dyno, which is using Memcached cloud.
Issue
Meanwhile we were developing and testing it, It was working fine. However, when we decided ...
2
votes
1
answer
889
views
Overwrite (zeroize) a string password in Java
I made the mistake of storing a password as a String in a Java program. I would like to prevent this String password from appearing in a heap dump/memory dump. Ideally, I should have used a char[] and ...
1
vote
0
answers
1k
views
Is this a a sign for a memory leak in Reactor?
I have an application with a network of Fluxes processing some data. The data to be processed is received via web sockets. Except from the end of the processing pipeline where some aggregated values ...
1
vote
0
answers
225
views
Why Java FX TreeTableView is leaking memory when TableMenuButton is enabled?
I am experiencing memory leaks with TreeTableView when TableMenu is enabled. Steps to reproduce is simple. I have done some research why it's happening but will leave it to experts here to throw some ...
2
votes
1
answer
5k
views
Spring Batch Jobs do not release memory
I am running around 18.000 spring jobs in parallel, each with one step.
Each step consists of reading from a file, converting and manipulating those values and writing them to a Mongo and MySql ...
0
votes
1
answer
1k
views
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space while trying to Verify Millions of data
From flat file which contain data line by line, my task to be verify data from DB not present I am trying to verify Using Java first I have inserted flat file data into HashSet1 and another Hashset2 ...
0
votes
0
answers
206
views
Jenkins MAVEN Unit test cases are failing for a multi module project
Error-
Jenkins Maven Unit Test cases jobs are getting stuck with this below error message for a Multi module project. We have increased the Memory value as well. Jobs getting executed continuously ...
2
votes
0
answers
171
views
The Google search widget leaks memory in side system server. How to resolve this memory leak from platform side ( from framwork side)
I observed memory leak inside a system server when we use the Google search widget on home screen. The Google widget is updating on every click on home button and holding muliple reference of class ...
1
vote
0
answers
392
views
Application getting killed when switching gifs
I am writing an android application in which I want to switch between two gifs, when user click the gif image.
I have written the below code to switch between gifs.
@Override
protected void ...
0
votes
0
answers
538
views
Tuning JVM parameters to avoid java.lang.OutOfMemoryError: PermGen space
I'm getting an error "java.lang.OutOfMemoryError: PermGen space" very often (1-2 times per week) and I cannot localize the problem.
Thread dump shows no blocked processes. And a heap dump cannot be ...
4
votes
2
answers
7k
views
Memory issue with JAX RS using jersey
We currently have some trouble on a productive server as it consumes way too much memory. One of the leaks could come from the jersey client. I found the following two other questions and a how to:
...