mongrel

JRuby on Rails deployment

I need to host a JRuby on Rails app on Mongrel. The problem is that I need to support mutual authentication. I know that I could just host it behind a Apache with mod_proxy use mod_ssl to pass the cred or part of the cred as a request header to rails. But I want the whole stack to be Java. Is there a Java application server that can do m...

Monitoring Mongrel queue length

I have a Apache + Haproxy + Mongrel Cluster setup. I want to receive alerts whenever my Mongrel queue length gets too high. How to I get the current Mongrel Queue length and make it available for alerting tools such as Monit and Nagios? I know that Haproxy has the information about Mongrel queue as it intelligently sends requests to l...

Deploying Ruby on Rails with Apache and Mongrel

Hi Folks, I'm fairly new to ruby on rails and web development. Here is my setup which I followed from this link http://tonyrose023.blogspot.com/2007/01/multiple-rails-apps-with-mongrel.html I run multiple rails applications on Apache2 with Mongrel clusters. http://services.abc.edu/app1 http://services.abc.edu/app2 http://services.abc.ed...

Ruby On Rails is slow... ?

I'm writing a web application to monitor a furniture factory production flow. It has thousand of data to handle. So far, I run RoR on Mongrel + MySQL and it's really really slow (2-4min for some views). When I look at RoR logs, it seems that database queries aren't slow (0-10ms). Is RoR slow when it converts database data to object ? Is...

Can Rails / Mongrel accept a form POST with a text field whos value is a URL

In my Rails app I am attempting to create a form that allows users to create a bookmark. <% form_tag( contents_path ) do %> <input name='item_type' value="Bookmark" type="hidden" /></p> <h3>Create New Bookmark</h3> <p>Title:<input name='item[title]' type="text" /></p> <p>URL:<input name='item[url]' type="text" /></p> <%= submi...

Rails: Unable to access log file

I get the following error when restarting my rails app. I've had this problem before, on another server with another app, but can't remember what the problem was, or how I solved it. Rails Error: Unable to access log file. Please ensure that /apps/staging/releases/20090310162127/log/staging.log exists and is chmod 0666. The log level ha...

How to prepare to be tech crunched

There is a good chance that we will be tech crunched in the next few days. Unfortunately, we have not gone live yet so we don't have a good estimation of how our system handles a production audience. Our production setup consists of 2 EngineYard slices each with 3 mongrel instances, using Postgres as the database server. Obviously a hu...

Why am I getting an Apache Proxy 503 error?

My server was doing just fine up until yesterday. It was running Redmine (a ruby development tracking application), and it was the happiest little server until my "friend" imported a sql table that my little guy couldn't take. Unfortunately after an hour of trying to get the lil guy to respond, we had to power cycle him. Now after res...

How to restart Rails from within Rails?

Ok, so I would like to create an action in Rails to restart itself. I did a little searching and found: http://snippets.dzone.com/posts/show/5002 Which suggests 2 commands, one to stop and another to restart. The following kills: ps -a|grep "/usr/local/bin/ruby script/server"|grep -v "grep /usr"|cut -d " " -f1|xargs -n 1 kill -KILL ...

Is there a realtime apache/php console similar to webrick or mongrel with ruby on rails?

Is there a realtime apache/php console similar to webrick or mongrel with ruby on rails? I want to be able to monitor what the heck my server is doing. edit: but I don't want to grep the log Thanks! ...

Slow Client connection blocks Mongrel

I have a Apache + Haproxy + Mongrel setup for my rails application. When I hit a particular server page, mongrel takes around 100ms to process the request and I get the page in around 5 secs due to data transmission time on my slow home connection. Now I see that during these 5 secs of data transmission, mongrel does not serve any ot...

Problem starting development server - ruby on rails

Hi I've recently upgraded to Rails 2.3.2 with Ruby 1.8.7. Whenever I start the server like this: cd /myproject script/server It hangs. After I cancel it the only error information that I see is: ^C/Users/timstephenson/.gem/ruby/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/load_error.rb:32:in `new': Interrupt The error ...

Reduce Mongrel Rails Memory Footprint & Increase performance?

My rails sites run Mongrel, I am having a problem with the amount of memory being used. My ruby-bin processes are using up about 66 MB of resident memory. How can I reduce the amount of memory used by rails? It is not very economical to have many rails servers running on a single machine if they are eating memory at this rate. My php...

what happened to mongrel? any alternatives on windows?

I've jus saw that mongrel's last updat was about one year ago... http://mongrel.rubyforge.org/wiki/WikiStart?action=diff&amp;version=35 has it been disontinued? is there any other lightweight alternative for a windows development box? ...

Why can't Rails work with mod_ruby?

I'm sorry if this sounds like a stupid question, because it seems to be one of those "no duh" things, but can someone explain to me why Rails needs its own server (Mongrel, WEBrick, mod_rails, etc) and can't simply use mod_ruby? ...

First request to Rails app is very slow

Hello, always the first request (of a working session) to my Rails app is lagging. Switching to production mode doesn't help. I use mongrel and the other requests are handled with acceptable speed. How do I make it faster? Regards ...

Serving Large Files Through Nginx via Rails 2.3 Using x-sendfile

Let's say I have a Rails 2.3.2 application fronted by nginx and served by mongrel in which I need to serve a large static file through Rails (to control access to it). I want the Rails app to delegate the transfer of the file to nginx, to avoid blocking the mongrel instance. The available information seems contradictory and incomplete. ...

how do i set up a load balanced Rails web server using mongrel, lighttpd and iis on windows 2003

I understand that this is not the perfect environment for doing this but please stick with me and help if you can... The set up I want to achieve is to have my rails application running on a windows 2003 server, using a pack of mongrels with lighttpd acting as the load balancer and IIS in front of it all passing client requests to light...

Running mongrel_rails cluster::start on Windows

I have managed to get mongrel_cluster running on my Windows server (v 1.0.5) ok, but I am having trouble trying to get it to spawning all of the (4) mongrel instances. It launches the first one ok, but then does no more. That one instance serves just fine, but the others are not launched. I assume that this is becasue of: "** WARNING...

`gem install mongrel` fails with ruby 1.9.1

I initiated myself into rails development yesterday. I installed ruby 1.9.1, rubygems and rails. Running gem install mongrel worked fine and ostensibly installed mongrel too. I am slightly puzzled because: script/server starts webrick by default which mongrel returns nothing locate mongrel returns lots of entries like /Developer/SDK...