You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ws.apache.org by ve...@apache.org on 2020/12/31 00:20:29 UTC
[ws-axiom] branch master updated: Only restrict Java heap size
where needed
This is an automated email from the ASF dual-hosted git repository.
veithen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ws-axiom.git
The following commit(s) were added to refs/heads/master by this push:
new f3d1b46 Only restrict Java heap size where needed
f3d1b46 is described below
commit f3d1b46ec25d2ab370242bb30d0a1f619c19da9c
Author: Andreas Veithen <ve...@apache.org>
AuthorDate: Thu Dec 31 00:20:21 2020 +0000
Only restrict Java heap size where needed
---
axiom-api/pom.xml | 6 ++++++
implementations/axiom-dom/pom.xml | 11 +++++++++++
implementations/axiom-impl/pom.xml | 11 +++++++++++
pom.xml | 6 ------
4 files changed, 28 insertions(+), 6 deletions(-)
diff --git a/axiom-api/pom.xml b/axiom-api/pom.xml
index f45ec1f..aaeabc3 100644
--- a/axiom-api/pom.xml
+++ b/axiom-api/pom.xml
@@ -250,6 +250,12 @@
<excludes>
<exclude>org/apache/axiom/util/stax/dialect/*Test.java</exclude>
</excludes>
+ <!-- Keep heap size small. We have some unit tests that deal with volumes
+ of data proportional to the heap size (to test that Axiom is streaming
+ the data instead of loading it into memory). Obviously, the execution time of
+ these tests also are proportional to the heap size. To accelerate the execution
+ of the tests, we should use a heap size as small as possible. -->
+ <argLine>${argLine} -Xms64m -Xmx64m</argLine>
</configuration>
</plugin>
<plugin>
diff --git a/implementations/axiom-dom/pom.xml b/implementations/axiom-dom/pom.xml
index 0dcb180..69a7b75 100644
--- a/implementations/axiom-dom/pom.xml
+++ b/implementations/axiom-dom/pom.xml
@@ -115,6 +115,17 @@
</configuration>
</plugin>
<plugin>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <!-- Keep heap size small. We have some unit tests that deal with volumes
+ of data proportional to the heap size (to test that Axiom is streaming
+ the data instead of loading it into memory). Obviously, the execution time of
+ these tests also are proportional to the heap size. To accelerate the execution
+ of the tests, we should use a heap size as small as possible. -->
+ <argLine>${argLine} -Xms64m -Xmx64m</argLine>
+ </configuration>
+ </plugin>
+ <plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
diff --git a/implementations/axiom-impl/pom.xml b/implementations/axiom-impl/pom.xml
index c01b75b..e0da23e 100644
--- a/implementations/axiom-impl/pom.xml
+++ b/implementations/axiom-impl/pom.xml
@@ -99,6 +99,17 @@
</configuration>
</plugin>
<plugin>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <!-- Keep heap size small. We have some unit tests that deal with volumes
+ of data proportional to the heap size (to test that Axiom is streaming
+ the data instead of loading it into memory). Obviously, the execution time of
+ these tests also are proportional to the heap size. To accelerate the execution
+ of the tests, we should use a heap size as small as possible. -->
+ <argLine>${argLine} -Xms64m -Xmx64m</argLine>
+ </configuration>
+ </plugin>
+ <plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
diff --git a/pom.xml b/pom.xml
index c5d8abd..88cd927 100644
--- a/pom.xml
+++ b/pom.xml
@@ -549,12 +549,6 @@
<includes>
<include>**/*Test.java</include>
</includes>
- <!-- Keep heap size small. We have some unit tests that deal with volumes
- of data proportional to the heap size (to test that Axiom is streaming
- the data instead of loading it into memory). Obviously, the execution time of
- these tests also are proportional to the heap size. To accelerate the execution
- of the tests, we should use a heap size as small as possible. -->
- <argLine>${argLine} -Xms64m -Xmx64m</argLine>
<trimStackTrace>false</trimStackTrace>
<systemProperties>
<property>