This is an automated email from the ASF dual-hosted git repository.

nfilotto pushed a commit to branch CAMEL-18988/fix-leaks-p2
in repository https://gitbox.apache.org/repos/asf/camel.git

commit c738564151116a9ef4473d0abe49c351099c70e6
Author: Nicolas Filotto <nfilo...@talend.com>
AuthorDate: Thu Feb 23 10:09:19 2023 +0100

    CAMEL-18988: Generate an hprof file on OOME by default
---
 camel-dependencies/pom.xml                             | 2 +-
 components/camel-aws/camel-aws-secrets-manager/pom.xml | 2 +-
 components/camel-aws/camel-aws2-kms/pom.xml            | 2 +-
 components/camel-aws/camel-aws2-lambda/pom.xml         | 2 +-
 components/camel-aws/camel-aws2-sns/pom.xml            | 2 +-
 components/camel-bindy/pom.xml                         | 2 +-
 core/camel-core/pom.xml                                | 2 +-
 parent/pom.xml                                         | 2 +-
 8 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/camel-dependencies/pom.xml b/camel-dependencies/pom.xml
index 11051fe3dbb..d799e6fa0a0 100644
--- a/camel-dependencies/pom.xml
+++ b/camel-dependencies/pom.xml
@@ -41,7 +41,7 @@
         <compiler.fork>true</compiler.fork>
         <cxf.codegenplugin.forkmode>true</cxf.codegenplugin.forkmode>
         <cxf.codegen.jvmArgs/>
-        
<camel.surefire.fork.vmargs>-XX:+ExitOnOutOfMemoryError</camel.surefire.fork.vmargs>
+        <camel.surefire.fork.vmargs>-XX:+ExitOnOutOfMemoryError 
-XX:+HeapDumpOnOutOfMemoryError</camel.surefire.fork.vmargs>
         <camel.surefire.forkCount>1</camel.surefire.forkCount>
         <camel.surefire.forkTimeout>600</camel.surefire.forkTimeout>
         <camel.surefire.reuseForks>true</camel.surefire.reuseForks>
diff --git a/components/camel-aws/camel-aws-secrets-manager/pom.xml 
b/components/camel-aws/camel-aws-secrets-manager/pom.xml
index 461686a50ca..db754742300 100644
--- a/components/camel-aws/camel-aws-secrets-manager/pom.xml
+++ b/components/camel-aws/camel-aws-secrets-manager/pom.xml
@@ -98,7 +98,7 @@
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-surefire-plugin</artifactId>
                 <configuration>
-                    <argLine>${camel.surefire.fork.vmargs} 
-XX:+ExitOnOutOfMemoryError -Xmx2G</argLine>
+                    <argLine>${camel.surefire.fork.vmargs} -Xmx2G</argLine>
                 </configuration>
             </plugin>
         </plugins>
diff --git a/components/camel-aws/camel-aws2-kms/pom.xml 
b/components/camel-aws/camel-aws2-kms/pom.xml
index 00b3a322933..1d14ee38d95 100644
--- a/components/camel-aws/camel-aws2-kms/pom.xml
+++ b/components/camel-aws/camel-aws2-kms/pom.xml
@@ -81,7 +81,7 @@
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-surefire-plugin</artifactId>
                 <configuration>
-                <argLine>${camel.surefire.fork.vmargs} 
-XX:+ExitOnOutOfMemoryError -Xmx2G</argLine>
+                <argLine>${camel.surefire.fork.vmargs} -Xmx2G</argLine>
                 </configuration>
             </plugin>
         </plugins>
diff --git a/components/camel-aws/camel-aws2-lambda/pom.xml 
b/components/camel-aws/camel-aws2-lambda/pom.xml
index 1e9c1e1347d..408f38b3beb 100644
--- a/components/camel-aws/camel-aws2-lambda/pom.xml
+++ b/components/camel-aws/camel-aws2-lambda/pom.xml
@@ -85,7 +85,7 @@
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-surefire-plugin</artifactId>
                 <configuration>
