Sign In with your
Trend Micro Account
Need Help?
Need More Help?

Create a technical support case if you need further support.

"HTTP 503.2 - Service Unavailable..." appears in OfficeScan (OSCE)

    • Updated:
    • 18 Jun 2019
    • Product/Version:
    • OfficeScan 11.0
    • OfficeScan XG.All
    • Platform:
    • N/A N/A
    • Windows 10
    • Windows 10 32-bit
    • Windows 10 64-bit
    • Windows 2000 Advanced Server
    • Windows 2000 Professional
    • Windows 2000 Server
    • Windows 2003 32-Bit
    • Windows 2003 64-Bit
    • Windows 2003 Datacenter 64-bit
    • Windows 2003 Enterprise
    • Windows 2003 Enterprise 64-bit
    • Windows 2003 Server R2
    • Windows 2003 Standard
    • Windows 2003 Standard 64-bit
    • Windows 2008 32-Bit
    • Windows 2008 64-Bit
    • Windows 2008 Datacenter
    • Windows 2008 Datacenter 64-bit
    • Windows 2008 Enterprise
    • Windows 2008 Enterprise 64-bit
    • Windows 2008 Server Core
    • Windows 2008 Server R2 Enterprise
    • Windows 2008 Standard
    • Windows 2008 Standard 64-bit
    • Windows 2008 Web Server Edition
    • Windows 2008 Web Server Edition 64-bit
    • Windows 2012
    • Windows 2012 Datacenter
    • Windows 2012 Datacenter R2
    • Windows 2012 Enterprise
    • Windows 2012 Enterprise R2
    • Windows 2012 Server Essential R2
    • Windows 2012 Server Essentials
    • Windows 2012 Server R2
    • Windows 2012 Standard
    • Windows 2012 Standard R2
    • Windows 2012 Web Server Edition
    • Windows 2016
    • Windows 2016 Server Core
    • Windows 2016 Server Datacenter
    • Windows 2016 Server Standard
    • Windows 7 32-Bit
    • Windows 7 64-Bit
    • Windows 8 32-Bit
    • Windows 8 64-Bit
    • Windows 8.1 32-Bit
    • Windows 8.1 64-Bit
    • Windows Vista 32-bit
    • Windows Vista 64-bit
    • Windows XP Home
    • Windows XP Professional
    • Windows XP Professional 64-bit
Summary

You encounter the following error and it is not resolved even after recreating the OSCE server's virtual directory:

HTTP Error 503.2 - Service Unavailable
The serverRuntime@appConcurrentRequestLimit setting is being exceeded

The most likely causes are the following:

  • In Internet Information Services (IIS):
    • The setting is too low.
    • The applicaiton is taking too long for the current load.
  • In OSCE, the issue might appear after doing the following procedures:
    • Rebuilding the OSCE server
    • Upgrading the OSCE server to a new patch
    • Migrating the OSCE server
  • The Internet Information Services (IIS) Logs are full
Details
Public

Check the size of ofcserver.ini file under the \PCCSRV\Private folder.

If the file size is much smaller than 40KB (e.g. just around 1KB), we would consider this is a file corruption issue.

Follow the steps provided in the following KB article: Recovering a server from a corrupt ofcserver.ini file in OfficeScan (OSCE) to recover the file.

If the database is in codebase mode, rebuild a new empty database and check if the issue can be fixed.

  1. Create a backup of ..\Program Files\Trend Micro\Officescan\PCCSRV\HTTPDB.
  2. Delete the contents of ..\Program Files\Trend Micro\Officescan\PCCSRV\HTTPDB.
  3. Restart the OfficeScan Master Service.
  4. Wait until the agents report back to the OfficeScan server.

It is suggested to migrate the database from codebase mode to SQL Server for more stable performance and better experience.

  1. Optimize some configurations of OfficeScan server.

    1. Back up and edit the ofcscan.ini file on the OfficeScan server and add the following Max Buffer and thread number setting:

      [INI_SERVER_SECTION]  Max_Event_Buffer=3000  Max_Log_Buffer=3000  Command_Handler_Static_Thread_Number=80  Command_Handler_Maxium_Thread_Number=80     [INI_DBFILE_SECTION]  DB_MEM_OPT_MAX = 102400  DB_ENFORCE_DBFLUSH_PERIOD=86400  Change the value of DB_ENFORCE_DBFLUSH_PERIOD to 86400 which means doing it per day.  
    2. Enlarge the interval of the heartbeat settings from OSCE web console if possible.
  2. Optimize IIS.

    1. Open the Internet Information Services (IIS) Manager and select the server on which you want to perform this procedure.
    2. Click Application Pools in the left pane, select the OfficeScanAppPool which OfficeScan server is using from the list in the center pane, and then click Advanced Settings… in the right pane. Then the Advanced Settings dialog box appears.
    3. On the Advanced Settings dialog box, make the following changes:

      • Change the value of the parameter Queue Length to 65535.
      • Change the value of the parameter Maximum Worker Processes to 5 or more.
    4. Enlarge AppConcurrentRequestLimit via CMD:

      1. From the OSCE server, open CMD:

        CD C:\Windows\System32\inetsrv

      2. Type the following:

        appcmd.exe set config /section:system.webserver/serverRuntime /appConcurrentRequestLimit:100000

    To verify this change, open the file: %systemroot%\System32\inetsrv\config\applicationHost.config, and then verify the value of parameter serverRuntime appConcurrentRequestLimit, which should be 100000:

  3. Set MaxUserPort to 65534.

    Add the following entries in the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters registry hive:

    • TcpTimedWaitDelay = 30

      TCPTimedWaitDelay is in seconds. This determines the time that must elapse before TCP can release a closed connection and reuse its resources.

    • MaxUserPort = 65534

      MaxUserPort determines the highest port number TCP can assign when an application requests an available user port from the system.

  4. Back up and remove the IIS logs. The default location is %SystemDrive%\inetpub\logs\LogFiles.
  5. After these changes have been made, stop and start the following services:

    1. Stop OfficeScan Master Service .
    2. Stop IIS Service.
    3. Stop World Wide Web Publishing Services.
    4. Start World Wide Web Publishing Services.
    5. Start IIS Service.
    6. Start OfficeScan Master Service.

    Check if the issue can be fixed.

If the issue persists, collect the following for further investigation and send the logs to Trend Micro Technical Support:

Premium
Internal
Rating:
Category:
Configure; Troubleshoot
Solution Id:
1118364
Feedback
Did this article help you?

Thank you for your feedback!

To help us improve the quality of this article, please leave your email here so we can clarify further your feedback, if neccessary:
We will not send you spam or share your email address.

*This form is automated system. General questions, technical, sales, and product-related issues submitted through this form will not be answered.

If you need additional help, you may try to contact the support team. Contact Support

To help us improve the quality of this article, please leave your email here so we can clarify further your feedback, if neccessary:
We will not send you spam or share your email address.

*This form is automated system. General questions, technical, sales, and product-related issues submitted through this form will not be answered.