JVM Garbage Collector Function in Active Expression

Document ID : KB000115316
Last Modified Date : 19/09/2018
Show Technical Document Details
Question:
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 ? 
Answer:
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.