-                    <argLine>${camel.surefire.fork.vmargs} 
-XX:+ExitOnOutOfMemoryError -Xmx2G</argLine>
+                    <argLine>${camel.surefire.fork.vmargs} -Xmx2G</argLine>
                 </configuration>
             </plugin>
         </plugins>
diff --git a/components/camel-aws/camel-aws2-sns/pom.xml 
b/components/camel-aws/camel-aws2-sns/pom.xml
index c4b99a7fd4e..bb76cce1ae6 100644
--- a/components/camel-aws/camel-aws2-sns/pom.xml
+++ b/components/camel-aws/camel-aws2-sns/pom.xml
@@ -109,7 +109,7 @@
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-surefire-plugin</artifactId>
                 <configuration>
-                    <argLine>${camel.surefire.fork.vmargs} 
-XX:+ExitOnOutOfMemoryError -Xmx2G</argLine>
+                    <argLine>${camel.surefire.fork.vmargs} -Xmx2G</argLine>
                 </configuration>
             </plugin>
         </plugins>
diff --git a/components/camel-bindy/pom.xml b/components/camel-bindy/pom.xml
index 698f2302567..e42c31ce385 100644
--- a/components/camel-bindy/pom.xml
+++ b/components/camel-bindy/pom.xml
@@ -32,7 +32,7 @@
     <description>Camel Bindy data format support</description>
 
     <properties>
-        <camel.surefire.fork.vmargs>-XX:+ExitOnOutOfMemoryError 
-Duser.language=en -Duser.region=GB</camel.surefire.fork.vmargs>
+        <camel.surefire.fork.vmargs>-XX:+ExitOnOutOfMemoryError 
-XX:+HeapDumpOnOutOfMemoryError -Duser.language=en 
-Duser.region=GB</camel.surefire.fork.vmargs>
         <camel.surefire.parallel>true</camel.surefire.parallel>
     </properties>
 
diff --git a/core/camel-core/pom.xml b/core/camel-core/pom.xml
index a7e046552a3..4e44a340189 100644
--- a/core/camel-core/pom.xml
+++ b/core/camel-core/pom.xml
@@ -286,7 +286,7 @@
                 <artifactId>maven-surefire-plugin</artifactId>
                 <configuration>
                     <!-- skip file stress tests as they are intended to run 
manually -->
-                    <argLine>${camel.surefire.fork.vmargs} -Xmx2G 
-XX:+HeapDumpOnOutOfMemoryError -XX:OnOutOfMemoryError="jcmd %p Thread.print" 
-XX:+UnlockDiagnosticVMOptions -XX:+LogVMOutput -XX:LogFile=jvm.log</argLine>
+                    <argLine>${camel.surefire.fork.vmargs} -Xmx2G</argLine>
                     <excludes>
                         
<exclude>org/apache/camel/component/file/stress/**.java</exclude>
                         
<exclude>**/DistributedCompletionIntervalTest.java</exclude>
diff --git a/parent/pom.xml b/parent/pom.xml
index db456061f94..676b5b45697 100644
--- a/parent/pom.xml
+++ b/parent/pom.xml
@@ -36,7 +36,7 @@
         <compiler.fork>true</compiler.fork>
         <cxf.codegenplugin.forkmode>true</cxf.codegenplugin.forkmode>
         <cxf.codegen.jvmArgs/>
-        
<camel.surefire.fork.vmargs>-XX:+ExitOnOutOfMemoryError</camel.surefire.fork.vmargs>
+        <camel.surefire.fork.vmargs>-XX:+ExitOnOutOfMemoryError 
-XX:+HeapDumpOnOutOfMemoryError</camel.surefire.fork.vmargs>
         <camel.surefire.forkCount>1</camel.surefire.forkCount>
         <camel.surefire.forkTimeout>600</camel.surefire.forkTimeout>
         <camel.surefire.reuseForks>true</camel.surefire.reuseForks>

Reply via email to