开发者

Websphere server/hibernate memory leak?

开发者 https://www.devze.com 2023-01-30 07:12 出处:网络
I am running Websphere 7.0 form RAD. When I run it without a JDBC datasource defined for Hibernate to read from, it seems to work fine. But if I add the datasourc开发者_如何转开发e, it starts using mo

I am running Websphere 7.0 form RAD. When I run it without a JDBC datasource defined for Hibernate to read from, it seems to work fine. But if I add the datasourc开发者_如何转开发e, it starts using more and more memory until the inevitable OutOfMemoryError. I'm frankly stumped. Anyone have any ideas for troubleshooting this issue?


You need to provide more information. Hibernate itself takes more memory, could cache a lot of resources. Provide database driver and your hibernate settings.

  1. You can first try increase -Xmx java parameter to few gigabytes.
  2. Next check all issues with driver and settings - something like this link text
  3. Then profile your application to possible memory leaks (not closing result sets etc.)
0

精彩评论

暂无评论...
验证码 换一张
取 消