Hibernate too much memory

Hi,

I am using hibernate with spring boot.
I am firing one query which joins 3 tables and stores data in projection(only 5 columns) and fetch 300 rows(so 300 objects).

But this takes lot of memory, I am debugging it and found there are too many instances of

java.util.concurrent.ConcurrentHashMap
Count : 854
Retained Size : 20MB

Others

java.util.concurrent.ConcurrentHashMap$Node[]
java.util.concurrent.ConcurrentHashMap$Node

What is this size for?
Can it be reduced? Its contans Map inside map inside map ?

Show us a profile report. Otherwise, how would we know whether this is Hibernate and not some other framework you use.

Screenshot%20from%202018-04-12%2016-03-39

I have uploaded two snapshot of dumps

Screenshot%20from%202018-04-12%2016-08-32

org.springframework.beans.CachedIntrospectionResults is surely not a Hibernate class.

You should ask the Spring guys why does it consume so much memory.