Today I wrote a performance testing program to insert data and add attachments to couchdb. The server software is couchbase (which is the couchdb shell), and the operating system is a Windows 2003 server. The program is developed in C #, and the couchdb driver is LoveSeat (which encapsulates some http methods for working with couchdb). The data is quite simple, but the attachments are not small, about 70 kb each. There were about 200 attachments, and I attached them many times. I started 5 threads in the client program.
Everything looked good until the couchdb server terminated unexpectedly. In fact, this was not the first time that he crashed. At first I thought it was because of the client program. But finally, I found that couchdb crashed. I donβt think it was due to data or attachment. because I inserted the same data and re-added the same attachment. The program runs for about an hour without problems, until it crashes.
[Tue, 05 Jul 2011 11:00:19 GMT] [info] [<0.142.0>] 192.168.1.135 - - 'GET' /test/67366 200 [Tue, 05 Jul 2011 11:00:19 GMT] [info] [<0.108.0>] 192.168.1.135 - - 'GET' /test/7136 200 [Tue, 05 Jul 2011 11:00:19 GMT] [info] [<0.108.0>] 192.168.1.135 - - 'GET' /test/47306 200 [Tue, 05 Jul 2011 11:00:19 GMT] [info] [<0.108.0>] 192.168.1.135 - - 'GET' /test/27257 200 [Tue, 05 Jul 2011 11:00:19 GMT] [info] [<0.108.0>] 192.168.1.135 - - 'PUT' /test/7136/f?rev=1-334efd144dcdc52fd3a3a981dce4472f 201 [Tue, 05 Jul 2011 11:00:25 GMT] [error] [<0.145.0>] ** Generic server <0.145.0> terminating ** Last message in was {pread_iolist,4294342003} ** When Server state == {file,{file_descriptor,prim_file,{
source share