Mirror of Apache ActiveMQ Artemis
Go to file
Clebert Suconic 8078dd098c ARTEMIS-4171 Messages leaking thorugh AMQP Delivery
there are two leaks here:

* QueueImpl::delivery might create a new iterator if a delivery happens right after a consumer was removed, and that iterator might belog to a consumer that was already closed
             as a result of that, the iterator may leak messages and hold references until a reboot is done. I have seen scenarios where messages would not be dleivered because of this.

* ProtonTransaction holding references: the last transaction might hold messages in the memory longer than expected. In tests I have performed the messages were accumulating in memory. and I cleared it here.
2023-02-28 14:36:32 -05:00
.github ARTEMIS-4076: add a JDK 19 run to CI jobs 2022-10-27 16:16:42 +01:00
.settings ACTIVEMQ6-1 - Initial HornetQ Donation Commit 2014-11-10 10:31:25 -06:00
artemis-boot [maven-release-plugin] prepare for next development iteration 2023-01-31 07:22:48 -05:00
artemis-cdi-client [maven-release-plugin] prepare for next development iteration 2023-01-31 07:22:48 -05:00
artemis-cli ARTEMIS-4160 Handle hostnames with double dashes 2023-02-22 06:01:45 +01:00
artemis-commons ARTEMIS-4171 Messages leaking thorugh AMQP Delivery 2023-02-28 14:36:32 -05:00
artemis-core-client [maven-release-plugin] prepare for next development iteration 2023-01-31 07:22:48 -05:00
artemis-core-client-all [maven-release-plugin] prepare for next development iteration 2023-01-31 07:22:48 -05:00
artemis-core-client-osgi [maven-release-plugin] prepare for next development iteration 2023-01-31 07:22:48 -05:00
artemis-distribution [maven-release-plugin] prepare for next development iteration 2023-01-31 07:22:48 -05:00
artemis-docker NO-JIRA small Docker clean-ups/fixes 2022-09-19 09:58:09 -05:00
artemis-dto [maven-release-plugin] prepare for next development iteration 2023-01-31 07:22:48 -05:00
artemis-features [maven-release-plugin] prepare for next development iteration 2023-01-31 07:22:48 -05:00
artemis-hawtio [maven-release-plugin] prepare for next development iteration 2023-01-31 07:22:48 -05:00
artemis-jakarta-client [maven-release-plugin] prepare for next development iteration 2023-01-31 07:22:48 -05:00
artemis-jakarta-client-all [maven-release-plugin] prepare for next development iteration 2023-01-31 07:22:48 -05:00
artemis-jakarta-ra [maven-release-plugin] prepare for next development iteration 2023-01-31 07:22:48 -05:00
artemis-jakarta-server [maven-release-plugin] prepare for next development iteration 2023-01-31 07:22:48 -05:00
artemis-jakarta-service-extensions [maven-release-plugin] prepare for next development iteration 2023-01-31 07:22:48 -05:00
artemis-jdbc-store [maven-release-plugin] prepare for next development iteration 2023-01-31 07:22:48 -05:00
artemis-jms-client [maven-release-plugin] prepare for next development iteration 2023-01-31 07:22:48 -05:00
artemis-jms-client-all [maven-release-plugin] prepare for next development iteration 2023-01-31 07:22:48 -05:00
artemis-jms-client-osgi [maven-release-plugin] prepare for next development iteration 2023-01-31 07:22:48 -05:00
artemis-jms-server [maven-release-plugin] prepare for next development iteration 2023-01-31 07:22:48 -05:00
artemis-journal ARTEMIS-4175 JournalFileImpl Leaking 2023-02-28 13:54:03 -05:00
artemis-junit [maven-release-plugin] prepare for next development iteration 2023-01-31 07:22:48 -05:00
artemis-log-annotation-processor [maven-release-plugin] prepare for next development iteration 2023-01-31 07:22:48 -05:00
artemis-maven-plugin [maven-release-plugin] prepare for next development iteration 2023-01-31 07:22:48 -05:00
artemis-protocols ARTEMIS-4171 Messages leaking thorugh AMQP Delivery 2023-02-28 14:36:32 -05:00
artemis-quorum-api [maven-release-plugin] prepare for next development iteration 2023-01-31 07:22:48 -05:00
artemis-quorum-ri [maven-release-plugin] prepare for next development iteration 2023-01-31 07:22:48 -05:00
artemis-ra [maven-release-plugin] prepare for next development iteration 2023-01-31 07:22:48 -05:00
artemis-selector [maven-release-plugin] prepare for next development iteration 2023-01-31 07:22:48 -05:00
artemis-server ARTEMIS-4171 Messages leaking thorugh AMQP Delivery 2023-02-28 14:36:32 -05:00
artemis-server-osgi [maven-release-plugin] prepare for next development iteration 2023-01-31 07:22:48 -05:00
artemis-service-extensions [maven-release-plugin] prepare for next development iteration 2023-01-31 07:22:48 -05:00
artemis-unit-test-support [maven-release-plugin] prepare for next development iteration 2023-01-31 07:22:48 -05:00
artemis-web ARTEMIS-4176 Fix console custom root redirect 2023-02-23 12:56:06 +00:00
artemis-website ARTEMIS-4158 upgrade doc generation utils 2023-02-16 13:38:44 -08:00
docs ARTEMIS-4177 remove defunct logging doc 2023-02-24 12:15:11 -06:00
etc ARTEMIS-3341 update checkstyle to latest + update code 2021-06-11 12:16:04 +01:00
examples ARTEMIS-4179 Fix security-keycloak log errors 2023-02-27 11:46:55 +01:00
integration/activemq-spring-integration [maven-release-plugin] prepare for next development iteration 2023-01-31 07:22:48 -05:00
scripts ARTEMIS-3969 Removing Extra tests from the codebase 2022-09-02 13:04:53 -04:00
tests ARTEMIS-4171 Messages leaking thorugh AMQP Delivery 2023-02-28 14:36:32 -05:00
.asf.yaml NO-JIRA disable merge and squash buttons on github 2020-11-16 10:30:07 -05:00
.gitignore NO-JIRA Adding vim .swp and .swo files into .gitignore 2021-08-09 14:21:39 -04:00
.project More name changes to activemq 2014-11-19 16:01:54 -05:00
LICENSE ARTEMIS-565 Replace json.org with javax.json 2016-07-25 21:44:57 -04:00
NOTICE NO-JIRA update year in NOTICE file 2023-01-01 08:10:00 -06:00
README.md ARTEMIS-3474 - replace whitelist with allowlist in management.xml 2021-09-16 17:19:02 -05:00
RELEASING.md NO-JIRA add new release step 2023-01-18 14:04:35 -06:00
artemis_doap.rdf Update vendor to ASF 2015-05-30 08:37:28 +02:00
pom.xml ARTEMIS-4161 AMQP and OpenWire leaking leaking objects in certain conditions 2023-02-16 12:10:54 -08:00

