# Issue with request and response on server

**URL:** <https://www.ruby-forum.com/t/issue-with-request-and-response-on-server/146380>\
**Category:** Rails\
**Created:** [August 20, 2008, 1:59pm UTC](https://www.ruby-forum.com/t/issue-with-request-and-response-on-server/146380 "2008-08-20T13:59:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Piyush\_with\_Rails](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ec9cab/32.png) [@Piyush\_with\_Rails](https://www.ruby-forum.com/u/Piyush_with_Rails)\
**Post date:** [August 20, 2008, 1:59pm UTC](https://www.ruby-forum.com/t/issue-with-request-and-response-on-server/146380/1 "2008-08-20T13:59:12Z")

</div>

Hi,

I am working for a web application using ruby on rails.

I have my application on two servers 1) development server 2)  
production server with two separate databases.

I have apache as web server and mongrel as application server.

development server configuration.

```
1) apache as webserver.

2) one mongrel instance as application server.

```

production server configuration.

1. apache as the wevserver

2. 9 mongrel instances as application servers.

Issue with production server:

If i do same action multiple number of times continuously then code is  
breaking some of the time rendomly. i went through the code base but  
there is not any issue in it.

analyzing server request response, i find that when the application  
is breaking request is coming to webserver but it is not coming to  
application server.

this issue is coming rendomly and on production server only.

i am not sure about reason of the issue.

Note: I am not getting this issue on development server.

can anyone tell me what the reason for breaking can be ??

Thanks in advance.

Piyush.

---

<div class="post-metadata">

**Author:** ![Piyush\_with\_Rails](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ec9cab/32.png) [@Piyush\_with\_Rails](https://www.ruby-forum.com/u/Piyush_with_Rails)\
**Post date:** [August 20, 2008, 2:03pm UTC](https://www.ruby-forum.com/t/issue-with-request-and-response-on-server/146380/2 "2008-08-20T14:03:53Z")

</div>

On 20 Aug 2008, at 12:58, Piyush with Rails wrote:

> Issue with production server:
> 
> If i do same action multiple number of times continuously then code is  
> breaking some of the time rendomly. i went through the code base but  
> there is not any issue in it.
> 
> analyzing server request response, i find that when the application  
> is breaking request is coming to webserver but it is not coming to  
> application server.

If apache is dropping requests on the floor I’d home for their to be  
some warnings/errors in one of its logs. It might be something like it  
will only queue up so many incomplete requests (there are settings  
which control this, can’t remember what they are)

Fred

---

<div class="post-metadata">

**Author:** ![Piyush\_with\_Rails](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ec9cab/32.png) [@Piyush\_with\_Rails](https://www.ruby-forum.com/u/Piyush_with_Rails)\
**Post date:** [August 20, 2008, 2:17pm UTC](https://www.ruby-forum.com/t/issue-with-request-and-response-on-server/146380/3 "2008-08-20T14:17:20Z")

</div>

or you could just switch to nginx…

On Aug 20, 1:03 pm, Frederick C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![Piyush\_with\_Rails](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ec9cab/32.png) [@Piyush\_with\_Rails](https://www.ruby-forum.com/u/Piyush_with_Rails)\
**Post date:** [August 21, 2008, 7:11am UTC](https://www.ruby-forum.com/t/issue-with-request-and-response-on-server/146380/4 "2008-08-21T07:11:12Z")

</div>

thanks for reply Frederick,

please let me know if you come to know about this setting.

Piyush.

On Aug 20, 5:03 pm, Frederick C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
