What happened to the 503 error of Service temporarily unavailable? _linux

Source: Internet
Author: User
In general, the emergence of service temporarily unavailable error is mostly due to the large number of Web site visits, resulting in traffic overrun or concurrency caused by large resource overrun errors. The solution is to upgrade the space to a better configuration, or check the Web site System program to make it better optimized.

Error Display:

Service temporarily unavailable

The server is temporarily unable to service your request due to maintenance downtime or capacity. Please try again later.

Workaround:

1, if you think of your own web site program no problem, then it should be too much space constraints caused by the lack of system resources caused by the error, you can consider changing space.

2, if the space is not a problem, it is necessary to carefully check the Web site program whether there is a dead loop or memory leaks and so on.

3, let the service temporarily unavailable automatically redefined to 503 pages

If there is a service temporarily unavailable problem, but do not want to directly display the error page, then you can specify this error page. Apache can use the following methods:

Edit

/usr/prima/apache_ssl/conf/httpd.conf
Find <ifmodule Mod_throttle.c&gt, add in block
Throttlemaxdelay 0
Back up Apache
Add in httpd.conf:
ErrorDocument 503/busy.html
So once again appear service temporarily unavailable error, will directly point to busy.html page!

Add 1

In fact, because of the heavy Web server load caused by the test to increase bandwidth or use of CDN acceleration, such as temporary solution, the general IIS or Apache connection to the number of visits according to their own increase, generally 5000-10000 is almost

Add 2

Problem
Service temporarily unavailable

Solution
1 This is because the bandwidth used by the user site exceeds the set ceiling.
To not display this error message, you can add a configuration to the configuration of Apache (the most popular Web server platform on UNIX platforms), which slows access when bandwidth is exceeded, rather than displaying an error message immediately.
Edit/usr/prima (the most complete virtual host management System)/apache (Unix platform's most popular Web server platform) _ssl/conf/httpd.conf, find <ifmodule mod_throttle.c> Add in block
Throttlemaxdelay 0
Restart Apache (the most popular Web server platform on UNIX platforms):
/ETC/INIT.D/HTTPD restart
You can also edit an HTML file that shows the server busy, put it in/www/icons/busy.html, and add it in httpd.conf:
ErrorDocument 503/icons/busy.html

2 There may be resin (a free JSP running platform) service has problems in resin (a free JSP running platform) 2 has the hint/etc/init.d/stop stop/etc/init.d/resin (a free JSP running platform) start
Resin (a free JSP running platform) server may be able to solve this problem after reboot

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.