Skip to content

Commit 2b4b4ef

Browse files
committed
Try setting connection TTL and retry count.
1 parent b407abb commit 2b4b4ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java-components/build-request-processor/src/main/java/com/redhat/hacbs/container/build/preprocessor/AbstractPreprocessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public void run() {
101101
export LC_ALL="en_US.UTF-8"
102102
export JAVA_HOME=${JAVA_HOME:=%s}
103103
# If we run out of memory we want the JVM to die with error code 134
104-
export MAVEN_OPTS="-XX:+CrashOnOutOfMemoryError"
104+
export MAVEN_OPTS="-Dmaven.wagon.httpconnectionManager.ttlSeconds=30 -Dmaven.wagon.http.retryHandler.count=3 -Daether.connector.http.connectionMaxTtl=30 -XX:+CrashOnOutOfMemoryError"
105105
# If we run out of memory we want the JVM to die with error code 134
106106
export JAVA_OPTS="-XX:+CrashOnOutOfMemoryError"
107107
export %s_HOME=${%s_HOME:=/opt/%s/%s}

0 commit comments

Comments
 (0)