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

Incapable of initializing JVM because of ExplicitGCInvokesConcurrentAndUnloadsClasses #169

Closed
rafaelcn opened this issue Aug 12, 2020 · 3 comments

Comments

@rafaelcn
Copy link

After the configuration of the project is done and I try to initialize ./modules/testbed/build/install/testbed/bin/q2 -cli it fails with the following error:

[0.000s][warning][gc] -Xloggc is deprecated. Will use -Xlog:gc:log/gc.log instead.
Unrecognized VM option 'ExplicitGCInvokesConcurrentAndUnloadsClasses'
Did you mean '(+/-)ExplicitGCInvokesConcurrent'? Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

Where can I change the initialization vars of the JVM?

@rafaelcn
Copy link
Author

Nevermind, I found it on the q2 script.

@rafaelcn
Copy link
Author

rafaelcn commented Aug 12, 2020

To fix this problem I had to comment all of the following variables:

#!/bin/sh

cd `dirname $0`/.. || exit 1
rm -f deploy/shutdown.xml
java -server \
    -Dappname=jPOSEE-testbed \
    -Duser.name=admin \
    -Dcom.sun.management.jmxremote \
    -Duser.name=admin \
    -Xloggc:log/gc.log \
    -Dorg.mortbay.xml.XmlParser.NotValidating=true \
    -Xmx1G -Xms1G \
    -jar jposee-testbed-2.2.7-SNAPSHOT.jar "$@"
    #-XX:+UseConcMarkSweepGC  \
    #-XX:+AggressiveOpts \
    #-XX:+ParallelRefProcEnabled \
    #-XX:+TieredCompilation \
    #-XX:+ExplicitGCInvokesConcurrentAndUnloadsClasses \

@rafaelcn rafaelcn reopened this Aug 12, 2020
@rafaelcn
Copy link
Author

rafaelcn commented Aug 12, 2020

Every time I use any of these commented variables the logger would complain about <variable> not found at the end.

@ar ar closed this as completed in 8134502 Aug 13, 2020
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