Tomcat伺服器提示:The server is temporarily unable to service your request due to maintenance downtime or capacity problems

來源:互聯網
上載者:User

標籤:訪問   tomcat伺服器   dir   red   col   檔案   cat   靠譜   addition   

今天網站突然不能訪問了,這裡做一下記錄提示:
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.
造成原因分析:

一、網站超過了伺服器限制造成的

二、資料庫連接池是否已滿,記憶體是否溢出

解決:

本次記錄造成的原因是,伺服器配置低,Tomcat logs目錄下  catalina.out檔案過大(24M) 造成伺服器 暫停服務

1. 解決辦法:
cd logsecho > catalina.out #來清空內容

../bin/shutdown.sh #停止服務
../bin/startup.sh #啟動服務

注意:這隻能暫時解決,可能檔案很快又會滿了,當然升級伺服器可能是最靠譜的解決辦法

2. catalina.out日誌level調整

既然記錄檔catalina.out太大,那就調整它的日誌記錄等級,tomcat日誌等級如下:

SEVERE (highest value) > WARNING > INFO > CONFIG > FINE(預設) > FINER > FINEST (lowest value)

# vim conf/logging.properties
#################### Handler specific properties.# Describes specific configuration info for Handlers.###################1catalina.org.apache.juli.AsyncFileHandler.level = OFF1catalina.org.apache.juli.AsyncFileHandler.directory = ${catalina.base}/logs1catalina.org.apache.juli.AsyncFileHandler.prefix = catalina.

這裡我就直接把它關閉了:1catalina.org.apache.juli.AsyncFileHandler.level = OFF,推薦使用WARNING
然後如第三步的shutdown再startup重啟tomcat使之生效。

 

Tomcat伺服器提示:The server is temporarily unable to service your request due to maintenance downtime or capacity problems

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.