hibernate - Weld and a EntityManagerFactory Container Managed -
i need know how ensures container closes emf (using wildfly 8.0 , hibernate-jpa).
every time undeploy app instance of weldjpainjectionservices$entitymanagerresourcereferencefactory stays on memory holding emf instance.
this causing oom exception after deploys/undeploys.
i'm not using emf references in code, entitymanager @produces , @persistencecontext annotation.
it happening on wildfly 8.0, 8.1 , 9.0alpha, java 7 , 8.
leak related keep-alive , read-timeout properties of undertow.
in new version of wildfly (8.2) can define these properties:
<subsystem xmlns="urn:jboss:domain:undertow:1.2"> <buffer-cache name="default"/> <server name="default-server"> <http-listener name="default" socket-binding="http" tcp-keep-alive="true" read-timeout="30000"/>
after setup no more leaks on deploy/undeploy.
issue:wfly-3536 - wildfly 8.1.0 final keeps established connections forever
Comments
Post a Comment