Hi
Nexus OSS 3.12.1-01 systemd service
com.orientechnologies.orient.core.exception.OJVMErrorException: JVM error 'OutOfMemoryError : Java heap space' occurred during data processing, storage is switched to 'read-only' mode.
To prevent this exception please restart the JVM and check data consistency by calling of 'check database' command from database console.
I tried adding in the nexus startup script:
# Uncomment the following line to add additional VM parameters
INSTALL4J_ADD_VM_PARAMS="-Xms1600M -Xmx1600M -XX:MaxDirectMemorySize=2G"
But this results in it showing twice and the last option overwrites the first:
/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java -server -Dinstall4j.jvmDir=/usr/lib/jvm/java-8-openjdk-amd64/jre -Dexe4j.moduleName=/home/nexus/nexus-current/bin/nexus .... -Xms1200M -Xmx1600M -XX:MaxDirectMemorySize=2G -Xms1200M -Xmx1200M -XX:MaxDirectMemorySize=2G ....
How should this be configured ?
can I put it in nexus.properties or nexus.service so it survives an upload?
Thanks
--
MortenB