-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: some strang problem with hibernate...
PostPosted: Wed May 04, 2005 10:49 pm 
Newbie

Joined: Wed May 04, 2005 10:30 pm
Posts: 1
i am using hibernate 2.1.7 with EJB CMT in WLS811.
database: oracle9i

using CMT transaction,

DAOUtil code here:

Code:
Session session = null;
try {
session = HibernateUtil.openSession();
infoattachHBM infoattachHBM = new infoattachHBM(
                                           infoattach.getAttach_id(),
                                           infoattach.getInfo_id(),
                                           infoattach.getAttach_type(),
                                           infoattach.getAttach_name(),
                                           infoattach.getAttach_desc(),
                                           infoattach.getAttach_size(),
                                           infoattach.getAttach_body());
                                       session.save(infoattachHBM);
                                       session.flush();
}
catch (Exception e) {
...
}
finally {
   HibernateUtil.closeSession(session);
}


while the application run, i found a very strang problem


there are some memeory leak when i save my object, and i do more, i found whenever i call
Code:
session.save(infoattachHBM)
there do is some memory leak, but if i remove this code line
Code:
session.save(infoattachHBM)
there is none memoery leak, it's puzzled me!!
who can tell me why this happen? thanks !


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.