When doing memory analysis in Java, TreeMap is found inside the object -


I'm new to memory analysis in Java.

I have performance report message , which is the cost of 25k memory to me:

 Enter image details here

When I look at the object in memory analysis in Eclipse, then I think inside a TreeMap The structure, which eats the most size of the whole object.

This is my question:

  1. Where does the treemark come from? I do not have the TreeMap structure in the class definition.

  2. I would like to reduce the size of the object as much as possible. Any possible way to do this?

    1) It looks like this quickfix.fix42. ExecutionReport is inside the object .. ??

    Update: This is actually inside quickfix.fix42.ExecutionReport , by which the succession increases the quickfix.FieldMap class, in which two TreeMaps

    2) Remove the performance report from your exception and archive the field you need it.

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -