dongnai5905 2014-09-01 12:28
浏览 238

Chrome继续增加使用的内存,并在循环刷新后最终崩溃

I have an auto refresh for updating data after a countdown sec and the task manager of chrome shows that the used memory will be increased(the increased amount depends on content of page) and I guess this is the root cause for the crash issue.

I have tried Firefox and it better than chrome (crash issue is not always happen but not solved this issue).

my content of page is through php and use some jQuery to control the view's element.

I have no idea where can I begin for this problem (the usage of javascript or ?),

Any suggestion or experience will be appreciated!

=========

Below function will be fired after a specific countdown sec for updating data and inject into the tag

function update_game_info_page(){
    if (sec === 0) {
         $.ajax({
            url: '/mgt/main/ajax_game_info_page',
            type:"GET",
            dataType:'text',

            success: function( data ) {

              $("#game_info").html( data );

            }

        });
        clearInterval(countdown);

    }
    sec--;
}

=======

My target is have a page like

http://www.sportsbookreview.com/betting-odds/#/odds/nba/game/pointspread.html

and this page is continue updating data without any increasing memory , I'd like to know how to do (php give a json data object for jquery and jquery show the content of html?) , any example will be also appreciated!

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 为什么使用javacv转封装rtsp为rtmp时出现如下问题:[h264 @ 000000004faf7500]no frame?
    • ¥15 乘性高斯噪声在深度学习网络中的应用
    • ¥15 运筹学排序问题中的在线排序
    • ¥15 关于docker部署flink集成hadoop的yarn,请教个问题 flink启动yarn-session.sh连不上hadoop,这个整了好几天一直不行,求帮忙看一下怎么解决
    • ¥30 求一段fortran代码用IVF编译运行的结果
    • ¥15 深度学习根据CNN网络模型,搭建BP模型并训练MNIST数据集
    • ¥15 C++ 头文件/宏冲突问题解决
    • ¥15 用comsol模拟大气湍流通过底部加热(温度不同)的腔体
    • ¥50 安卓adb backup备份子用户应用数据失败
    • ¥20 有人能用聚类分析帮我分析一下文本内容嘛