This discussion is archived
2 Replies Latest reply: Apr 22, 2013 7:46 AM by user299932 RSS

The coherence resource didn't be released - hibernate L2 issue

682974 Newbie
Currently Being Moderated
Hi All:
I found a strange thing, when I use hibernate and enable the L2 cache to integrat with coherence, I configure the hibernate SessionFactory within servlet init() and call the SessionFactory.close() with servlet destroy() method.
For testing, I need to redeploy the web ap again and again, after that I use coherence.sh to open a command console, but what I view is :
######################################################
MasterMemberSet(
ThisMember=Member(Id=2, Timestamp=2012-05-10 17:28:33.146, Address=192.168.10.
112:8090, MachineId=55053, Location=site:,machine:john1,process:7952, Role=CoherenceConsole)
OldestMember=Member(Id=1, Timestamp=2012-05-10 17:28:26.079, Address=192.168.10.112:8088, MachineId=55053, Location=site:,machine:john1,process:8564,member:mbr1, Role=CoherenceServer)
ActualMemberSet=MemberSet(Size=5 Member(Id=1, Timestamp=2012-05-10 17:28:26.079, Address=192.168.10.112:8088, MachineId=55053, Location=site:,machine:john1,process:8564,member:mbr1, Role=CoherenceServer)
Member(Id=2, Timestamp=2012-05-10 17:28:33.146, Address=192.168.10.112:8090, MachineId=55053, Location=site:,machine:john1,process:7952, Role=CoherenceConsole)
Member(Id=3, Timestamp=2012-05-10 17:28:41.497, Address=192.168.10.112:8092, MachineId=55053, Location=site:,machine:john1,process:10536, Role=WeblogicServer)
Member(Id=4, Timestamp=2012-05-10 17:31:24.047, Address=192.168.10.112:8094, MachineId=55053, Location=site:,machine:john1,process:10536, Role=WeblogicServer)
Member(Id=5, Timestamp=2012-05-10 17:32:09.985, Address=192.168.10.112:8096, MachineId=55053, Location=site:,machine:john1,process:10536, Role=WeblogicServer)
)
#####################################################

I have 3 weblogic role can be saw, and each one belongs to one war file, but actually, I have just only one war file(redeploy it again and again), so, I found com.tangosol.coherence.hibernate.CoherenceCacheProvider do not release the coherence resource.
Does any body has ever find the issue?? And how to fix it?

BTW. I am pretty sure the SessionFactory.close has been invoked! because I could see the following log when I redeploy
######################################################
*2012/5/10 下午 05:29:39 org.hibernate.impl.SessionFactoryImpl close*
資訊: closing
*2012-05-10 17:29:39.103/110.101 Oracle Coherence GE 3.7.1.1 <Info> (thread=[ACTIVE] ExecuteThread: '5' for queue: 'weblogic.kernel.Default (self-tuning)', member=3): Loaded cache configuration from "zip:E:/software_install/weblogic_install/wls1036/user_projects/domains/mpinfo/servers/AdminServer/tmp/_WL_user/HNWeb2/254784/war/WEB-INF/lib/coherence.jar!/coherence-cache-config.xml"*
######################################################

Edited by: john on 2012/5/10 上午 2:46

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points