Websphere server/hibernate memory leak?
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.
- You can first try increase -Xmx java parameter to few gigabytes.
- Next check all issues with driver and settings - something like this link text
- Then profile your application to possible memory leaks (not closing result sets etc.)
精彩评论