I'm getting some strange behavior of my Rails app sometimes. For no particular reason, it would generate an error like "NoMethodError" or like and if I reload the page a couple of times or restart the Rails app, it would fix it. This happens only on the production server (raptor I think) and not on my development environment. I did not really investigate deeper, and setup a crontab script to restart my Rails app everyday (basically killing the dispatch.cfgi and ruby processes, cleaning temp files).
This leads me to several questions.
* Sometimes when I restart the rails app, it takes a lot of times before the server is accessible. I guess Rails might be preloading stuff but I get strange log messages in the error log (repeated maybe 50 times or more):
[Wed Jan 10 11:23:13 2007] [warn] FastCGI: can't schedule the start of another (dynamic) server "/home/XXXXXX/public_html/dispatch.fcgi" process: exceeded dynamicMaxProcs (50)
A quick google pointed me to a similar problem http://forums.site5.com/showthread.php?t=7726 with possible solutions. Would this apply to hostingrails?
* I'm using the free hosting right now, so I fully understand I can't expect 24/7 uptime. But if I'm going to pay (and I plan too), I'd like to make sure I won't get any problem. Today around 3pm/4pm (GMT+1), my web site was no longer reachable or returning random 500 error (like the NoMethodError). I logged on raptor (was very slow), restarted the app, it did not really help. After few minutes I saw that the server was restarted. Is there some kind of load problem on this server? (I guess your free rebate is having a lot of success :), maybe too much?)
* When I will sign up for a "real" plan, will my account be moved to another server? If so will it require changes from me?
thanks for reading me :)
-fred