<!DOCTYPE html><html><head lang="en"><meta charset="UTF-8"><title>Playground</title></head><body><p></p>'tis just the test page!</body></html>
You also can use 'dev reload' button (it's right on toolbar) instead of restarting the app. It restarts node too.
--
Way to check GC: run node-WebKit with 'expose-gc' flag and then try globals.gc()
Also, how do I add these flags? I tried adding expose-gc as parameter for the nw.exe, as well as "js-flags"/"chromium-args" in the package.json. There was no globals object nor a gc method.
--
You received this message because you are subscribed to a topic in the Google Groups "node-webkit" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/node-webkit/0vBDY7JExgo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to node-webkit...@googlegroups.com.
window.location.reload()
require('nw.gui').Window.get().reloadDev()
On Feb 29, 2024, at 9:02 AM, Vimal Solanki <vi...@logicrays.com> wrote:
I'm facing same kind of memory leak issue in my electron app. I've used react with electronJS. I've added "window.location.reload()" method in some of the cases so whenever this code gets execute then the memory is getting increase by around 5-10 MB. In 1/2 hours is reached at 1.5 GB memory usage. Initially it takes around 100/200 MB.
--
You received this message because you are subscribed to the Google Groups "nw.js" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nwjs-general...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nwjs-general/1d275855-2052-4361-8533-77de332a1cfen%40googlegroups.com.