You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by nf...@apache.org on 2023/02/22 17:35:26 UTC

[camel] 03/03: CAMEL-18988: Add JVM options to get a Thread and heap dump on OOME

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

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

commit fb9828bd865ec713420b73c790e24dc91c80ba03
Author: Nicolas Filotto <nf...@talend.com>
AuthorDate: Wed Feb 22 18:34:53 2023 +0100

    CAMEL-18988: Add JVM options to get a Thread and heap dump on OOME
---
 core/camel-core/pom.xml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/core/camel-core/pom.xml b/core/camel-core/pom.xml
index d8ccffda633..a7e046552a3 100644
--- a/core/camel-core/pom.xml
+++ b/core/camel-core/pom.xml
@@ -286,6 +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>
                     <excludes>
                         <exclude>org/apache/camel/component/file/stress/**.java</exclude>
                         <exclude>**/DistributedCompletionIntervalTest.java</exclude>