Skip to content
This repository has been archived by the owner on Feb 28, 2019. It is now read-only.

请问能解决访问镜像时经常500的问题么? #48

Open
ghost opened this issue Dec 3, 2016 · 5 comments
Open

请问能解决访问镜像时经常500的问题么? #48

ghost opened this issue Dec 3, 2016 · 5 comments

Comments

@ghost
Copy link

ghost commented Dec 3, 2016

我今天刚在一台128MB内存的VPS上装了zmirror的Facebook镜像,同时还装了google、twitter、twittermobile、youtube、youtubemobile、instagram的镜像和net-speeder,然而有时候访问facebook镜像的时候经常显示下面这些东西。

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at root@localhost to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

Apache/2.4.23 (Ubuntu) Server at (这里是我的镜像域名)Port 443

我记得以前我在一台512MB内存的VPS上装了这7个镜像,用久了也会500,有没有办法解决呢?

@ghost
Copy link
Author

ghost commented Dec 4, 2016

刚刚看了看VPS内存使用情况,发现内存占用是这样子的。

root@UnawareOnly-VM:~# free -m
total used free shared buffers cached
Mem: 128 123 4 14 0 22
-/+ buffers/cache: 101 26
Swap: 0 0 0

也许是因为镜像开太多了,128M内存的VPS运行不起,另外,我还发现不管是什么镜像,图片有时候会加载失败,在浏览器上就显示一张裂图,在新窗口打开这张图片就又可以加载出这张图片了。

@aploium
Copy link
Owner

aploium commented Dec 4, 2016

128MB内存运行zmirror会很吃力,由于zmirror的运作原理,需要预先下载好目标服务器的响应,进行改写,才能发送给用户,所以请求时的瞬时内存消耗会比较大。

请问你说的500是zmirror自身抛出的500吗(页面中显示'zmirror internal error')

@aploium
Copy link
Owner

aploium commented Dec 4, 2016

以及,请问能否提供500发生时的apache log
在 /var/log/apache2/ 目录下,只需要发生500那个请求对应的log

@ghost
Copy link
Author

ghost commented Dec 4, 2016

500不是zmirror自身抛出的,上面并没有"zmirror internal error",另外apache log要6天后(12月11日)我才有空提供,希望在此期间不关闭这个issue。

@ghost
Copy link
Author

ghost commented Dec 11, 2016

这是今天我测试时发生500后立刻下载进来的错误日志文件:http://pan.baidu.com/share/init?shareid=2444690143&uk=3712370120
密码:2vjs,下载后请告诉我。

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant