》
内存溢出问题、idea 报错如下:
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (malloc) failed to allocate 69792 bytes for Chunk::new
# An error report file with more information is saved as:
# G:\Develop\ideaworkspace\code\leyou\ly-search\hs_err_pid9716.log
#
# Compiler replay data is saved as:
# G:\Develop\ideaworkspace\code\leyou\ly-search\replay_pid9716.log
进入Linux
cd /etc/security/
ll
vi limits.d 中有 90-nproc.conf,进入90-nproc.conf
注释掉 max user processes (-u) 4069
1、 limits.d 中有 90-nproc.conf
" ============================================================================
" Netrw Directory Listing (netrw v134)
" /etc/security/limits.d
" Sorted by name
" Sort sequence: [\/]$,\.h$,\.c$,\.cpp$,*,\.o$,\.obj$,\.info$,\.swp$,\.bak$,\~$
" Quick Help: <F1>:help -:go up dir D:delete R:rename s:sort-by x:exec
" ============================================================================
../
90-nproc.conf
2、修改 90-nproc.conf
vi /etc/security/limits.d/90-nproc.conf
# Default limit for number of user's processes to prevent
# accidental fork bombs.
# See rhbz #432903 for reasoning.
#* soft nproc 4096
root soft nproc unlimited