![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I'd like to see complete log records but a huge log file often gives rise to "File size limit exceeded" the second time I run the program. |
#3
| |||
| |||
|
#4
| |||
| |||
|
#5
| |||
| |||
|
|
Hi, That error is not generated by Berkeley DB, it must be some constraint on your system. Does running "ulimit -a" give any clues about the problem? Do you have a disk quota on this system (try the command "quota"). If not, is there a system administrator you can contact? If there is some limit on the size of files that you can create (you could try creating a 100MB file using standard tools like "dd" and see whether that fails in the same way), and you believe that log files are the culprit, try using the DB_ENV->set_lg_max method to reduce the size of individual log files. Regards, Michael. |
#6
| |||
| |||
|
#7
| |||
| |||
|
#8
| |||
| |||
|
|
Thanks for your reply. Now the problem is gone somehow: I no longer get filesize exceeded error - thanks to you. However I don't understand why sometimes the program pauses without giving any output. It seems kind of random. For ex I run 2 threads each running read(theKey) and write(theKey) only. I run these threads several times and it works fine. However when I run it the 20th time, it simply pauses. I do ^C to terminate it and run it again. Now threads are started but do nothing but pause. I tried many combinations of read() and write() and most of them give me this "pause indefinitely" problem. Please advise. |
#9
| |||
| |||
|
#10
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |