Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tuning java #2

Open
gajowi opened this issue Sep 8, 2017 · 1 comment
Open

tuning java #2

gajowi opened this issue Sep 8, 2017 · 1 comment

Comments

@gajowi
Copy link

gajowi commented Sep 8, 2017

Can you please add some information on:

  • passing java options
  • choosing/tuning java options to pass
    and set some default java options that are sufficient to run ncwms if/when it is enabled (maybe -Xmx2G).

I've found that setting JAVA_OPTS in the environment is picked up by tomcat. This can be done with the docker run --env option or the docker-compose environment configuration option. It might be good to define JAVA_OPTS in the dockerfile(s), as a reference as well as a means of setting hyrax-docker specific defaults. Rece

Note that it is well known that java in docker/containers can't easily determine how much memory is available/allowed so there is an implicit expectation that the environment will have to be tuned for given use-cases.

I don't think it will help much for me to alter the README and make a PR. I'm willing to do so if you ask.

Gareth

cross-ref: https://groups.google.com/a/opendap.org/forum/#!topic/support/xLoTzkg6s6A

@gajowi
Copy link
Author

gajowi commented Aug 26, 2022

I just tried shifting to one of the latest "c7" builds and find that JAVA_OPTS no longer works. With a bit of poking about and trial and error I find CATALINA_OPTS now works.
I think java has changed - perhaps JAVACMD_OPTS is now expected - but a "catalina" setting seems more appropriate in any case so I'm personally happy to stick with that.
You might update the README...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant