![]() See Exponential distribution if you are interested in the math behind the function. The measurementInterval() function computes a random interval in milliseconds such that on average there is one measurement every five minutes. SetTimeout (performMeasurement, interval ) The difference between these two notions leads to memory leaks as illustrated by the following example. If the web page cannot reach an object via its variables and the fields of other reachable objects, then the browser can safely reclaim the object. Therefore browsers approximate the notion of "an object is needed" with the notion of "an object is reachable". The detection is not perfect though, and it was proven that perfect detection is an impossible task. Since memory is a finite resource, the browser performs garbage collection to detect when an object is no longer needed and to free the underlying memory chunk. Whenever a web page creates an object, the browser allocates a chunk of memory "under the hood" to store the object. Type top command Press Enter to run the command. To see the rate of memory pages being moved from physical memory to disk use vmstat, and examine the columns si and so (which stands for pages swapped in, and. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |