Resolution
How do I increase the amount of memory allocated for the VigilEnt Policy Center service?
goal
What does a java.lang.OutOfMemoryError mean?
goal
How do I prevent the VigilEnt Policy Center service from terminating?
fact
VigilEnt Policy Center 3.x
fact
VigilEnt Policy Center 4.0
fact
VigilEnt Policy Center 4.1
symptom
Error: ' java.lang.OutOfMemoryError
<<no stack trace available>>
[ERROR] ThreadPool - -Caught exception executing
org.apache.tomcat.util.net.TcpWorkerThread@1ef158
, terminating thread <java.lang.OutOfMemoryError> 'cause
The VigilEnt Policy Center service requires more memory than the 256 megabytes used by default.Â
fix
The following procedure uninstalls your VigilEnt Policy Center service and re-installs it with new memory settings you specify.
- Using a text editor, navigate to the following location:
- Â <installation directory>\NetIQ\VigilEnt Policy Center\bin\installVPCService.bat (On VigilEnt Policy Center 4.0 and later)
- <installation directory>\PentaSafe\VigilEnt Policy Center\bin\installVPCService.bat (On VigilEnt Policy Center 3.x or an installation upgraded from 3.x)
- Locate the following line of commands:
- Edit the installVPCService.bat file:
- Insert the following command on the line preceding the command that begins
tomcat -install "VigilEnt Policy Center":
- Locate the following section: -Xms256m ?Xmx256m.
- Change both instances of 256 to the maximum memory, in megabytes, that you want to allocate to the VigilEnt Policy Center service.  For example, to increase the memory allotment to one gigabyte, change -Xms256m ?Xmx256m to ?Xms1024m ?Xmx1024m.
- Save and close the file.Â
- Stop the VigilEnt Policy Center service.
- Run the installVPCService.bat file.
- After the installVPCService.bat file is complete, restart the VigilEnt Policy Center service.
tomcat -install "VigilEnt Policy Center" "%JVM%" -Djava.endorsed.dirs="%JAVA_ENDORSED_DIRS%" -Djava.class.path="%CLASSPATH%" -Xincgc ?Xms256m ?Xmx256m -Dcatalina.base="%CATALINA_BASE%" -Dcatalina.home="%CATALINA_HOME%" -Djava.io.tmpdir="%CATALINA_TMPDIR%" -Xrs -start %MAINCLASS% -params start -stop %MAINCLASS% -params stop -out "%OUT_LOG_FILE%" -err "%ERR_LOG_FILE%" -current "%CATALINA_HOME%"5.
tomcat -uninstall "VigilEnt Policy Center"
note
Example
A modified entry in an  installVPCService.bat file that allows the VigilEnt Policy Center service to use up to 1 gigabyte of memory:
tomcat -uninstall "VigilEnt Policy Center"
tomcat -install "VigilEnt Policy Center" "%JVM%" -Djava.endorsed.dirs="%JAVA_ENDORSED_DIRS%" -Djava.class.path="%CLASSPATH%" Â -Xincgc ?Xms1024m ?Xmx1024m -Dcatalina.base="%CATALINA_BASE%" -Dcatalina.home="%CATALINA_HOME%" -Djava.io.tmpdir="%