是这个嘛? [Sun May 13 13:01:14 2012] [warn] Init: Session Cache is not configured [hint: SSLSessionCache] [Sun May 13 13:01:14 2012] [notice] Apache/2.2.22 (Win32) mod_ssl/2.2.22 OpenSSL/0.9.8x configured -- resuming normal operations [Sun May 13 13:01:14 2012] [notice] Server built: May 13 2012 12:51:11 [Sun May 13 13:01:14 2012] [notice] Parent: Created child process 3660 Apache server interrupted... arn] Init: Session Cache is not configured [hint: SSLSessionCache] [Sun May 13 13:01:15 2012] [notice] Child 3660: Child process is running [Sun May 13 13:01:15 2012] [notice] Child 3660: Acquired the start mutex. [Sun May 13 13:01:15 2012] [notice] Child 3660: Starting 64 worker threads. [Sun May 13 13:01:15 2012] [notice] Child 3660: Starting thread to listen on port 80. [Sun May 13 13:01:15 2012] [notice] Child 3660: Starting thread to listen on port 80. [Sun May 13 13:01:28 2012] [notice] Parent: Received shutdown signal -- Shutting down the server. [Sun May 13 13:01:28 2012] [notice] Child 3660: Exit event signaled. Child process is ending. [Sun May 13 13:01:29 2012] [notice] Child 3660: Released the start mutex [Sun May 13 13:01:30 2012] [notice] Child 3660: All worker threads have exited. [Sun May 13 13:01:30 2012] [notice] Child 3660: Child process is exiting [Sun May 13 13:01:30 2012] [notice] Parent: Child process exited successfully.
apache卡死是神马个情况? 求解~~
你那个错误日志能找出来瞄哈不~~求解
我以前也卡过,多数是程序问题,也有可能是浏览器卡住了
看Log是比较直接的方法
[Sun May 13 13:01:14 2012] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Sun May 13 13:01:14 2012] [notice] Apache/2.2.22 (Win32) mod_ssl/2.2.22 OpenSSL/0.9.8x configured -- resuming normal operations
[Sun May 13 13:01:14 2012] [notice] Server built: May 13 2012 12:51:11
[Sun May 13 13:01:14 2012] [notice] Parent: Created child process 3660
Apache server interrupted...
arn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Sun May 13 13:01:15 2012] [notice] Child 3660: Child process is running
[Sun May 13 13:01:15 2012] [notice] Child 3660: Acquired the start mutex.
[Sun May 13 13:01:15 2012] [notice] Child 3660: Starting 64 worker threads.
[Sun May 13 13:01:15 2012] [notice] Child 3660: Starting thread to listen on port 80.
[Sun May 13 13:01:15 2012] [notice] Child 3660: Starting thread to listen on port 80.
[Sun May 13 13:01:28 2012] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Sun May 13 13:01:28 2012] [notice] Child 3660: Exit event signaled. Child process is ending.
[Sun May 13 13:01:29 2012] [notice] Child 3660: Released the start mutex
[Sun May 13 13:01:30 2012] [notice] Child 3660: All worker threads have exited.
[Sun May 13 13:01:30 2012] [notice] Child 3660: Child process is exiting
[Sun May 13 13:01:30 2012] [notice] Parent: Child process exited successfully.
重起一apache,就又可以打开网站了。
http://topic.csdn.net/u/20120528/18/2255b303-9aa6-487e-974a-686278564e74.html
商品表里有6十万数据,
团购表里有1千3百万数据。好像是在团购表里城市多切换几下,就会被卡做。
也好像是在商品表里向下拉 要卡一会,在加载进来,(程序一下发了三个请求,这个地方我也要修改)也会卡一下。这个是我感觉观察到的,对了,这个里面的查询数据我都用了“like” 后面加了%
就比如说 查询衣服 t_id like "10%" 也不知道,是不是用了like的原因,但是我在数据库看了,查询时间还是挺快的嘛?
但是好像又行不通,如果是因为表大卡起的, 那也是mysql的事啊,不会重起apache就好了啊。
第二个怀疑是,因为我的瀑布流ajax请求,因为我是页面高度除以当前滚动的位置,大于1.5就加载,,
就是这个算法,造成当滚动条大于1.5的时候,本想只发一个请求,然后追加页面内容,谁知道,大于1.5就加载时,firbug 看,发送了3个请求,造成的原因是因为发送的第一个请求,还没有数据过来,没有增加页面高度,造成条件满足大于1.5,它就无限地发请求。
h = document.body.offsetHeight,
t = $(document).scrollTop(),
s = h/t;
if( s <= 1.5 && times < 3) {不知道是不是这个原因,造成卡起的 apache ,
其实,我还很想知道,用什么方法调试这类apache问题。
times < 3
times 是什么?如果是由滚动条事件触发的,times 表示一个时间间隔。
那么 times 应大于某个时间间隔时才行
就是发一次请求
times++加载三次就显示分页,我是为了做这样的功能的。如果是由滚动条事件触发的,times 表示一个时间间隔。
那么 times 应大于某个时间间隔时才行你的意思是,我在请求一次的时候,还记录一下请求时间,如果时间小于一定时间就,不加载?
this.getPages = function(getDataUrl,page,typeId){
var times=0;
$(document).ready(function(){
$(window).scroll(function() {
var start = page*80+(20*times),
end = 20,
h = document.body.offsetHeight,
t = $(document).scrollTop(),
s = h/t;
if( s <= 1.5 && times < 3) {
$.getJSON(getDataUrl,{start:start,end:end,id:typeId},function(e){
scrollData = e;
var size = scrollData.length;
for(var i =0 ;i< size; i++){
if(i<=4){
$("#list_01_01").append(scrollData[i]);
}else if(i<=9){
$("#list_01_02").append(scrollData[i]);
} else if(i<=14){
$("#list_01_03").append(scrollData[i]);
} else if(i<=19){
$("#list_01_04").append(scrollData[i]);
}
}
scrollData='';
})
times++;
a++;
}
if(times == 3){
$("#page_select").css('display','block');
exit();
}
})
})
}我到现在为止,处理我上面无会无限发请求,还是不知道怎么解决?
设一全局变量 ok 令
ok = 1;
.....
if( s <= 1.5 && times < 3 && ok) {
ok = 0;
$.getJSON(getDataUrl,{start:start,end:end,id:typeId},function(e){
scrollData = e;
...
scrollData='';
ok = 1;
}其意义在于:当ajax数据没有返回时,不进行下一轮请求