cancel
Showing results for 
Search instead for 
Did you mean: 

epo 4.5: Servlet.service() for servlet POLICYAUMETA threw exception java.lang.OutOfMemoryError: Java heap space

Jump to solution

I keep getting exception errors when working with Policy Auditor (enabling audits, etc.).  I just checked the Orion.log and see several of these entries:

Servlet.service() for servlet POLICYAUMETA threw exception

java.lang.OutOfMemoryError: Java heap space

What's the recommended solution for this?

Thanks!

1 Solution

Accepted Solutions
Highlighted
McAfee Employee
McAfee Employee
Report Inappropriate Content
Message 2 of 4

Re: epo 4.5: Servlet.service() for servlet POLICYAUMETA threw exception java.lang.OutOfMemoryError: Java heap space

Jump to solution

This could be because of a problem with the extension (Policy Auditor in this case) leaking memory or it simply needs more memory to function properly.

You can try increasing the Java Max Memory setting by following the steps below. Make sure to take a backup of the registry before attempting these steps. If the issue remains, after making these changes and restarting the services, please log a case with McAfee Support.

  • Click Start, Run, type regedit and click OK.
  • Navigate to and expand the registry key below:

    32-bit servers:
    [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Procrun 2.0\MCAFEETOMCATSRV200\Parameters\Java]

    64-bit servers:
    [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Apache Software Foundation\Procrun 2.0\Analytics\ MCAFEETOMCATSRV200\Java]
     
  • Select the Java sub-key.
  • Double-click the JvmMx registry entry and change the value to an entry between 512 and 2048, using 256 increments.

    NOTE:
    Different system platforms will take different max amounts, based on Processor type and amount of available system resources. Normally a 64-bit Windows 2008 server will run fine with 1536 and a 32-bit Windows 2008 server takes up to 1024. You will have to test this by restarting the ePO 4.x Application service.

    If the service fails to start with an Error "0", then move the value down in increments of 256, try starting the service again, and repeat until you have the max amount the server will allow.
3 Replies
Highlighted
McAfee Employee
McAfee Employee
Report Inappropriate Content
Message 2 of 4

Re: epo 4.5: Servlet.service() for servlet POLICYAUMETA threw exception java.lang.OutOfMemoryError: Java heap space

Jump to solution

This could be because of a problem with the extension (Policy Auditor in this case) leaking memory or it simply needs more memory to function properly.

You can try increasing the Java Max Memory setting by following the steps below. Make sure to take a backup of the registry before attempting these steps. If the issue remains, after making these changes and restarting the services, please log a case with McAfee Support.

  • Click Start, Run, type regedit and click OK.
  • Navigate to and expand the registry key below:

    32-bit servers:
    [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Procrun 2.0\MCAFEETOMCATSRV200\Parameters\Java]

    64-bit servers:
    [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Apache Software Foundation\Procrun 2.0\Analytics\ MCAFEETOMCATSRV200\Java]
     
  • Select the Java sub-key.
  • Double-click the JvmMx registry entry and change the value to an entry between 512 and 2048, using 256 increments.

    NOTE:
    Different system platforms will take different max amounts, based on Processor type and amount of available system resources. Normally a 64-bit Windows 2008 server will run fine with 1536 and a 32-bit Windows 2008 server takes up to 1024. You will have to test this by restarting the ePO 4.x Application service.

    If the service fails to start with an Error "0", then move the value down in increments of 256, try starting the service again, and repeat until you have the max amount the server will allow.

Re: epo 4.5: Servlet.service() for servlet POLICYAUMETA threw exception java.lang.OutOfMemoryError: Java heap space

Jump to solution

Sailendra,

Thanks for the solution. I increased it to 512. It works perfectly now!

McAfee Employee
McAfee Employee
Report Inappropriate Content
Message 4 of 4

Re: epo 4.5: Servlet.service() for servlet POLICYAUMETA threw exception java.lang.OutOfMemoryError: Java heap space

Jump to solution

Good to know it helped