Firefox left w/ graphs open overtakes RAM

Forum Home Forums Development and Integration Firefox left w/ graphs open overtakes RAM

Viewing 15 posts - 1 through 15 (of 17 total)
  • Author
    Posts
  • #1026
    inpelsa
    Participant

    Hi!

    If I leave Firefox open with a channel graph open, the next day Firefox is taking 2 Gb RAM and at the end Firefox crashes.

    Is there any known memory leakage that could make this?

    I will give a try to IE and Chome on other computers…

    thanks!

    #1030
    Mikhail
    Moderator

    Hi,
    Is the only chart web page is open? I mean do you close the main web form with scheme or table view?

    When you test the same with IE and Chrome please write about the result.

    #1031
    Mikhail
    Moderator

    Is there any known memory leakage that could make this?

    Chart component uses JavaScript and web service. JavaScript has auto memory management and should work correctly. Let’s compare with other browsers. Close all other pages except chart.

    #1034
    inpelsa
    Participant

    After +- 15 minutes running:
    – 2 computers, Win7 64 bit
    – Each web explorer with 2 tabs: table view + 1 channel graph

    Results on both computers:
    – IE 9.0.8112 x64 3 min CPU 660 MB RAM (100 MB at the beginning)
    – Firefox 45 2 min CPU 395 MB RAM (120 MB at the beginning)
    – Chrome 49.0 40 secs CPU 25 MB RAM (same memory at the beginning) (on the 2nd computer it took 300 MB RAM)

    On all cases, seems that closing/not opening Table View tab solves the problem but… I need it.

    I think it’s clear… 🙂

    PD: Javascript will dispose/collect garbage/free memory if objects/data are not referenced any more (or marked for dispose…) in any means.

    #1042
    Mikhail
    Moderator

    Periodically I do similar tests. I should repeat them.
    That’s funny, but a few years ago SCADA-Web run stable on IE for days. And Chrome supported Silverlight 🙂
    I think that the cause of memory leak is reloading frames within web page. This approach is outdated and will be changed to REST API.

    #1044
    inpelsa
    Participant

    Technology never stops 🙂

    Maybe related to jQuery: https://github.com/jquery/jquery/issues/2685

    Through reloading/closing full Table View tab doesn’t release memory on Firefox :/
    If you find a fix while you finish the new API drop me a line please, is a bit anonying restarting web browser every few hours.

    #1051
    Mikhail
    Moderator

    My results for the current version of SCADA-Web after 1 or 2 hours of work:
    FF – changed: 1.2GB => 400 MB => 600MB => 20MB – freeze
    IE – increased to 600MB – freeze
    Edge – changed: 15MB => 3MB, but background Edge process 2GB
    Chrome – changed: 25MB => 15MB, but background Chrome process eats RAM, sometimes page can’t be displayed and memory is cleared – not fair

    I will try with old jQuery. The jQuery ticket that you found is very interesting.

    New scheme engine after the night:
    FF – 130MB
    Chrome – 17MB + 21MB background Chrome process

    #1054
    inpelsa
    Participant

    New scheme looks quite good!

    Let me know when/where I can download that version!

    #1056
    Mikhail
    Moderator

    Of course. I do the best to make this moment closer.

    #1057
    inpelsa
    Participant

    By the way… there is also something anonying on the table view, if for any reason columns are too wide (numbers with values of ~4 billions) there is no horizontal scroll bar to see columns to the right.

    Even if I choose 0-11h I can only see 0-8 with a 22″ monitor.

    this has a low priority 🙂

    #1062
    Mikhail
    Moderator

    Hm, scrollbar used to be, but disappeared )

    #1132
    Washu Hakubi
    Participant

    Had the same scroll bar problem today.
    To make the horizontal bar appear, on the tableView.css in the line number 8 set overflow to auto.
    The horizontal bar will appear right above the event line.

    Before:

    #divTableView
    {
        overflow: hidden;
    }

    After:

    #divTableView
    {
        overflow: auto;
    }
    #1147
    inpelsa
    Participant

    Perfect!!

    #1229
    inpelsa
    Participant

    Mikhail, did you find the bug about memory usage?

    #1231
    Mikhail
    Moderator

    No, I think it’s better to release the new web app ASAP.

Viewing 15 posts - 1 through 15 (of 17 total)
  • You must be logged in to reply to this topic.