DB hang problem (Perl application) -
04-24-2006
, 01:24 PM
I've a problem that my application hangs on reading/writing db file...
but first - brief description.
1. application works with a lot of small db files (about 100 000 files
of 16-20 KB size), which are working on the same BDB environment.
2. it's perl fast cgi web application.
3. current Env config is:
-Flags = DB_INIT_MPOOL | DB_INIT_CDB | DB_CREATE
-Cache size: 32 MB (64 MB tried)
-Lock detect: DB_LOCK_DEFAULT
4. OS is Gentoo Linux
5. Hardware: AMD Opteron 64 (2 processors), 300 GB HDD, 4 GB RAM
6. Application has high locking activity.
Only db_recover helps.
I've found similar problem here
http://groups.google.ru/group/comp.d...348b8 2ae11a3
but I didn't found how they solved it in code.
Several additions:
1. If I open another db file(s) with the same Env while other file(s)
are hanged up - it works, I can read, write, lock and unlock db.
2. Each utility works fine and doesn't complain that "db env is
corrupt, run recover".
The problem is still unsolved. |