reduce transaction cache size 27/48527/1
authorJorge Hernandez <jh1730@att.com>
Tue, 22 May 2018 16:47:41 +0000 (11:47 -0500)
committerJorge Hernandez <jh1730@att.com>
Tue, 22 May 2018 16:47:41 +0000 (11:47 -0500)
- reduce memory footprint
- avoid verbose logging from cache when
  the object is not in the cache to
  invalidate it.

Change-Id: I819cfbcfe32f5afdd238397c79ccd5cebd4534b8
Issue-ID: POLICY-852
Signed-off-by: Jorge Hernandez <jh1730@att.com>
controlloop/common/feature-controlloop-trans/src/main/feature/config/feature-controlloop-trans.properties
controlloop/common/feature-controlloop-trans/src/main/java/org/onap/policy/drools/apps/controlloop/feature/trans/ControlLoopMetrics.java

index af34a95..7744def 100644 (file)
@@ -17,5 +17,5 @@
 # limitations under the License.
 # ============LICENSE_END=========================================================
 ###
-controlloop.cache.transactions.size=500
-controllop.cache.transactions.timeout.seconds=3600
+controlloop.cache.transactions.size=100
+controllop.cache.transactions.timeout.seconds=1800
index 2482d18..3c818b8 100644 (file)
@@ -307,7 +307,8 @@ class CacheBasedControlLoopMetricsManager implements ControlLoopMetrics {
         }
 
         this.transaction(notification, startTime);
-        cache.invalidate(startNotification);
+        if (startNotification != null)
+            cache.invalidate(startNotification);
     }
 
     protected void evicted(VirtualControlLoopNotification notification) {