Magento 503 错误,间歇性,容量问题?
我在安装 Magento 时突然出现间歇性 503 错误。有时,页面会加载一半,没有 JS 或 CSS,或者有时图像无法加载,但其余部分会加载。
我正在运行 1.5 magento,在出现问题之前没有更改任何设置。
我的托管人员(在共享托管上)说过:
基本上每次有人访问该网站时,您都会产生大约 10 - 20+ 每次点击的连接数:
/media/catalog/product/cache/1/...
例如: /media/catalog/product/cache/1/image/9df78eab33525d08d6e5fb8d27136e95/2/0/200_2_series-max.jpg
这已经超出了容量。我已经禁用了缓存,但问题仍然存在。有没有办法让我检查为什么会发生这种情况,或者我是托管小伙子的一时兴起。
提前致谢。
I'm having intermittent 503 errors, out of the blue, on a Magento install. Occasionally the page will half load, without JS or CSS, or sometimes the images will not load, but the rest of it will.
I'm running 1.5 magento, and no settings have been changed before it started going awry.
My hosting guys (it's on shared hosting) have said:
Basically every time someone hits the site, you spawn about 10 - 20+
connections for every hit to:/media/catalog/product/cache/1/....
For example:
/media/catalog/product/cache/1/image/9df78eab33525d08d6e5fb8d27136e95/2/0/200_2_series-max.jpg
And this is maxing out the capacity. I've disabled cache, and the problem persists. Is there a way I can check why this is happening, or am I at the whim of my hosting chaps.
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不是您禁用的缓存,而是重新打开它,因为它只会导致更严重的系统负载,因为通常缓存的所有内容都必须在每个请求时重新编译。
这是图像缓存。您的系统正在超载,为您的客户提供图像。因此,您的服务器可能不是最佳的,无法正确处理施加在其上的负载。尝试运行 Magento 时共享托管计划的典型症状是,当 Bing、Yahoo 和 Google 第一次决定同时对您的网站建立索引时,这通常会导致您的网站一败涂地。
当您开始注意到网站陷入困境时,要做的第一件事就是进入“客户 - 在线客户”并查看有多少 Magento 报告在线。按 IP 排序,查看谁在占用资源,并将该 IP 转移到机器人 VS 浏览器,看看它是否是已知的 Web 索引器。下一步是获取您的 Web 服务器访问日志并开始查看所请求的内容,以确保您的站点上没有一些脚本小子试图破坏它。
消除图像加载问题的一种方法是转到 Amazon Web Services,注册 CloudFront 并通过此 CDN 提供图像。基本上,它充当代理系统,因此您的图像仅在初始视图上被请求,然后通过 CloudFront 提供。您的服务器可能仍然会出现过载问题,但大部分问题不会是图像服务造成的。
Not the cache you've disabled, turn that back on as it only causes more severe system loading as everything that would normally be cached has to be recompiled on every request.
This is the image cache. Your system is being overloaded serving out images to your customers. Therefore your server is probably suboptimal and not able to properly handle the loads being placed on it. Typical symptom on a shared hosting plan when attempting to run Magento, this typically causes your website to fall flat on its face the first time Bing, Yahoo and Google decide to simultaneously index your website.
The first thing to do when you start noticing the website to get boggy is to go into "Customer - Online Customers" and see how many Magento reports are online. Sort by IP and see who's hogging resources and take that ip over to Bots VS Browsers to see if it's a known web indexer. The next step is to get your Web Server Access log and start viewing what's being requested to make sure you don't have some script kiddie on your site trying to break it.
One way of eliminating your image loading problem is to go over to Amazon Web Services, sign up for CloudFront and serve your images out through this CDN. Basically it serves as a proxy system so your images only get requested on the initial view and then get served out through CloudFront. Your server still probably is going to have problems with overloading, but it won't be image serving that causes most of it.
您的“共享托管人员”没有礼貌地告诉您他们无法为您托管 Magento 安装。这,
虽然我确信描述了他们发现的东西,但并没有准确地描述它。
无论您遇到的问题的具体情况是什么,您现在使用的服务器都旨在托管不同类型的应用程序。你会继续遇到问题。移至支持 Magento 的主机。
Your "shared hosting guys" guys don't have the decency to tell you that they're not capable of hosting a Magento installation for you. This,
while I'm sure describes something they've uncovered, doesn't accurately describe it.
Whatever the specifics of the problem you're running into are, the servers your on right now are designed to host a different type of application. You'll continue to run into problems. Move to a host that supports Magento.