JVM Garbage Collector Function in Active Expression
book
Article ID: 115316
calendar_today
Updated On:
Products
CA Single Sign On Secure Proxy Server (SiteMinder)CA Single Sign On SOA Security Manager (SiteMinder)CA Single Sign-On
Issue/Introduction
We are running Policy Server, when an Active Expression is triggered, we'd like to know :
- How safe it is to execute System.gc() in Active Expression within static synchronized block ?
- Will the execution of System.gc() affect the rest of the executing Active Expression ?
- Will it affect JVM instance running for Policy Server ?
Environment
Release: Component: SMPLC
Resolution
Generally there should not be any issue with explicitly calling system.GC, having said that this kind of test case has never been QA tested. Ideally the JVM should be doing the memory management.