Commit graph

7 commits

Author SHA1 Message Date
Tom Hughes
56ddd1a21f Only apply the hard memory limit when running under passenger 2011-11-15 09:17:07 +00:00
Tom Hughes
69f535af32 Reinstate memory limits now we're not using rhino 2011-11-14 19:06:11 +00:00
Tom Hughes
49f4a78240 Disable hard memory limits 2011-11-14 09:42:58 +00:00
Tom Hughes
a491174efa Only shut down the current process when the memory limit is reached
Contrary to what the ruby documentation says, sending a signal
to PID 0 actually signals the whole process group, not just the
current process. So use Process.pid to make sure we only signal
the current process.
2010-12-19 00:15:24 +00:00
Tom Hughes
f07819d81a Rework application configuration
Use a preinitializer to load the settings from application.yml so
that they are available as early as possible. All settings can also
be overridden using environment variables.

The ad-hoc settins in environment.rb are then moved to this new
system so we have one consistent location for settings.
2010-08-04 22:06:05 +01:00
Tom Hughes
723cb57e6d Don't put MemoryLimit class in the OSM module as it breaks autoloading 2010-07-19 18:15:40 +01:00
Tom Hughes
5e2b8d087c Make memory limits configurable and make them work with passenger 2010-07-19 18:01:42 +01:00