Browser version: 31.4.0-1.gtk3.mx21
32-bit or 64-bit browser?:
Problem URL:Self
Browser theme (if not default):
Installed add-ons:
Installed plugins: (about:plugins):
There seems to be a memory leak on the browser with this simple code I added. When I monitor the memory of palemoon using "pidstat -r -C palemoon", the memory just continuously grows, not at a fast rate however.
Code: Select all
<!DOCTYPE html>
<html>
<head>
<script src="test.js"></script>
</head>
<body>
<h1>DEVICE</h1>
<span id="rf_data"></span>
<br>
<span id="php_mem"></span>
</body>
</html>
Code: Select all
"use strict";
var id;
function test(){
const xhttp = new XMLHttpRequest();
xhttp.onload = function(){
document.getElementById('rf_data').textContent=this.responseText;
}
xhttp.open("GET", "test_ajax.php");
xhttp.send();
clearInterval(id);
id = setInterval(test, 1000);
}
test();
id = setInterval(test, 1000);
Code: Select all
<?php
echo rand() . rand() . rand() . rand() . rand() . rand() . rand() . rand() . rand() . rand() . rand() . rand() . rand();
?>