flashmq(1)

NAME
flashmq - A fast light-weight scalable MQTT server

SYNOPSIS
flashmq
[-c | --config-file config_file_path] | [-t | --test-config] |
[-h | --help] |
[-v | --version] |
[-l | --license]

DESCRIPTION
FlashMQ is a MQTT 3.1, 3.1.1 and 5 broker designed to be light-weight and handle millions of clients and/or messages.

SIGNALS

\FCSIGHUP\F[]
    Reload config file and reopen log files. Listeners are recreated. Bridges are reconnected (when their config has changed), added or removed as necessary.

\FCSIGUSR1\F[]
    Reopen log files. Use this in log rotation.

\FCSIGUSR2\F[]
    It has been observed that certain implementations of malloc have a high memory use while still having many free blocks. See for instance the libc mailing list discussion “Abnormal memory usage with glibc 2.31 related to thread cache and trimming strategy” [https://sourceware.org/pipermail/libc-help/2020-September/005457.html]. This can be exacerbated by continuous thread recreation, because of how "memory arenas" are managed. FlashMQ has a fixed number of threads, but that may not be true for loaded plugins. Sending a SIGUSR2 will cause FlashMQ to call malloc_trim(0), possibly resulting in it giving memory back to the operating system.

    The action is mostly pretty fast, but if not, the main loop will block during the operation, blocking the ability to accept new connections. The worker threads themselves will keep running and keep serving clients.

    Use, or need, of this feature on a regular basis is questionable, but at least it can help in a pinch.

COMMAND-LINE ARGUMENTS

\FC--help | -h\F[]
    Print help with synopsis.

\FC--version | -v\F[]
    Print FlashMQ version details.

\FC--license | -l\F[]
    Print FlashMQ license.

\FC--config-file | -c config_file_path\F[]
    flashmq will read the config file from the given config_file_path.

    Without this option, the default config_file_path is /etc/flashmq/flashmq.conf.

    See the flashmq.conf(5) manual page for the format of this file.

\FC--test-config | -t\F[]
    Test the configuration, without starting the daemon.

AUTHOR
Wiebe Cazemier <contact@flashmq.org>.

SEE ALSO
man:flashmq.conf(5), https://www.flashmq.org/

COLOPHON
The sources for the FlashMQ manual pages are maintained in DocBook 5.2 [https://tdg.docbook.org/tdg/5.2/] XML files. The transformation to the multiple destination file formats is done using a bunch of XSLT 1.0 sheets, contributed to this project by Rowan van der Molen.

The groff source of this man-page has ANSI-color support for the terminal. However, Debian-derived Linux distributions turn off groff color support by default. To override this, set the GROFF_SGR environment variable to 1.