How to disable plugins in Confluence in 6.1+ using Java system properties

Still need help?

The Atlassian Community is here for you.

Ask the community

This is a Confluence Server feature. These parameters do not work with Confluence Data Center.

Purpose

Confluence added the ability to disable all plugins at start-up using a command line argument. If you would rather have this set permanently, or launch Confluence as a service, you can instead configure this through Java CATALINA_OPTS arguments.

Solution

  1. Use the appropriate method to set System Properties for your operating system from Configuring System Properties
  2. Make the following changes:
    • If Confluence is running on Linux or is launched manually on Windows using start-confluence.bat

      Click here to expand...
      1. Comment out this line:

        CATALINA_OPTS="${START_CONFLUENCE_JAVA_OPTS} ${CATALINA_OPTS}"
      2. Add the following line:

        CATALINA_OPTS="-Datlassian.plugins.startup.options='--disable-all-addons' ${CATALINA_OPTS}"
      3. Save setenv.sh (or setenv.bat)
    • If Confluence is running via a Windows service:

      Click here to expand...
      1. Add the following line to the end of the Java Options field:

        -Datlassian.plugins.startup.options='--disable-all-addons'
      2. Click Ok Save
  3. Stop and Start the Confluence service
Last modified on Dec 15, 2021

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.