http://plasma-umass.org/BLeak/ 这个学期的 Practicum 是帮 Adobe 把 BLeak (Browser Leak)这个 tool extend 到 NodeJS,听起来挺好玩的 #V8 #memoryleak #BLeak
plasma-umass.org
BLeak: Automatically debug memory leaks in web applications
Using a short developer-provided script, BLeak automatically locates, ranks, and diagnoses memory leaks in web applications.
C’s Random Collection
BLeak.pdf
扫完一遍,挺有意思的,不过角度都是从 browser 出发的,visit page 多次对比各个 visual state 下的 heap snapshot。感觉 port 到 NodeJS 不太适用,但 Cloudflare worker 好像非常合理(call worker 很多次来对比 heap)?如果真的能对 Worker 去做 memory leak detection 还挺有意思的 #memoryleak #Javascript #V8
https://docs.google.com/presentation/d/1wUVmf78gG-ra5aOxvTfYdiLkdGaR9OhXRnOlIcEmu2s/edit#slide=id.g1d65bdf6_0_0 BloatBusters: Eliminating memory leaks in Gmail 提出了之前 paper 提到的一种手动去 detect mem leak 的方法,3 heaps technique #memoryleak #web #Javascript #V8
Google Docs
BloatBusters - WebPerfDays
BloatBusters: Eliminating memory leaks in Gmail WebPerfDays June 28, 2012 Loreena Lee Robert Hundt
https://www.jsv9000.app/ JS Event Loop viz,最近写 worker 需要对 event loop 理解的更深入,这个网站很有用 #javascript #v8 #eventloop
https://zuplo.com/blog/the-script-will-never-generate-a-response-on-cloudflare-workers Cloudflare Worker 有这个比较 tricky 的问题(不知道现在 resolve 没有),worker 修改过了 event loop,来实现 per request 的一些功能,而如果另一个 request 在等前一个 request 的 Promise,那就会
The script will never generate a response.
#javascript #cloudflare #worker #v8https://www.infoq.com/presentations/cloudflare-v8/ That's a pretty cool talk! 4年前 Kenton 在 InfoQ 上聊的 Worker,非常多细节,中午饭点看了一遍,值得再看 #worker #v8 #edgecompute
InfoQ
Fine-Grained Sandboxing with V8 Isolates
Kenton Varda explains how Cloudflare built a compute platform using V8 isolates instead of containers or VMs, achieving 10x-100x faster cold starts and lower memory footprints. He goes through technical details of embedding V8, distributing code, scheduling…