Tomcat server prompt: the server is temporarily unable to service your request due to maintenance downtime or capacity problems

Source: Internet
Author: User

Today, my website suddenly cannot be accessed. Here is a record prompt:
 
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. please try again later. additionally, a 503 service unavailable error was encountered while trying to use an errordocument to handle the request.
Cause analysis:

1. websites that exceed server restrictions

2. Whether the database connection pool is full or the memory overflows

Solution:

The reason for this record is that the server configuration is low, and the Catalina. Out file in the Tomcat logs directory is too large (24 m), causing the server to suspend service.

1. solution:
CD LogsEcho> Catalina. Out#To clear the content

../Bin/shutdown. Sh# Stop a service
 
../Bin/startup. Sh# Start the service

Note: this can only be solved temporarily. Files may soon be full again. Of course, upgrading the server may be the most reliable solution.

2. Catalina. Out log level adjustment

Since the log file Catalina. Out is too large, adjust its log record level. The Tomcat log level is as follows:

Severe (highest value)> warning> info> config> fine (default)> finer> finest (lowest value)

 
# Vim CONF/logging. Properties
#################### Handler specific properties. # describes specific configurationInfo ForHandlers. ################## 1catalina.org. Apache. Juli. asyncfilehandler. Level=Off1catalina.org. Apache. Juli. asyncfilehandler. Directory=$ {Catalina. Base }/Logs1catalina.org. Apache. Juli. asyncfilehandler. prefix= Catalina.

Here I close it directly: 1catalina.org. Apache. Juli. asyncfilehandler. Level = off. We recommend using warning.
Then restart Tomcat for example, shutdown in step 3 and startup to make it take effect.

Tomcat server prompt: the server is temporarily unable to service your request due to maintenance downtime or capacity problems

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.