-->
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.  [ 8 posts ] 
Author Message
 Post subject: Hibernate causes Java to go zombie?
PostPosted: Fri Jul 22, 2005 8:43 pm 
Beginner
Beginner

Joined: Fri Apr 29, 2005 10:57 pm
Posts: 41
Ok this is just my guess since I've been kind of desparate lately...

I'm running the latest Hibernate. I only have 1 application that uses Hibernate on my web server... and from time to time that application freezes. Doing a server restart doesn't work in that case for some reason, so I'm forced to kill -9 the java proccess.

Lately though doing kill -9 didn't help. Java just went zombie on me and I had to reboot the computer.

Now the reason I suspect it could be Hibernate is because I just wrote another non-web application that used Hibernate... and guess what! Java proccess that's running it goes zombie on me!

Any idea what might be causing it? People were tellling me that it's most likely some IO error that causes it, probably has to do with database and therefore hibernate...

Any ideas?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jul 23, 2005 8:39 am 
Newbie

Joined: Sat Jul 23, 2005 8:31 am
Posts: 18
i never ever had such a problem with hibernate and i can't imagine that hibernate is the problem. if it has to do with the database then it could be the connectionpool, jdbc driver, database or the constellation of them so i would sugest to test it with another connectionpool or jdbcdriver.


Top
 Profile  
 
 Post subject: Re: Hibernate causes Java to go zombie?
PostPosted: Sat Jul 23, 2005 11:23 am 
Expert
Expert

Joined: Mon Feb 14, 2005 12:32 pm
Posts: 609
Location: Atlanta, GA - USA
Lasek wrote:
Ok this is just my guess since I've been kind of desparate lately...

I'm running the latest Hibernate. I only have 1 application that uses Hibernate on my web server... and from time to time that application freezes. Doing a server restart doesn't work in that case for some reason, so I'm forced to kill -9 the java proccess.

Lately though doing kill -9 didn't help. Java just went zombie on me and I had to reboot the computer.

Now the reason I suspect it could be Hibernate is because I just wrote another non-web application that used Hibernate... and guess what! Java proccess that's running it goes zombie on me!

Any idea what might be causing it? People were tellling me that it's most likely some IO error that causes it, probably has to do with database and therefore hibernate...

Any ideas?


It's been at least 5 years since I've seen anything like that and it was definitely an issue with the Microsoft JDBC driver.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jul 23, 2005 11:48 am 
CGLIB Developer
CGLIB Developer

Joined: Thu Aug 28, 2003 1:44 pm
Posts: 1217
Location: Vilnius, Lithuania
Do not forget to close session factory.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jul 23, 2005 11:59 am 
CGLIB Developer
CGLIB Developer

Joined: Thu Aug 28, 2003 1:44 pm
Posts: 1217
Location: Vilnius, Lithuania
BTW try kill -3 if it doe's not help, jvm will dump all threads to stdout, it will hep to find running non deamon thread (jvm exits when the only threads running are all daemon threads).


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jul 23, 2005 3:52 pm 
Beginner
Beginner

Joined: Fri Apr 29, 2005 10:57 pm
Posts: 41
Hmm closing the session factory? Hibernate in action failed to note that...

And kill -3 doesn't work when the proccess is a zombie.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jul 23, 2005 11:07 pm 
Expert
Expert

Joined: Sat Jun 12, 2004 4:49 pm
Posts: 915
nonkillable processes mean that exists hardware (or software driver for any hardware) bugs
(probably).I don't think that is java or hibernate problem
Can you try same things with another computer ?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jul 24, 2005 4:34 am 
CGLIB Developer
CGLIB Developer

Joined: Thu Aug 28, 2003 1:44 pm
Posts: 1217
Location: Vilnius, Lithuania
Lasek wrote:
Hmm closing the session factory? Hibernate in action failed to note that...

And kill -3 doesn't work when the proccess is a zombie.


Hibernate doe's not start any threads, db pool or cache may need "factory.close()", it signals to stop all user threads and to release resources. It doe's not help to avoid deadlock, it just helps to restart server. kill -3 must help to debug deadlock on most systems (I am sure it works on linux), but try to start server as application if this is solaris, it ignores this signal for deamons (if process is the real "zombie" then it must ignore kill -9 too).


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

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.