Out of Memory - Per-process Memory Limits

Per-process Memory Limits

A system may limit the amount of memory each process may use. This is usually a matter of policy but it can also happen when the OS has a larger address space than is available at the process level. Some high-end 32-bit systems come with 8GB or more of system memory, even though any single process can only access 4GB of it in a 32-bit flat memory model.

A process that exceeds its per-process limit will have attempts to allocate further memory, for example with malloc, return failure. A well-behaved application should handle this situation gracefully; however, many do not. An attempt to allocate memory without checking the result is known as an "unchecked malloc".

Read more about this topic:  Out Of Memory

Famous quotes containing the words memory and/or limits:

    Remember thee?
    Ay, thou poor ghost, whiles memory holds a seat
    In this distracted globe. Remember thee?
    Yea, from the table of my memory
    I’ll wipe away all trivial fond records,
    All saws of books, all forms, all pressures past
    That youth and observation copied there,
    And thy commandment all alone shall live
    Within the book and volume of my brain,
    William Shakespeare (1564–1616)

    Yet shall he mount, and keep his distant way
    Beyond the limits of a vulgar fate:
    Beneath the Good how far—but far above the Great.
    Thomas Gray (1716–1771)