# Slow ajax with webreick

**URL:** <https://www.ruby-forum.com/t/slow-ajax-with-webreick/99932>\
**Category:** Rails\
**Created:** [November 12, 2005, 12:49pm UTC](https://www.ruby-forum.com/t/slow-ajax-with-webreick/99932 "2005-11-12T12:49:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pmr16366](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/e274bd/32.png) [@pmr16366](https://www.ruby-forum.com/u/pmr16366)\
**Post date:** [November 12, 2005, 12:49pm UTC](https://www.ruby-forum.com/t/slow-ajax-with-webreick/99932/1 "2005-11-12T12:49:22Z")

</div>

Using ie, webrieck ( all on win xp) and rails-0.13.1  
I find that I get very very slow response when using ajax to update a  
form.  
Much slower than a regular page load. So bad I have considered dropping  
ajx  
completely  
In my production env I use apache/fcgi and it is instantaneous  
Any suggestions? ( apart from use fcgi in dev!)  
Thanks  
Paul

---

<div class="post-metadata">

**Author:** ![pmr16366](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/e274bd/32.png) [@pmr16366](https://www.ruby-forum.com/u/pmr16366)\
**Post date:** [November 12, 2005, 12:49pm UTC](https://www.ruby-forum.com/t/slow-ajax-with-webreick/99932/2 "2005-11-12T12:49:22Z")

</div>

I think 0.13.1 was leaking memory in development mode. That might be  
the source of your troubles. Can you upgrade?

Kyle

---

<div class="post-metadata">

**Author:** ![pmr16366](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/e274bd/32.png) [@pmr16366](https://www.ruby-forum.com/u/pmr16366)\
**Post date:** [November 12, 2005, 12:49pm UTC](https://www.ruby-forum.com/t/slow-ajax-with-webreick/99932/3 "2005-11-12T12:49:27Z")

</div>

On 11/9/05, Paul R. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Using ie, webrieck ( all on win xp) and rails-0.13.1

Webrick only runs one thread, so things like file-uploads and ajax  
will suffer from low throughput.

> Any suggestions? ( apart from use fcgi in dev!)

## Unfortunately, no, not really. You’ll either need to investigate scgi/fcgi for development, or just live with the slow requests.

Cheers

Koz

---

<div class="post-metadata">

**Author:** ![pmr16366](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/e274bd/32.png) [@pmr16366](https://www.ruby-forum.com/u/pmr16366)\
**Post date:** [November 12, 2005, 12:49pm UTC](https://www.ruby-forum.com/t/slow-ajax-with-webreick/99932/4 "2005-11-12T12:49:27Z")

</div>

ok, thanks. I can try an upgrade. I did also use apache/fcgi -but I had  
to  
stop, and if I remember it was because I had to restart apache to get  
updated content - does that sound correct?
