Questions tagged [mongrel]

Mongrel is an open-source HTTP library and web server written in Ruby.

It is used to run Ruby web applications and presents a standard HTTP interface. This makes layering other servers in front of it possible using a web proxy, a load balancer, or a combination of both, instead of having to use more conventional methods employed to run scripts such as FastCGI or SCGI to communicate.

265 questions
8
votes
3 answers

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?
Sasha Chedygov
  • 127,549
  • 26
  • 102
  • 115
8
votes
1 answer

Why doesn't mongrel start in Rails 3.2.rc?

GEMFILE that starts mongrel gem 'rails', '3.1.0' gem 'mongrel', '>=1.2.0.pre2' GEMFILE that start WEBrick (not mongrel) gem 'rails', '3.2.0.rc2' gem 'mongrel', '>=1.2.0.pre2'
Sam Duvall
  • 265
  • 2
  • 13
8
votes
4 answers

How do you restart Rails under Mongrel, without stopping and starting Mongrel

Is there a way to restart the Rails app (e.g. when you've changed a plugin/config file) while Mongrel is running. Or alternatively quickly restart Mongrel. Mongrel gives these hints that you can but how do you do it? ** Signals ready. TERM => stop.…
DEfusion
  • 5,533
  • 5
  • 44
  • 60
8
votes
1 answer

Rails mongrel with RVM fails to startup - mongrel_rails (MissingSourceFile)

I'm having trouble with RVM and mongrel_rails getting along, so any help would be greatly appreciated. I can happily start my Rails 2.x application with script/server using the Ruby gem mongrel. Details: which rails /opt/local/bin/rails which…
Dandan
  • 650
  • 1
  • 10
  • 17
8
votes
3 answers

Ruby On Rails on Windows with Mongrel

Where is the best tutorial for getting Ruby On Rails working on a windows box with Mongrel? I'm a complete novice at server management, so the more detailed the better!
Ethan Gunderson
  • 10,959
  • 8
  • 30
  • 29
8
votes
3 answers

mongrel_rails - programatically report which port it's running on

On my local machine, i run rails with mongrel. I have some stuff which runs when it starts, via a file in config/initializers, which uses puts to tell me which database it's using, what is being used to send emails, and a few other bits of…
Max Williams
  • 32,435
  • 31
  • 130
  • 197
8
votes
3 answers

Which one of these is a better option to use alongside "latest rails" application? Mongrel, Thin, WEBrick and Passenger

I have been playing around and evaluating other options to rails' default WEBrick server and Thin was the most painless and clean thing which worked very well!! which one of these Mongrel, Thin, WEBrick and Passenger would you recommend and…
brucewayne
  • 103
  • 1
  • 6
7
votes
3 answers

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&version=35 has it been disontinued? is there any other lightweight alternative for a windows development box?
opensas
  • 60,462
  • 79
  • 252
  • 386
7
votes
3 answers

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…
Mike Stone
  • 44,224
  • 30
  • 113
  • 140
7
votes
11 answers

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…
Giann
  • 3,142
  • 3
  • 23
  • 33
7
votes
3 answers

How to do a rolling restart of a cluster of mongrels

Anybody know a nice way to restart a mongrel cluster via capistrano in a "rolling" style, eg, one mongrel at a time. Would be great to have a bit of wait time in there as well for each, to let the mongrel load the rails app up as well. I've done…
Cameron Booth
  • 6,882
  • 5
  • 28
  • 22
6
votes
4 answers

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…
Kekoa
  • 27,892
  • 14
  • 72
  • 91
6
votes
1 answer

Howto - Running Redmine on mongrel as a service on windows

I use Redmine on Mongrel as a project manager and I use a batch file (start-redmine.bat) to start the redmine in mongrel. There are 2 issues with my setup: 1. I have a running IIS on the server that occupies the HTTP port (80) 2. The…
Achilles
  • 1,554
  • 1
  • 28
  • 36
5
votes
1 answer

Can't Save "Is a Tomcat Project" setting in Eclipse Project Properties

I have a Spring MVC project that I've been deploying to Tomcat (installed both locally and on a server). I'm using Eclipse Indigo as my IDE. To deploy, I had been right clicking and choosing "run on server", which would run fine on localhost. For…
Erik Dietrich
  • 6,080
  • 6
  • 26
  • 37
5
votes
5 answers

First request to Rails app is very slow

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
Stefan
  • 28,843
  • 15
  • 64
  • 76
1
2
3
17 18