[zeromq-dev] Memory allocation/Exception

Steven McCoy steven.mccoy at miru.hk
Tue Mar 24 12:27:23 CET 2009

2009/3/24 Martin Sustrik <sustrik at fastmq.com>:
> Because there's very little you can do when computer is already out of
> resources. Even simplest attempts to fix the problem tend to fail in
> that case. The goal is never to let such a thing happen. That's why
> we've introduced queue limits and (with version 0.6) on-disk offload of
> the queues that allows you to store gigabytes of data without affecting
> memory footprint etc.

FYI:  GLib takes the stance of immediately terminating.

Not forgetting that on platforms such as Linux new() will probably
never fail as malloc() doesn't due to the performance handling of OOM
situations, i.e. "optimistic memory allocation".



More information about the zeromq-dev mailing list