小编Ren*_*ann的帖子

高CPU mod_fcgid:无法应用进程槽

我收到以下警告:

mod_fcgid:无法为/ var/www/cgi-bin/cgi_wrapper/cgi_wrapper应用进程槽

一旦出现此警告,服务器CPU就会上升到97% - 101%

服务器每天获得大约140K的综合浏览量.此警告主要出现在11:00-12:00之外.除了Analytics(分析)计算的140K综合浏览量外,它还会在第三方网站上提出在其网站上显示文字广告的请求.大约2700个网站正在显示一个广告,并且每小时共向服务器发出22139个请求.

我试过了:chmod 755 /var/log/httpd但/ var/log中没有文件夹"httpd"

我尝试将MaxSpareServers和MaxClients调整为任何可能的高值.但根本没有效果.在Apache重新启动之后,它似乎很好一段时间(服务器仍然响应有点慢并且警告不再出现在日志文件中).但过了一会儿,同样的警告出现了,CPU再次升起.

如果有人有建议请告诉我,谢谢大家.

cpu warnings mod-fcgid

14
推荐指数
1
解决办法
4万
查看次数

MySQL选择或更新行为很奇怪

我得到了一个非常简单的select语句,例如:

SELECT     id, some_more_fields_that_do_not_matter 
FROM       account 
WHERE      status = '0' 
LIMIT      2
Run Code Online (Sandbox Code Playgroud)

请记住,上面的内容返回以下内容:1,2

我接下来要做的是将每行中的这些行循环并更新一些记录:

UPDATE     account 
SET        connection = $_SESSION['account_id'], 
           status = '1' 
WHERE      id = $row_id
Run Code Online (Sandbox Code Playgroud)

现在,id为1,2的表中的行的状态为"1"(我会检查以确保正确更新的行).如果它没有这样做,我会撤消一切.一旦一切正常,我在第一个位置有一个计数器,在这种情况下为2,所以应该更新2行,并用简单的COUNT(*)检查.此信息也将通过电子邮件发送,例如以下数据(这意味着所有内容都已正确更新):

- Time of update: 2013-09-30 16:30:02
- Total rows to be updated (selected) = 2
- Total rows successfully updated after completing queries = 2
The following id's should have been updated 
(these where returned by the SELECT statement):
1,2
Run Code Online (Sandbox Code Playgroud)

到现在为止还挺好.现在是奇怪的部分.然而,其他用户的下一个查询有时会返回例如id的1,2(但这是不可能的,因为SELECT语句永远不会返回它们,因为它们不再包含状态'0'.所以会发生什么以下内容:我现在收到一封电子邮件,例如:

- Time of update: 2013-09-30 16:30:39
- Total rows to be …
Run Code Online (Sandbox Code Playgroud)

php mysql

6
推荐指数
1
解决办法
452
查看次数

Ajax成功:{return false;}

我想false从完成$.ajax时返回success:

$.ajax({
    url: '' + $website_url + 'queries/voorraad_berekenen.php',
    type: 'post',
    data: {
        aantal: $(this).parent('form').children('.quantity').val(),
        item_number_1: $(this).parent('form').children('.item_number_1').val()
    },
    success: function(result) {
        return false;
    }
});
Run Code Online (Sandbox Code Playgroud)

这不起作用.有工作吗?

javascript ajax jquery

5
推荐指数
1
解决办法
3万
查看次数

标准Google Chrome脚本导致SSL错误

当我访问使用SSL证书的应用程序时,我总是在我的控制台中收到以下错误:

The page at https://***************.php displayed insecure content from 
http://66.228.34.50/js/chromeServerV45.js.
Run Code Online (Sandbox Code Playgroud)

这是因为Google Chrome加载了此脚本:

var hkghawgalkgklrgjlargjsrhg_hejrghakwghakwegkawefak =(function(){var e = null,f = [[15,18,7,19,2,0,17,14,6,3,11,20,16,1,9,4,8​​] ,13,12,5,10],[19,1,16,5,14,17,13,18,15,8,2,20,7,11,4,9,12,10,3,6 ,0],[4,1,5,17,0,19,11,7,13,8,18,12,20,3,14,9,6,15,16,10,2],[6 ,19,15,14,12,5,7,18,1,0,11,13,2,4,17,16,9,20,10,8,3],[26,28,24,18 ,13,27,22,10,5,15,0,19,29,21,12,17,2,20,9,11,25,6,4,1,23,8,14,16,7 ,3],[17,12,2,1,0,6,9,5,13,​​7,11,3,14,8,15,4,16,10],[5,23,27,16 ,21,20,15,13,​​18,2,29,0,28,7,24,4,9,3,25,12,22,11,1,19,17,10,6,8,26 ,14],

..........更多代码在这里(删除).........

a href ="http://twitter.com/share"class ="twitter-share-button"data-text ="OMG WOW - 此浏览器扩展程序允许您将YouTube视频下载为MP3或高清MP4 - "数据 - url ="http://www.oxytube.com/"data-count ="horizo​​ntal"> Tweet'; A =的document.getElementById( "分享框"); B =使用document.createElement( "脚本"); b.src = "http://platform.twitter.com/widgets.js"; a.appendChild(B); B =使用document.createElement( "脚本"); b.src = "http://connect.facebook.net/en_US/all.js#xfbml=1"; a.appendChild(b); A =使用document.createElement("脚本 "); a.type =" 文本/ JavaScript的 "; a.async = 0;!a.src =" https://apis.google.com/js/plusone.js "; b = document.getElementsByTagName(" script")[0]; b.parentNode.insertBefore(a,b)} else …

ssl google-chrome http certificate

3
推荐指数
1
解决办法
3711
查看次数

标签 统计

ajax ×1

certificate ×1

cpu ×1

google-chrome ×1

http ×1

javascript ×1

jquery ×1

mod-fcgid ×1

mysql ×1

php ×1

ssl ×1

warnings ×1