Hacker News new | ask | show | jobs
by judk 4373 days ago
A few simple ways: put shared data in PermGen, and rollover to a new process when memory gets low (erlang-style but at OS-level).
1 comments

Well I wouldn't say "roll-over" to the new process is exactly simple but it is a good trick though. Forking has its interesting dark cases that have to be handled. Inherited file descriptors, what happens to threads, signals and so on.