Exception in thread "Thread-8" java.lang.OutOfMemoryError: Java heap space
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "Thread-8"
Exception in thread "Thread-6" java.lang.OutOfMemoryError: Java heap space
Exception in thread "Thread-0" java.lang.OutOfMemoryError: Java heap space
Exception in thread "Thread-1" java.lang.OutOfMemoryError: Java heap space
Exception in thread "Thread-3" java.lang.OutOfMemoryError: Java heap space
I'm having this exception. Could anyone please help me understand why this exception happens?
The exception doesn't provide where in my code this happens.
EDIT: From all the answers I received, I realized I needed some kind of Java Profiler, to help me detect where the memory leakage is. Because I am using NetBeans to develop my application, I decided to use its embedded profiler.
@MuhammadGhazanfar gave me this very helpfull link: Best way to profile memory usage in a Java application?
Thank you for your time and all your help.