From 5b89ef694581537a46f9a88653ee30517d523b44 Mon Sep 17 00:00:00 2001
From: Alok Joshi <AJoshi19@slb.com>
Date: Tue, 21 Feb 2023 16:18:48 -0600
Subject: [PATCH] memory util improvement

---
 devops/azure/chart/templates/deploymentSB.yaml                  | 2 ++
 .../provider/azure/messageBus/SubscriptionManagerImpl.java      | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/devops/azure/chart/templates/deploymentSB.yaml b/devops/azure/chart/templates/deploymentSB.yaml
index 49b24272e..7da626e35 100644
--- a/devops/azure/chart/templates/deploymentSB.yaml
+++ b/devops/azure/chart/templates/deploymentSB.yaml
@@ -95,6 +95,8 @@ spec:
               value: "500"
             - name: initial_subscription_manager_delay_seconds
               value: "0"
+            - name: JAVA_OPTS
+              value: "-Xss256k"
             - name: consecutive_subscription_manager_delay_seconds
               value: "600"
             - name: service_bus_enabled
diff --git a/provider/notification-azure/src/main/java/org/opengroup/osdu/notification/provider/azure/messageBus/SubscriptionManagerImpl.java b/provider/notification-azure/src/main/java/org/opengroup/osdu/notification/provider/azure/messageBus/SubscriptionManagerImpl.java
index e5f444306..f97cc59d4 100644
--- a/provider/notification-azure/src/main/java/org/opengroup/osdu/notification/provider/azure/messageBus/SubscriptionManagerImpl.java
+++ b/provider/notification-azure/src/main/java/org/opengroup/osdu/notification/provider/azure/messageBus/SubscriptionManagerImpl.java
@@ -127,7 +127,7 @@ public class SubscriptionManagerImpl implements ISubscriptionManager {
                 new MessageHandlerOptions(Integer.parseUnsignedInt(azureServiceBusConfig.getMaxConcurrentCalls()),
                         false,
                         Duration.ofSeconds(Integer.parseUnsignedInt(azureServiceBusConfig.getMaxLockRenewDurationInSeconds())),
-                        Duration.ofSeconds(1)
+                        Duration.ofSeconds(10)
                 ),
                 executorService);
     }
-- 
GitLab