我想问问,这个是什么原因引起的哟?
我怎么调试呢,找出问题呢?

解决方案 »

  1.   

    怎么可能是死循环呢,要是死循环卡的是你的页面,关apache毛事呀~~
    apache卡死是神马个情况?  求解~~
    你那个错误日志能找出来瞄哈不~~求解
      

  2.   

    你打开一个确可正确的页面,停留等他卡死,若是再卡死,是apache问题,与程序无关
    我以前也卡过,多数是程序问题,也有可能是浏览器卡住了
    看Log是比较直接的方法
      

  3.   

    是这个嘛?
    [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.
      

  4.   

    卡死apache 还是卡死浏览器? 还是两个都卡死了?多半都是程序没写好 死循环.访问了一会卡死那多半是js.要么你访问后关闭浏览器 看看你apache还死不死...
      

  5.   

    access 是空的,什么内容都没有
      

  6.   

    关闭浏览器 打开以前的网址,还是卡起的,打不开网站,
    重起一apache,就又可以打开网站了。
      

  7.   

    http://125.86.30.154:8081/goods/tuangou_t0_a154_p0.html就是这个网站,多在页面里操作切换几次,我的apache就会死掉。对了,这个里面的分类,我是用的上一次我在论坛进里面问的方法。
    http://topic.csdn.net/u/20120528/18/2255b303-9aa6-487e-974a-686278564e74.html
    商品表里有6十万数据,
    团购表里有1千3百万数据。好像是在团购表里城市多切换几下,就会被卡做。
    也好像是在商品表里向下拉 要卡一会,在加载进来,(程序一下发了三个请求,这个地方我也要修改)也会卡一下。这个是我感觉观察到的,对了,这个里面的查询数据我都用了“like”  后面加了% 
    就比如说 查询衣服  t_id like "10%" 也不知道,是不是用了like的原因,但是我在数据库看了,查询时间还是挺快的嘛?
      

  8.   

    有这几个怀疑,一个是数据表大,(团购表就有6个G),造成卡起的——————
    但是好像又行不通,如果是因为表大卡起的, 那也是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问题。
      

  9.   

    Apache死掉是什么样子我是以打不开网站,为依据,判断apache死掉。
      

  10.   

    加载请求是由谁触发的?
    times < 3
    times 是什么?如果是由滚动条事件触发的,times 表示一个时间间隔。
    那么 times 应大于某个时间间隔时才行
      

  11.   

    times < 3
    就是发一次请求
    times++加载三次就显示分页,我是为了做这样的功能的。如果是由滚动条事件触发的,times 表示一个时间间隔。
    那么 times 应大于某个时间间隔时才行你的意思是,我在请求一次的时候,还记录一下请求时间,如果时间小于一定时间就,不加载?
      

  12.   


    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();
                            }
                        })
    })
    }我到现在为止,处理我上面无会无限发请求,还是不知道怎么解决?
      

  13.   

    至少需要这样:
    设一全局变量 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数据没有返回时,不进行下一轮请求
      

  14.   

    ...... 喜欢唠叨老大的比喻。。 但是现在是apache 的错还是 程序的错呢 , 好像 还没找到问题