LKBEN11045: Posix error 12: Cannot allocate memory


This article has not been checked!

LKB | Created: 02/04/2020 | Version: 0 | Language: EN | Rating: 0 | Outdated: False | Marked for deletion: False

Author: Wim Peeters - Keskon GmbH & Co. KG


Symptom

You get the error message: Cannot allocate memory

Cause

none

Solution

This error can have my causes.

Hier you see a few of the messages you might get:

e.g. mmap: Cannot allocate memory
e.g. /bin/ps: Cannot allocate memory
e.g. Linux Error: 12: Cannot allocate memory
e.g. mount error: 12: Cannot allocate memory
e.g. cpio: read error: Cannot allocate memory (not the same!)


To troubleshoot this kind of message you should look for disk space, memory usage, swap space, forking speed of subprocesses, ... and eventually boot a

rescue CD and test your memory. (just to make shure your hardware is ok)

Are you using a swapfile?

If you are mounting a windows filesystem on your linux system, check your eventviewer on the windows site! You might try to play with
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LanmanServer\Parameters\IRPStackSize but do this on your own risk!

If you are using a Macintosh checking your proxy settings might help! (deactivate the checkbox for automatic proxy settings!)


About the Author

Wim Peeters is electronics engineer with an additional master in IT and over 30 years of experience including time spent in support, development, consulting, training and database administration. Wim has worked with SQL Server since version 6.5. He has developed in C/C++, Java and C# on Windows and Linux in different European countries and different European languages. He writes knowledge base articles to solve IT problems and publishes them on the Lubby Knowledge Platform where he is one of the most important contributors and the main developer.

Disclaimer:

The information provided in this document is intended for your information only. Lubby makes no claims to the validity of this information. Use of this information is at own risk!