How do I give Nexus Repository 2 more than 4 gb of heap memory?

Visit for documentation on Nexus Repository version 2.

There is a 4 gb limit imposed by the Java Service Wrapper watchdog process used by Nexus Repository 2.

If you need more memory, comment out the line in <nexus_root>/bin/jsw/conf/wrapper.conf and add a line to the arguments. Example:

Make sure the sequence number (shown here as "4") is consecutive with the other additional argument lines.

Note: It is very unlikely that you actually need more than 4 gb of heap space.

Have more questions? Submit a request


Article is closed for comments.