Tell me more ×
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.

I have a program using berkeley db as data store, and when the program finishes its job and exits, it triggers berkeley db to close.

Ok, here is the problem. Nine times out of ten, my Linux system goes down when berkeley db is closing. By goes down, I mean linux shell cannot respond to any linux command (ls,top,ps...) I typed in, just like the system is dead.

According to berkeley db's api of close, it will flash all the data in cache back to disk. But I wonder how could the db-closing make my system halt? Does berkeley db spawn lots of threads or takes up too much cpu when closing?

share|improve this question
truss/strace your prog before you exit, and redirect the output to a file. You can then analyse the output after. – Phil Jan 31 at 12:56

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.