Simon Smith
Simon Smith
@sebhildebrandt `getStaticData` doesnt work with the `powerShellStart` i can see from `process explorer` that node starts a single powershell and never opens more than one process, HOWEVER the command also...
@4n0nh4x0r have you tried my simple script above? i see the single powershell open, then use about 60% cpu, usage and 200MB memory for about 20secs (as expected as its...
> For me it stays at stable low cpu usage, and the memory allocated to the powershell is at about 114MB in this case But other than that nothing special...
> I didnt get an output there, the script just continued doing work and never quits so its not just me then, so something isnt right with the `getStaticData` then...
> @si458 Which version of nodejs are you using? > I m using node 16(.11.1) Latest 14 LTS But I'm AFK at mo but will try updating to latest 16...
@sebhildebrandt something to note Cmd.exe isn't going away! For example I can still run `query user` to get all users, Yet it was replaced with powershell? Also I found no...
@4n0nh4x0r i have just tried upgrading my node to 16.13.0 and its the same issue runs one instance of powershell as expected, but the memory usage of it keeps climbing,...
@4n0nh4x0r after me watching `process explorer` using only `data.cpu = await si.get({ currentLoad: "currentLoad" })` doesnt see a memory increase? but if you use only `data.ram = await si.get({ mem:...
might be helpful but not sure but i hope it helps! after a quick google and regedit look, this registry location stores infor about your audio devices `HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\MMDevices\Audio\Render\{RANDOM UUID}` the...
@sebhildebrandt have you tried calling exec with powershell set as the shell? rather then calling powershell.exe then the command? https://stackoverflow.com/questions/10179114/execute-powershell-script-from-node-js https://stackoverflow.com/a/61219838/1210734