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