jre爆了、内存溢出:There is insufficient memory for the Java Runtime Environment to continue.

内存溢出问题、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
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值