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

openjdk 11 - UseGCLogFileRotation not accepted in the JVM #196

Open
pier4r opened this issue Jan 29, 2020 · 3 comments
Open

openjdk 11 - UseGCLogFileRotation not accepted in the JVM #196

pier4r opened this issue Jan 29, 2020 · 3 comments

Comments

@pier4r
Copy link

pier4r commented Jan 29, 2020

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 4.10
  • Ruby:
  • Distribution: CentOS 7.7
  • Module version: 3.2.0

How to reproduce (e.g Puppet code you use)

Use openjdk 11. Namely

class { 'java':
    package => 'java-11-openjdk',
}

...

class { 'confluence':
    version           => $confversion,
    installdir        => '/opt/atlassian',
    homedir           => '/data/confluence-home',
    javahome          => $facts['java_default_home'],
    jvm_xmx           => '10G',
    jvm_xms           => '2G',
    java_opts         => '-XX:MaxMetaspaceSize=512m -XX:+UseG1GC -Dconfluence.upgrade.recovery.file.enabled=false -Dsynchrony.proxy.healthcheck.disabled -Dsynchrony.memory.max=3G -Dsynchrony.enable.xhr.fallback=true -Datlassian.plugins.enable.wait=300',
    manage_server_xml => 'template',
    tomcat_proxy      => {
            scheme    => 'https',
            proxyName => 'localhost',
            proxyPort => '8009',
    },
}

What are you seeing

Puppet can run but confluence can't.

The problem that confluence notify is the following:

NOTE: Picked up JDK_JAVA_OPTIONS:  --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
[0.001s][warning][gc] -Xloggc is deprecated. Will use -Xlog:gc:/opt/atlassian/atlassian-confluence-7.1.1/logs/gc-2020-01-29_16-51-35.log instead.
Unrecognized VM option 'UseGCLogFileRotation'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

In: /opt/atlassian/atlassian-confluence-7.1.1/logs/catalina.out

What behaviour did you expect instead

That confluence could work.

Output log

Any additional information you'd like to impart

We used the module version 3.0.0 , there the log option is not reported.
In the version 3.2.0 there is, here: https://github.com/voxpupuli/puppet-confluence/blob/v3.2.0/templates/setenv.sh.erb#L85

My request is whether the module could have

  • either setenv.sh compatible with openjdk 11
  • or a setenv.sh that can be controlled with more granularity, so that one can override default decisions.
@timdeluxe
Copy link
Contributor

FYI: This is already fixed in the repo, however there was no new release of the module since 2018 (i don't know why). If you want to have a working module in your setup put for example this into your Puppetfile instead of your current entry:
mod 'puppet-confluence', :git => 'https://github.com/voxpupuli/puppet-confluence', :ref => '847c6e3e8b05709ec136f503cb4fd4baf30786fc'

@augustocarvalho
Copy link

augustocarvalho commented Sep 25, 2020

confluence (7.4.4) works with openjdk-11 and puppet-confluence 4.0.0

@igalic
Copy link
Contributor

igalic commented Sep 26, 2020

there was no new release of the module since 2018 (i don't know why).

because no one asked for it / initiated it

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

4 participants