Help needed regarding FCGI/Berkeley DB issues

Surya Srihari Pradeep Adivi <[email protected]>
Newsgroups gmane.comp.web.fastcgi.devel
Message-ID <[email protected]>
Hi All,

    We are building a web aplication (enhancement) using
Apache-fastcgi. The db we are using in the backend is Berkeley db4.0.
The number of users accessing the application at any point of time is
around 100. The application works well with small number of users
around 15-20. But when the number of users increase to around 80-100,
we are facing the following problems with our application which we are
not able to figure out:

1. We get a time out error from the server after which we get an error
message "FastCGI: incomplete headers (0 bytes) received from
server.aborted: (first read) idle timeout (120 sec);". Then the
application crashes sometimes and the server needs to be restarted.

2. Sometimes when we abruptly hit the stop button on the browser also
the application crashes(mod_ssl: SSL handshake interrupted by system
[Hint: Stop button pressed in browser?!] (System error follows)
[Tue Feb  8 10:05:30 2005] [error] System: Connection reset by peer
(errno: 104))and the application crashes with :"terminated by calling
exit with status '0'.The program has failed to remain running for 30
seconds given 3 attempts, its restart interval has been backed off to
600 seconds."

As a result of this many a times the Berkeley db gets corrupted and
needs db recovery very often. We have not observed any regular pattern
in these errors. We feel they mostly happen when the load on the
system is high.

Please let us know if we are facing such problems due to configuration
issues; if so, how to overcome them. Also our Berkeley table sizes
range from a few MB to around 1.5 GB. Can there be some problems
associated with handling of locks in the db where one process is made
to wait for another process for the lock to be released and finally
times out?

Please help us out regarding these issues. Our configurations are as follows:
Apache/1.3.29 (Unix) mod_ssl/2.8.16 OpenSSL/0.9.6b mod_fastcgi/2.4.0

Thanks 
Pradeep/Keshava

___________________________________
fastcgi-developers mailing list
http://fastcgi.com/fastcgi-developers/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.