Syed,
If you are getting GC related errors, the cause is memory is being filled fully. As others suggested, you need to first check if whatever you have allocated has been properly set to the running jvm… If 2GB has been allocated as per your configuration, next you need to identify what is filling the memory quickly… Do you see a constant increase in the consumption of memory? You can introduce few jvm related parameters to enable CMS which will clear objects frequently, which eventually bring down the frequency of full GC…
Just a restart for GC related exceptions is not going to help without identifying the root cause…
HTH
-Senthil
#webMethods#Integration-Server-and-ESB#webMethods-General