High memory usage when using Hibernate

后端 未结 3 1331
庸人自扰
庸人自扰 2020-12-28 23:16

I code a server side application with java run on linux server. I use hibernate to open session to database, use native sql to query it and always close this session by try,

3条回答
  •  孤独总比滥情好
    2020-12-29 00:09

    Thank you Vlad Mihalcea with your link to Hibernate issue, this is bug on hibernate, it fix on version 3.6. I just update my hibernate version 3.3.2 to version 3.6.10, use default value of "hibernate.query.plan_cache_max_soft_references" (2048), "hibernate.query.plan_cache_max_strong_references" (128) and my problem is gone. No more high memory usage.

提交回复
热议问题