GC overhead limit exceeded
means that your application has many objects, and GC spends most of the time collecting these objects. The usual way to solve this is to take a bunch of heaps and analyze these heap heaps using a tool like the Eclipse MAT .
From the logs, it seems that the app has run out of memory by placing the value in the HashMap
.
You mentioned that there are a lot of objects in your application. Does this mean that you are trying to immediately load data from a database? In this case, why not change your application to support pagination. Thus, you do not load a large amount of data into your application and can avoid this error.
source share