This is an automated email from the ASF dual-hosted git repository. matthieu pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/james-project.git
commit 35f054fbe41d1a3cbb34cc8e311e4a09bfe45849 Author: Jean Helou <[email protected]> AuthorDate: Thu Jan 14 17:16:04 2021 +0100 JAMES-3225 drops fork reuse `OutOfMemoryError: Direct buffer memory` was one of the most common failure mode for builds on the Apache CI Attempts to increase Xmx were only partially successful, dropping forks made the error go away entirely. --- backends-common/elasticsearch/pom.xml | 2 +- backends-common/rabbitmq/pom.xml | 2 +- mailbox/api/pom.xml | 2 +- mailbox/backup/pom.xml | 2 +- mailbox/cassandra/pom.xml | 2 +- mailbox/event/json/pom.xml | 2 +- mailbox/memory/pom.xml | 2 +- mailbox/store/pom.xml | 2 +- mailet/standard/pom.xml | 2 +- mdn/pom.xml | 2 +- mpt/impl/imap-mailbox/cassandra/pom.xml | 2 +- mpt/impl/imap-mailbox/inmemory/pom.xml | 2 +- mpt/impl/imap-mailbox/jpa/pom.xml | 2 +- mpt/impl/imap-mailbox/lucenesearch/pom.xml | 2 +- protocols/imap/pom.xml | 2 +- protocols/smtp/pom.xml | 2 +- server/blob/blob-cassandra/pom.xml | 2 +- server/blob/blob-memory/pom.xml | 2 +- server/container/guice/cassandra-rabbitmq-guice/pom.xml | 2 +- server/data/data-cassandra/pom.xml | 2 +- server/data/data-file/pom.xml | 2 +- server/mailet/integration-testing/pom.xml | 2 +- server/mailet/mailets/pom.xml | 2 +- server/mailrepository/mailrepository-cassandra/pom.xml | 2 +- .../cassandra-jmap-draft-integration-testing/pom.xml | 2 +- .../memory-jmap-draft-integration-testing/pom.xml | 1 - .../rabbitmq-jmap-draft-integration-testing/pom.xml | 2 +- server/protocols/jmap-draft/pom.xml | 2 +- .../distributed-jmap-rfc-8621-integration-tests/pom.xml | 2 +- .../distributed-webadmin-integration-test/pom.xml | 2 +- .../webadmin-integration-test/memory-webadmin-integration-test/pom.xml | 2 +- server/protocols/webadmin/webadmin-mailbox/pom.xml | 2 +- 32 files changed, 31 insertions(+), 32 deletions(-) diff --git a/backends-common/elasticsearch/pom.xml b/backends-common/elasticsearch/pom.xml index 9620615..c1d56ad 100644 --- a/backends-common/elasticsearch/pom.xml +++ b/backends-common/elasticsearch/pom.xml @@ -113,7 +113,7 @@ <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> - <reuseForks>true</reuseForks> + <reuseForks>false</reuseForks> <forkCount>2</forkCount> </configuration> </plugin> diff --git a/backends-common/rabbitmq/pom.xml b/backends-common/rabbitmq/pom.xml index 1bfe6ba..584dc4f 100644 --- a/backends-common/rabbitmq/pom.xml +++ b/backends-common/rabbitmq/pom.xml @@ -115,7 +115,7 @@ <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> - <reuseForks>true</reuseForks> + <reuseForks>false</reuseForks> <forkCount>2</forkCount> </configuration> </plugin> diff --git a/mailbox/api/pom.xml b/mailbox/api/pom.xml index ff31374..91339f7 100644 --- a/mailbox/api/pom.xml +++ b/mailbox/api/pom.xml @@ -130,7 +130,7 @@ <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> - <reuseForks>true</reuseForks> + <reuseForks>false</reuseForks> <forkCount>1C</forkCount> </configuration> </plugin> diff --git a/mailbox/backup/pom.xml b/mailbox/backup/pom.xml index 854b934..a203ff5 100644 --- a/mailbox/backup/pom.xml +++ b/mailbox/backup/pom.xml @@ -95,7 +95,7 @@ <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> - <reuseForks>true</reuseForks> + <reuseForks>false</reuseForks> <forkCount>1C</forkCount> </configuration> </plugin> diff --git a/mailbox/cassandra/pom.xml b/mailbox/cassandra/pom.xml index cfbf60a..12ae44d 100644 --- a/mailbox/cassandra/pom.xml +++ b/mailbox/cassandra/pom.xml @@ -200,7 +200,7 @@ <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> - <reuseForks>true</reuseForks> + <reuseForks>false</reuseForks> <forkCount>2</forkCount> </configuration> </plugin> diff --git a/mailbox/event/json/pom.xml b/mailbox/event/json/pom.xml index fadfddb..5fa06d1 100644 --- a/mailbox/event/json/pom.xml +++ b/mailbox/event/json/pom.xml @@ -91,7 +91,7 @@ <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> - <reuseForks>true</reuseForks> + <reuseForks>false</reuseForks> <forkCount>1C</forkCount> </configuration> </plugin> diff --git a/mailbox/memory/pom.xml b/mailbox/memory/pom.xml index 3a78ac7..3c409c2 100644 --- a/mailbox/memory/pom.xml +++ b/mailbox/memory/pom.xml @@ -109,7 +109,7 @@ <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> - <reuseForks>true</reuseForks> + <reuseForks>false</reuseForks> <forkCount>1C</forkCount> </configuration> </plugin> diff --git a/mailbox/store/pom.xml b/mailbox/store/pom.xml index 7d64df7..28b59b2 100644 --- a/mailbox/store/pom.xml +++ b/mailbox/store/pom.xml @@ -144,7 +144,7 @@ <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> - <reuseForks>true</reuseForks> + <reuseForks>false</reuseForks> <forkCount>1C</forkCount> </configuration> </plugin> diff --git a/mailet/standard/pom.xml b/mailet/standard/pom.xml index a46de03..d920076 100644 --- a/mailet/standard/pom.xml +++ b/mailet/standard/pom.xml @@ -127,7 +127,7 @@ <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> - <reuseForks>true</reuseForks> + <reuseForks>false</reuseForks> <forkCount>1C</forkCount> </configuration> </plugin> diff --git a/mdn/pom.xml b/mdn/pom.xml index 68e15ea..3bd0bd7 100644 --- a/mdn/pom.xml +++ b/mdn/pom.xml @@ -82,7 +82,7 @@ <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> - <reuseForks>true</reuseForks> + <reuseForks>false</reuseForks> <forkCount>1C</forkCount> </configuration> </plugin> diff --git a/mpt/impl/imap-mailbox/cassandra/pom.xml b/mpt/impl/imap-mailbox/cassandra/pom.xml index a2753cf..b34a69b 100644 --- a/mpt/impl/imap-mailbox/cassandra/pom.xml +++ b/mpt/impl/imap-mailbox/cassandra/pom.xml @@ -103,7 +103,7 @@ <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> - <reuseForks>true</reuseForks> + <reuseForks>false</reuseForks> <forkCount>2</forkCount> </configuration> </plugin> diff --git a/mpt/impl/imap-mailbox/inmemory/pom.xml b/mpt/impl/imap-mailbox/inmemory/pom.xml index 0edd035..46c79cd 100644 --- a/mpt/impl/imap-mailbox/inmemory/pom.xml +++ b/mpt/impl/imap-mailbox/inmemory/pom.xml @@ -76,7 +76,7 @@ <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> - <reuseForks>true</reuseForks> + <reuseForks>false</reuseForks> <forkCount>1C</forkCount> </configuration> </plugin> diff --git a/mpt/impl/imap-mailbox/jpa/pom.xml b/mpt/impl/imap-mailbox/jpa/pom.xml index 77e815a..703217b 100644 --- a/mpt/impl/imap-mailbox/jpa/pom.xml +++ b/mpt/impl/imap-mailbox/jpa/pom.xml @@ -97,7 +97,7 @@ <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> - <reuseForks>true</reuseForks> + <reuseForks>false</reuseForks> <forkCount>1C</forkCount> </configuration> </plugin> diff --git a/mpt/impl/imap-mailbox/lucenesearch/pom.xml b/mpt/impl/imap-mailbox/lucenesearch/pom.xml index 0111b39..254744e 100644 --- a/mpt/impl/imap-mailbox/lucenesearch/pom.xml +++ b/mpt/impl/imap-mailbox/lucenesearch/pom.xml @@ -94,7 +94,7 @@ <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> - <reuseForks>true</reuseForks> + <reuseForks>false</reuseForks> <forkCount>1C</forkCount> </configuration> </plugin> diff --git a/protocols/imap/pom.xml b/protocols/imap/pom.xml index 91bd67c..de7c0b0 100644 --- a/protocols/imap/pom.xml +++ b/protocols/imap/pom.xml @@ -121,7 +121,7 @@ <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> - <reuseForks>true</reuseForks> + <reuseForks>false</reuseForks> <forkCount>1C</forkCount> </configuration> </plugin> diff --git a/protocols/smtp/pom.xml b/protocols/smtp/pom.xml index 88b524e..82b6ad1 100644 --- a/protocols/smtp/pom.xml +++ b/protocols/smtp/pom.xml @@ -98,7 +98,7 @@ <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> - <reuseForks>true</reuseForks> + <reuseForks>false</reuseForks> <forkCount>1C</forkCount> </configuration> </plugin> diff --git a/server/blob/blob-cassandra/pom.xml b/server/blob/blob-cassandra/pom.xml index 679071d..2a8c4f7 100644 --- a/server/blob/blob-cassandra/pom.xml +++ b/server/blob/blob-cassandra/pom.xml @@ -102,7 +102,7 @@ <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> - <reuseForks>true</reuseForks> + <reuseForks>false</reuseForks> <forkCount>2</forkCount> </configuration> </plugin> diff --git a/server/blob/blob-memory/pom.xml b/server/blob/blob-memory/pom.xml index 5284361..cb3badf 100644 --- a/server/blob/blob-memory/pom.xml +++ b/server/blob/blob-memory/pom.xml @@ -87,7 +87,7 @@ <artifactId>maven-surefire-plugin</artifactId> <configuration> <argLine>-Xms1024m -Xmx2048m</argLine> - <reuseForks>true</reuseForks> + <reuseForks>false</reuseForks> <forkedProcessTimeoutInSeconds>1200</forkedProcessTimeoutInSeconds> </configuration> </plugin> diff --git a/server/container/guice/cassandra-rabbitmq-guice/pom.xml b/server/container/guice/cassandra-rabbitmq-guice/pom.xml index 9423391..3cccc99 100644 --- a/server/container/guice/cassandra-rabbitmq-guice/pom.xml +++ b/server/container/guice/cassandra-rabbitmq-guice/pom.xml @@ -201,7 +201,7 @@ <artifactId>maven-surefire-plugin</artifactId> <configuration> <argLine>-Xms512m -Xmx2048m</argLine> - <reuseForks>true</reuseForks> + <reuseForks>false</reuseForks> <!-- Fail tests longer than 20 minutes, prevent form random locking tests --> <forkedProcessTimeoutInSeconds>1200</forkedProcessTimeoutInSeconds> <excludedGroups>unstable</excludedGroups> diff --git a/server/data/data-cassandra/pom.xml b/server/data/data-cassandra/pom.xml index f603f5c..ef8679a 100644 --- a/server/data/data-cassandra/pom.xml +++ b/server/data/data-cassandra/pom.xml @@ -149,7 +149,7 @@ <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> - <reuseForks>true</reuseForks> + <reuseForks>false</reuseForks> <forkCount>2</forkCount> </configuration> </plugin> diff --git a/server/data/data-file/pom.xml b/server/data/data-file/pom.xml index 5c1cf2e..1edbfe5 100644 --- a/server/data/data-file/pom.xml +++ b/server/data/data-file/pom.xml @@ -149,7 +149,7 @@ <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> - <reuseForks>true</reuseForks> + <reuseForks>false</reuseForks> <forkCount>1C</forkCount> </configuration> </plugin> diff --git a/server/mailet/integration-testing/pom.xml b/server/mailet/integration-testing/pom.xml index 6f0056e..83dd596 100644 --- a/server/mailet/integration-testing/pom.xml +++ b/server/mailet/integration-testing/pom.xml @@ -162,7 +162,7 @@ <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> - <reuseForks>true</reuseForks> + <reuseForks>false</reuseForks> <forkCount>1C</forkCount> </configuration> </plugin> diff --git a/server/mailet/mailets/pom.xml b/server/mailet/mailets/pom.xml index e7b9659..e2b00ed 100644 --- a/server/mailet/mailets/pom.xml +++ b/server/mailet/mailets/pom.xml @@ -280,7 +280,7 @@ <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> - <reuseForks>true</reuseForks> + <reuseForks>false</reuseForks> <forkCount>1C</forkCount> </configuration> </plugin> diff --git a/server/mailrepository/mailrepository-cassandra/pom.xml b/server/mailrepository/mailrepository-cassandra/pom.xml index 0b5c0f0..6f38b42 100644 --- a/server/mailrepository/mailrepository-cassandra/pom.xml +++ b/server/mailrepository/mailrepository-cassandra/pom.xml @@ -90,7 +90,7 @@ <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> - <reuseForks>true</reuseForks> + <reuseForks>false</reuseForks> <forkCount>2</forkCount> </configuration> </plugin> diff --git a/server/protocols/jmap-draft-integration-testing/cassandra-jmap-draft-integration-testing/pom.xml b/server/protocols/jmap-draft-integration-testing/cassandra-jmap-draft-integration-testing/pom.xml index 641088b..a6bde23 100644 --- a/server/protocols/jmap-draft-integration-testing/cassandra-jmap-draft-integration-testing/pom.xml +++ b/server/protocols/jmap-draft-integration-testing/cassandra-jmap-draft-integration-testing/pom.xml @@ -213,7 +213,7 @@ <artifactId>maven-surefire-plugin</artifactId> <configuration> <argLine>-Xms512m -Xmx2048m</argLine> - <reuseForks>true</reuseForks> + <reuseForks>false</reuseForks> <!-- Fail tests longer than 20 minutes, prevent form random locking tests --> <forkedProcessTimeoutInSeconds>1200</forkedProcessTimeoutInSeconds> <groups combine.self="override">org.apache.james.jmap.categories.CassandraAndElasticSearchCategory,org.apache.james.junit.categories.BasicFeature,org.apache.james.jmap.categories.EnableCucumber</groups> diff --git a/server/protocols/jmap-draft-integration-testing/memory-jmap-draft-integration-testing/pom.xml b/server/protocols/jmap-draft-integration-testing/memory-jmap-draft-integration-testing/pom.xml index 24b5c8a..30f2d2f 100644 --- a/server/protocols/jmap-draft-integration-testing/memory-jmap-draft-integration-testing/pom.xml +++ b/server/protocols/jmap-draft-integration-testing/memory-jmap-draft-integration-testing/pom.xml @@ -171,7 +171,6 @@ <artifactId>maven-surefire-plugin</artifactId> <configuration> <argLine>-Xms512m -Xmx2048m</argLine> - <reuseForks>true</reuseForks> <forkCount>1C</forkCount> </configuration> </plugin> diff --git a/server/protocols/jmap-draft-integration-testing/rabbitmq-jmap-draft-integration-testing/pom.xml b/server/protocols/jmap-draft-integration-testing/rabbitmq-jmap-draft-integration-testing/pom.xml index 3b44dc8..0891a7a 100644 --- a/server/protocols/jmap-draft-integration-testing/rabbitmq-jmap-draft-integration-testing/pom.xml +++ b/server/protocols/jmap-draft-integration-testing/rabbitmq-jmap-draft-integration-testing/pom.xml @@ -161,7 +161,7 @@ <artifactId>maven-surefire-plugin</artifactId> <configuration> <argLine>-Xms512m -Xmx2048m</argLine> - <reuseForks>true</reuseForks> + <reuseForks>false</reuseForks> <!-- Fail tests longer than 20 minutes, prevent form random locking tests --> <forkedProcessTimeoutInSeconds>1200</forkedProcessTimeoutInSeconds> <groups combine.self="override">org.apache.james.junit.categories.BasicFeature,org.apache.james.jmap.categories.EnableCucumber</groups> diff --git a/server/protocols/jmap-draft/pom.xml b/server/protocols/jmap-draft/pom.xml index faf106a..9664430 100644 --- a/server/protocols/jmap-draft/pom.xml +++ b/server/protocols/jmap-draft/pom.xml @@ -269,7 +269,7 @@ <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> - <reuseForks>true</reuseForks> + <reuseForks>false</reuseForks> <forkCount>1C</forkCount> </configuration> </plugin> diff --git a/server/protocols/jmap-rfc-8621-integration-tests/distributed-jmap-rfc-8621-integration-tests/pom.xml b/server/protocols/jmap-rfc-8621-integration-tests/distributed-jmap-rfc-8621-integration-tests/pom.xml index 2018d3a..e608bb4 100644 --- a/server/protocols/jmap-rfc-8621-integration-tests/distributed-jmap-rfc-8621-integration-tests/pom.xml +++ b/server/protocols/jmap-rfc-8621-integration-tests/distributed-jmap-rfc-8621-integration-tests/pom.xml @@ -121,7 +121,7 @@ <artifactId>maven-surefire-plugin</artifactId> <configuration> <argLine>-Xms512m -Xmx2048m</argLine> - <reuseForks>true</reuseForks> + <reuseForks>false</reuseForks> <!-- Fail tests longer than 20 minutes, prevent form random locking tests --> <forkedProcessTimeoutInSeconds>1200</forkedProcessTimeoutInSeconds> <!-- Junit 5 move from Category to Tag, and it need tag's name as parameter --> diff --git a/server/protocols/webadmin-integration-test/distributed-webadmin-integration-test/pom.xml b/server/protocols/webadmin-integration-test/distributed-webadmin-integration-test/pom.xml index dcb88dd..dddc6b3 100644 --- a/server/protocols/webadmin-integration-test/distributed-webadmin-integration-test/pom.xml +++ b/server/protocols/webadmin-integration-test/distributed-webadmin-integration-test/pom.xml @@ -98,7 +98,7 @@ <artifactId>maven-surefire-plugin</artifactId> <configuration> <argLine>-Xms512m -Xmx2048m</argLine> - <reuseForks>true</reuseForks> + <reuseForks>false</reuseForks> <!-- Fail tests longer than 20 minutes, prevent form random locking tests --> <forkedProcessTimeoutInSeconds>1200</forkedProcessTimeoutInSeconds> <groups combine.self="override">BasicFeature&!unstable</groups> diff --git a/server/protocols/webadmin-integration-test/memory-webadmin-integration-test/pom.xml b/server/protocols/webadmin-integration-test/memory-webadmin-integration-test/pom.xml index 7d9bac0..43d0ed6 100644 --- a/server/protocols/webadmin-integration-test/memory-webadmin-integration-test/pom.xml +++ b/server/protocols/webadmin-integration-test/memory-webadmin-integration-test/pom.xml @@ -58,7 +58,7 @@ <artifactId>maven-surefire-plugin</artifactId> <configuration> <argLine>-Xms512m -Xmx2048m</argLine> - <reuseForks>true</reuseForks> + <reuseForks>false</reuseForks> <forkedProcessTimeoutInSeconds>1200</forkedProcessTimeoutInSeconds> <forkCount>1C</forkCount> </configuration> diff --git a/server/protocols/webadmin/webadmin-mailbox/pom.xml b/server/protocols/webadmin/webadmin-mailbox/pom.xml index 49a9372..4ed88c8 100644 --- a/server/protocols/webadmin/webadmin-mailbox/pom.xml +++ b/server/protocols/webadmin/webadmin-mailbox/pom.xml @@ -244,7 +244,7 @@ <artifactId>maven-surefire-plugin</artifactId> <configuration> <argLine>-Xms512m -Xmx2048m</argLine> - <reuseForks>true</reuseForks> + <reuseForks>false</reuseForks> <!-- Fail tests longer than 20 minutes, prevent form random locking tests --> <forkedProcessTimeoutInSeconds>1200</forkedProcessTimeoutInSeconds> <excludedGroups>unstable</excludedGroups> --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
