Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-4785

Isolate broker run command Log4j and profile config from other CLI commands

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.33.0
    • 2.37.0
    • Configuration
    • None

    Description

      Isolate the broker 'run' command Log4j and profile from the other CLI commands, such that the logging configs dont interfere with each others execution, and other commands can be conigured differently than the run command.

      See also sub-tasks: ARTEMIS-4702 and ARTEMIS-4974

       

      Original description:
      =================

      I have come across a strange issue where the root cause is the instance dir cli sharing the log4j config with the broker.

      the logging has a rolling file appender schedual of 1 minute. looks to be working fine, then use instance-dir/bin/artemis produicer --user invalid to generate logging... and the broker appender gets borked.

      The problem, the cli is reading the same log4j2 config from the etc dir on the classpath.

      This is not ideal.
      One workaroud is to use the installation dir artemis for producer!consumer commands.

      I wonder if we should use -Dlog4j.configuration to specify a file not on the classpath for the broker. and leave etc off the classpath?

      I guess there are a few ways to solve this. but there is indeed a gotcha here.

      thoughts?

      Attachments

        Issue Links

          There are no Sub-Tasks for this issue.

          Activity

            People

              brusdev Domenico Francesco Bruscino
              gtully Gary Tully
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 5h 50m
                  5h 50m