Answer the question
In order to leave comments, you need to log in
Can errors in the Chrome console clog RAM or permanent memory, if so, how to prevent this?
There is an html page that throws an error every second
. This page will be open around the clock, possibly for several weeks in a row. The question is, will this somehow affect the operation of the machine on which this tab is open?
Answer the question
In order to leave comments, you need to log in
the error message itself takes little time and it really takes a lot to make it noticeable,
but here is the debugging information, when a large object is displayed in console.log and a lot - it takes decent RAM (since the entire object is copied and stored in memory so that you could see it in the interface) I had an example when the firefox window worked for more than a day and the debugging information loaded the RAM so heavily that the swap file was involved and the browser itself was wildly slow, but clearing the console immediately fixed everything,
call the consloe.clear () script like so for automatic cleaning of the console once an hour, this will be more than enough setInterval(()=>console.clear(),3600*1000)
You don't have to do anything, the closed console only stores the last 1000 entries.
if yes, how to prevent it?Might just fix the error. You can also place pictures at the desired address, or remove file access from the script.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question