首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

设立maven nexus运行内存(转)

2013-07-09 
设置maven nexus运行内存(转)转自:http://www.gregbugaj.com/?p230?While starting Nexus I was getting

设置maven nexus运行内存(转)

转自:http://www.gregbugaj.com/?p=230

?

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

热点排行