arraylist - Java heap size exception -


After running 24 hours of my Java program, it shows an exception like "Exception memory error in thread 1 out of Java Hap size"

This problem is coming in the part of my code where I am taking 500 data to create 500 data (90000 data in my DB table) at one time the Hashmap & amp; This hammerpad object is used for arrelevist & gt; In the end I am setting up the block IHip object and for processing this aristocratic object is going through another method. It continues upto 90000 data.

To perform this processing program I have to use Thread & amp; Position of thread by walking () method while position is true & amp; Calling Dataprocessing Method

This means that your heap is complete. You have too many and / or heavy objects in memory

Possible reason:

  1. You refer to unused objects, and make many of them
    Solution: Check

  2. You really need all those references, but your pile is too short Solution: Increase the heap

    Since your exception occurs after a long time, I believe that your problem may be first Is.

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -