我使用 const array = new ArrayBuffer(1024 * 1024 * 2000) 好像模拟不出来。
我使用 const array = new ArrayBuffer(1024 * 1024 * 2000) 好像模拟不出来。
|
tool2dFeb 3, 2023
1
开一个 1G 内存的虚拟机,运行 windows 10 ,同时关闭虚拟内存。
然后虚拟机里,再运行一大堆 chrome 。 |
|
loadingFeb 3, 2023
2
for 一些全局变量声名的代码,然后 eval 运行一下。
|
|
okakuyangFeb 3, 2023
3
你往 buffer 里填充数据就可以了
|
|
debuggerxFeb 3, 2023
4
let a = [];for(let i = 0 ; i < 100000000 ; i++) {a.push('aaaaa')}
|
|
5
new Array(1024*1024*1000).fill(0)
new 出来后要填充。 注意:你如果在控制台敲这个代码,不 enter 执行,也有可能把页面搞崩溃。 |
|
opengpsFeb 3, 2023
6
一个超大的变量,不同的往里写入内容,就是在占用内存
|
|
630071099Feb 3, 2023
7
while(true) window.name += 6;
|
|
windychen0Feb 3, 2023
8
while(1){}
|
|
AshoreFeb 3, 2023
9
<a href="https://sm.ms/image/qkAhsUzvI6LeOjY" target="_blank"><img src="https://s2.loli.net/2023/02/03/qkAhsUzvI6LeOjY.png" ></a>
|
|
karott7Feb 3, 2023
10
直接无限循环新增变量
|