README.md

ActiveMQ Artemis

This file describes some minimum 'stuff one needs to know' to get started coding in this project.

Source

For details about the modifying the code, building the project, running tests, IDE integration, etc. see our Hacking Guide.

Build Status

Build Status: Build Status

Building the ASYNC IO library

ActiveMQ Artemis provides two journal persistence types, NIO (which uses the Java NIO libraries), and ASYNCIO which interacts with the linux kernel libaio library. The ASYNCIO journal type should be used where possible as it is far superior in terms of performance.

ActiveMQ Artemis does not ship with the Artemis Native ASYNCIO library in the source distribution. These need to be built prior to running "mvn install", to ensure that the ASYNCIO journal type is available in the resulting build. Don't worry if you don't want to use ASYNCIO or your system does not support libaio, ActiveMQ Artemis will check at runtime to see if the required libraries and system dependencies are available, if not it will default to using NIO.

To build the ActiveMQ Artemis ASYNCIO native libraries, please follow the instructions in the artemis-native/README.

Documentation

Our documentation is always in sync with our releases at the Apache ActiveMQ Artemis website.

Or you can also look at the current main version on github.

Examples

To run an example firstly make sure you have run

$ mvn -Prelease install

If the project version has already been released then this is unnecessary.

Each individual example can be run using this command from its corresponding directory:

$ mvn verify

If you wish to run groups of examples then use this command from a parent directory (e.g. examples/features/standard):

$ mvn -Pexamples verify

Recreating the examples

If you are trying to copy the examples somewhere else and modifying them. Consider asking Maven to explicitly list all the dependencies:

# if trying to modify the 'topic' example:
cd examples/jms/topic && mvn dependency:list

Open Web Application Security Project (OWASP) Report

If you wish to generate the report for CCV dependencies, you may run it with the -Powasp profile

$ mvn -Powasp verify

The output will be under ./target/dependency-check-report.html for each sub-module.

Bugs

Issues are tracked at https://issues.apache.org/jira/projects/ARTEMIS/