码迷,mamicode.com
首页 > 其他好文 > 详细

maven nexus memory optimization

时间:2018-11-21 18:37:22      阅读:189      评论:0      收藏:0      [点我收藏+]

标签:ons   nbsp   OWIN   mac   xmx   rap   set   follow   bin   


#链接地址:https://help.sonatype.com/repomanager3/system-requirements#filehandles

While starting Nexus I was getting following error, this was on a machine that was running at 1GB of memory.

Error occurred during initialization of VM
Could not reserve enough space for object heap

So the solution was to edit /usr/local/nexus/bin/jws/wrapper.conf
and add wrapper.java.additional.4=-Xmx128m parameter this setup java to use only 128mb of memory for the new VM.

Solution 2
After further analysis of the config file there are following options that can be set as well, just need to uncomment them

# Size Java memory, in MB (-Xms)
#wrapper.java.initmemory=128
# Size Java memory, in MB (-Xmx)
#wrapper.java.maxmemory=256

maven nexus memory optimization

标签:ons   nbsp   OWIN   mac   xmx   rap   set   follow   bin   

原文地址:https://www.cnblogs.com/ipyanthony/p/9996708.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!