Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8199125
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T06:06:30+00:00 2026-06-07T06:06:30+00:00

My javascript is quite simple . It just keep calling ajax to download data

  • 0

My javascript is quite simple . It just keep calling ajax to download data and display it on my screen. I reuse those DOM element by updating data directly ( using jquery’s $(DIV).empty() function and then appendTo another content). However, after running overnight, my computer hang and seems like keep doing something.

I try to watch the memory consumption by some firefox addon. When running two hours, the memory may grows 200MB , but I am not sure if it’s only caused by my js or other reason.

I have some question about this issue.
1. is there any good way to monitor it (such as how much memory is used by specific web page , how much CPU resource is occupied , and how?)
2. is there any some kinda general way to design js web app to avoid such problem?

thanks, any comment is appreciated!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T06:06:31+00:00Added an answer on June 7, 2026 at 6:06 am

    Certain versions of Firefox use reference counting as a garbage collection strategy. Reference counting is prone to cause memory leaks under certain circumstances.

    Internet Explorer and Mozilla Firefox are the two Web browsers most
    commonly associated with memory leaks in JavaScript. The culprit in
    both browsers is the component object model used to manage DOM
    objects. Both the native Windows COM and Mozilla’s XPCOM use
    reference-counting garbage collection for memory allocation and
    retrieval. Reference counting is not always compatible with the
    mark-and-sweep garbage collection used for JavaScript. This article
    focuses on ways to work around memory leaks in JavaScript code. See
    Resources to learn more about COM layer memory handling in Firefox and
    IE.

    From http://www.ibm.com/developerworks/web/library/wa-memleak/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've never learnt JavaScript, but I imagine this is quite a simple problem. Just
Hi I am quite new to javascript. So I just tried to create a
I have found adding inputs to a form is quite simple in Javascript, but
I want to do something quite simple. Click a button on my html javascript
This is probably quite a simple answer however I'm very new to jQuery/JavaScript so
My Javascript is quite basic, but for some reason I am having trouble. I
I am new to JavaScript and actually quite desperate by now I have an
The instanceof keyword in JavaScript can be quite confusing when it is first encountered,
I'm quite new to JavaScript andI'm trying to do the following: I've two webpages
I'm quite new to javascript but have undertaken a task to get better aquainted

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.