| Btw, quick explanation about why you are experiencing this issue so much: your bean contains a lot of properties and getters (think of RealmEntity for instance) and this is why it eats quite a lot of memory as metadata adds up. I improved a few things here and there (the BeanMetaDataImpl instance of RealmEntity now takes 65 kB whereas it took 177 kB in your snapshot) but I'm wondering if we shouldn't take more drastic measures. Will post something on hibernate-dev and add you in cc. |