ITeye博客

AOSP source code build error: Virtual memory exhausted: Cannot allocate memory

allenshao · 2014-01-02 15:47 · Android · Ubuntu · Memo · 移动开发 · Markdown

Sometimes compiling certain things from source I've received a "virtual memory exhausted: Cannot allocate memory" error. The following is a quick tip to maybe allow gcc/libtool/make/whatever to finish their duty.

Change the user’s limits.


ulimit -n

and it is current showing as 1024. Increase limit from 1024 to 4084.

ulimit -n 2048

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。