We are building a node-webkit app and need it to be as light on memory as possible.
On analysing how it loads, I see that when nw.exe starts, it loads a second copy of nw.exe as a child process.
As I open more windows, it ends up loading several more child process copies of nw.exe, each taking up a decent amount of RAM. Our small app becomes 100-200 MB+ in a short time.
I notice that it doesn't do this for every window I open.
I know that Chrome/web-kit is quite memory hungry but want to reduce my memory footprint as much as possible. To this end, I have a few questions?
1. Under what circumstances will it spawn a new nw.exe child process?
2. Why does it work this way in the first place?
3. Is there any way to avoid this and run everything in a single nw.exe process?
4. What other tips are there, to help reduce my application's memory usage?
Thanks.
--
You received this message because you are subscribed to the Google Groups "node-webkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-webkit...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thanks Anatoly, you mention a new process for each window. I notice that after I get to 4 nw.exe's, I can add as many windows as I like but no more nw.exe's are spawned. Perhaps at one point, it starts using the same nw.exe for a collection of Windows.Therefore I'm still confused as to how it decides when to fire of a new nw.exe. Any other thoughts?
--
You received this message because you are subscribed to the Google Groups "node-webkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-webkit...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.