You aren't running this in the standard language/caching/db setup, then?
You're storing EVERYTHING in memory? Isn't this kind of.. well, stupid, frankly.
You're storing EVERYTHING in memory? Isn't this kind of.. well, stupid, frankly.
A server restart mechanism is also pretty simple. Write a cron job that activates every few seconds to ps aux and grep for the server name, and if it's not there start the server. That won't catch server hangs rather than deaths, but that's exactly the problem that happened here.
You could always use Erlang...
database are not tied to a storage medium. there is no reason why you can't run a DB (key-val or even a full RDBMS) in RAM.