Nexus3, official docker image - how to persistenctly override -XX:MaxDirectMemorySize value?

278 views
Skip to first unread message

Danny Kulchinsky

unread,
Aug 31, 2017, 1:32:34 PM8/31/17
to Nexus Users
Hello,

In the process of deploying Nexus3 using the official docker image, I was able to adjust the Java heap min/max values using the INSTALL4J_ADD_VM_PARAMS env variable, however I don't see a way to persisently control -XX:MaxDirectMemorySize, this value is defined in /opt/sonatype/nexus/bin/nexus.vmoptions and it is not a persistent location (it is part of the docker image).


We have a 32GB server, and according to this we need to adjust this parameter to 17530M, however I don't see a striaghforward way to do it without creating a custom docker image.


Please advise,
Danny

Rich Seddon

unread,
Aug 31, 2017, 2:21:56 PM8/31/17
to Nexus Users
Hi Danny,

This is a good point, our Docker image should allow customization of that value, since we do recommend increasing it on systems that have sufficient RAM to allow it.

I've filed an issue here for this:


Regards,

Rich

--
You received this message because you are subscribed to the Google Groups "Nexus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nexus-users+unsubscribe@glists.sonatype.com.
To post to this group, send email to nexus...@glists.sonatype.com.
To view this discussion on the web visit https://groups.google.com/a/glists.sonatype.com/d/msgid/nexus-users/6d49e5e8-dd47-4e4f-9bd2-d67bf107ba6c%40glists.sonatype.com.
For more options, visit https://groups.google.com/a/glists.sonatype.com/d/optout.

Danny Kulchinsky

unread,
Aug 31, 2017, 3:55:11 PM8/31/17
to Nexus Users
Thanks for the Prompt response!

Looking forward for the fix.


Danny


On Thursday, August 31, 2017 at 2:21:56 PM UTC-4, Rich Seddon wrote:
Hi Danny,

This is a good point, our Docker image should allow customization of that value, since we do recommend increasing it on systems that have sufficient RAM to allow it.

I've filed an issue here for this:


Regards,

Rich
On Thu, Aug 31, 2017 at 12:32 PM, Danny Kulchinsky <dann...@gmail.com> wrote:
Hello,

In the process of deploying Nexus3 using the official docker image, I was able to adjust the Java heap min/max values using the INSTALL4J_ADD_VM_PARAMS env variable, however I don't see a way to persisently control -XX:MaxDirectMemorySize, this value is defined in /opt/sonatype/nexus/bin/nexus.vmoptions and it is not a persistent location (it is part of the docker image).


We have a 32GB server, and according to this we need to adjust this parameter to 17530M, however I don't see a striaghforward way to do it without creating a custom docker image.


Please advise,
Danny

--
You received this message because you are subscribed to the Google Groups "Nexus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nexus-users...@glists.sonatype.com.
Reply all
Reply to author
Forward
0 new messages