maven nexus memory optimization

Posted 安东尼漂流记

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了maven nexus memory optimization相关的知识,希望对你有一定的参考价值。


#链接地址: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的主要内容,如果未能解决你的问题,请参考以下文章

计算机系统结构总结_Memory Hierarchy and Cache Optimization

Hekaton: SQL Server’s Memory-Optimized OLTP Engine

部署Maven与Nexus(私服)

maven私服仓库nexus,怎样手动上传jar

maven从nexus下载构件以及maven部署构件到nexus的配置

Maven学习 使用Nexus搭建Maven私服