How do I give Nexus more than 4Gb of heap memory?

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

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 4Gb of heap space, 2Gb is more than sufficient for almost all installations.

Have more questions? Submit a request


Article is closed for comments.
Powered by Zendesk