[Webinar] Streamline your web hosting managementRegister Today


Strange mongrel behavior

Posted on 2008-02-05
Medium Priority
Last Modified: 2013-11-13
hi experts,

I am using mongrel server on windows 2000 for a small rails application and this is test version for now. Very rarely, when I click a link, the entire web app freeze.(BTW, this happened very rarely.) If that happens, no link works and I dont get any info from the log file. It looks like to me, mongrel server got stuck somewhere. The only option is restarting server. If I stop the server, it prints all the unexecuted log statement prints out.
BTW, I use this command to run the mongrel server

Ruby script/server e test p 4001

Has anyone ever experience this?

BTW, is this OK to use mongrel server for production if this rails app is small and has a few users?

Question by:dkim18
LVL 14

Accepted Solution

wesgarrison earned 2000 total points
ID: 20827792
Well, if you're running in the test environment, this could be an issue.  Test environment is for running your automated tests.  Use production or development for actually viewing the application in a browser.

That's the first thing I'd try.  If you're working with it locally, use development because it reloads the files for each request (good for if you change something and want to see it right away!)  If you've put it on a separate server for others to use, use production (doesn't reload requests, so it's quicker).

Can you clarify "If I stop the server, it prints all the unexecuted log statement print out."?  When you hit control-c, that 'unsticks' the process and it shows you the click that you've been waiting on?

Mongrel is fine for production environments.  I run all of my production apps with mongrel.

You can set up mongrel as a cluster if you need to, so that allows you to have multiple mongrels instances running.

Author Comment

ID: 20834888
Ok, that is good to know. Actually, when I ran it for production environment, I don't think I had this issue. I will bring up this issue again if I experience same thing.

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: narshlob
If you've ever programmed in Ruby and have come across either a proc or a lambda, you might have been wondering what the difference is between the two and when you would use one over the other. This article will try to explain the difference between…
In Ruby, Call or invoke a API DLL library is easily via Win32API class, win32-api gem or other gems. For general DLL API call, there are quite a few references, some good tips list below: http://www.rubytips.org/2008/05/13/accessing-windows-api-fro…
The Relationships Diagram is a good way to get an overall view of what a database is keeping track of. It is also where relationships are defined. A relationship specifies how two tables connect to each other. As you build tables in Microsoft Ac…
Get the source code for a fully functional Access application shell with several popular security features that Access VBA application developers desire, but find difficult or impossible to figure out how to code. You get the source code for managi…
Suggested Courses
Course of the Month9 days, 15 hours left to enroll

591 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question