raksmart活动促销

分享

写回答

发帖

[提问] HM经常出现500error,可能和FastCGI(FCGI)有关。

HostMonster HostMonster 2689 人阅读 | 5 人回复

发表于 2009-6-8 18:41:28 | 显示全部楼层 |阅读模式

我在hm上购买了一个主机,用了快两年了,前几个月我放了一个livechat系统在上面。现在经常出现网站打不开(500error)
Internal Server Error
查看系统日志有:

[Mon Jun 08 03:37:04 2009] [notice] mod_fcgid: too much /home/xxx/public_html/bbb/livechat/getdata/content/client.php process(current:5, max:5), skip the spawn request
[Mon Jun 08 03:37:04 2009] [notice] mod_fcgid: too much /home/xxx/public_html/bbb/livechat/getdata/content/client.php [Mon Jun 08 03:37:04 2009] [notice] mod_fcgid: too much /home/xxx/public_html/bbb/livechat/getdata/content/client.php

有些页面有时打开非常慢。但是是一个非常简单的代码。
快的时间一刷新就开了,慢的时候1分钟,或者500error
浏览html页面没有问题。

进程:

11410 /ramdisk/bin/fcgiphp5 - xxxToday at 03:48 Kill Process / Force Kill Process
26148 /ramdisk/bin/fcgiphp5 - xxxToday at 03:53 Kill Process / Force Kill Process
26491 /ramdisk/bin/fcgiphp5 - xxxToday at 03:53 Kill Process / Force Kill Process

看到很多fcgi字样,我想可能和这个有关系。说是我的程序频繁访问,被中止,但像这种在线chat肯定是要频繁访问的。是不是服务负荷不了?

上述问题应该如何解决,请大家给我点意见,不胜感激!

回答|共 5 个

一路同行

发表于 2009-6-8 18:44:38 | 显示全部楼层

在线聊天系统频繁读取数据库,比较消耗资源,最好不要用在虚拟主机上

kingto

发表于 2009-6-9 05:27:49 | 显示全部楼层

居然livechat

VPS使这个还得考虑内存和cpu问题呢

goldstein

发表于 2009-6-9 10:32:56 | 显示全部楼层

mod_fcgid 是 Apache 的一个 FastCGI 模块,FastCGI 模式虽然节省资源,但问题很多,跑比较复杂的脚本可能会出问题。

你切换回普通模式再试试。

lxq73061

发表于 2009-6-10 11:36:29 | 显示全部楼层

多谢大家指教,我去试一下

大漠孤狼

发表于 2009-6-10 11:46:38 | 显示全部楼层

禁用看看
您需要登录后才可以回帖 登录 | 注册

本版积分规则

HostMonster讨论

HostMonster
优惠码:优惠链接
介绍:HostMonster美国主机商成立于1996年,总部位于犹他州普罗沃,提供主机托管服务,在业内有比较有实力,而且口碑也不错。HostMonster美国主机性价比较高,而且基本不会额外收取费用,其无限型方案支持无限磁盘空间,无限带宽和电子邮件帐户,提供免费域名1个。
查看更多

lxq73061

发表主题