Vue project memory overflow

scenario: occasional memory overflow occurs when I do vue2.0 webpack3.0 hot updates

find all kinds of reasons for finding ways on the Internet, and finally add such a scheme to pakage.json: node-- max_old_space_size=4096 build/build.js (it"s useless even if you add it)

there is another plug-in to expand memory (indicators do not address the root causes)

I can"t understand why this problem keeps asking the boss to explain

Feb.13,2022

should be your code problem, such as writing a dead loop, it is useless to expand memory.


code written by myself to see if there are any oversized files in your project


your project has any oversized files, or the directory is very deep. Buffer.js specializes in binary file caching, and hot updates must read files in real time. If memory overflow occurs, I will consider these two reasons


today when navigation frequently switches and loads components. 360 Rapid browser memory overflow, release timer, window.onresize, and other global variables destroy, and empty some larger variables defined in data during destroy. By setting to disable caching: meta, requests, url binding variables, etc., you can also improve the performance of page components by troubleshooting page components through vue tools:
image.png

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b397ae-4ee00.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b397ae-4ee00.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?