coreybutler / fenix

A simple and visual static web server with collaboration features.
https://preview.fenixwebserver.com
GNU General Public License v3.0
1.65k stars 135 forks source link

How to reduce CPU usage? #99

Closed ghost closed 6 years ago

ghost commented 6 years ago

I am running Fenix on a very small windows 10 notebook. With nothing going on it consumes about 25% of the CPU. I have only a single server running with straight HTML. Is there any way to reduce the amount of CPU usage, so that the battery lasts longer?

coreybutler commented 6 years ago

That seems pretty high for CPU usage, even on a small notebook. There's nothing that's very CPU intensive in Fenix, so I'm not sure why it would be that high.

Are you using the request browser? Even that isn't very computationally expensive, but it's the only thing I can think of to turn off.

ghost commented 6 years ago

I am not using the request browser. The GUI only consumes about 2%. The Fenix service in resource monitor cycles about every 5 seconds between 15% and 25%. It does not matter if I stop the single server. Does that give you any clues? I've attached a screen shot with the yellow being fenix.exe

fenix

coreybutler commented 6 years ago

I think the process eating your CPU may be the underlying node-webkit engine. It's hard to tell, but the second fenix.exe aligns with what I usually see for the UI/server process. The behavior (or lack of change) you're describing also suggests it's the node-webkit process. If that's the case, there really isn't anything you can do about that and I won't be cutting another 2.x.x release (since v3 is imminent).

Are you running the Windows Creators Update?

ghost commented 6 years ago

Thank you looking into this. I am not running Windows Creators Update, since this is a standalone device (no internet) as part of a turnkey system.

  1. Would that update help or hinder?
  2. Do you think v3 will help with this issue?

On Mon, Feb 26, 2018 at 8:54 PM, Corey Butler notifications@github.com wrote:

I think the process eating your CPU may be the underlying node-webkit engine. It's hard to tell, but the second fenix.exe aligns with what I usually see for the UI/server process. The behavior (or lack of change) you're describing also suggests it's the node-webkit process. If that's the case, there really isn't anything you can do about that and I won't be cutting another 2.x.x release (since v3 is imminent).

Are you running the Windows Creators Update?

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/coreybutler/fenix/issues/99#issuecomment-368747214, or mute the thread https://github.com/notifications/unsubscribe-auth/AjBb6VL_RwSd07SG_4GvkN1OdQ0L8RN6ks5tY4p0gaJpZM4SOzES .

coreybutler commented 6 years ago

I do not think the Creators Update will help... I was actually wondering if that was the problem (since I can't replicate this and I'm not on the Creators Update).

So far, v3 has shown minimal resource consumption. We built v3 from scratch on Electron (no more node-webkit), which usually doesn't have high CPU usage. Some Electron apps have very high memory usage, so we've spent alot of time to not fit into that category :)

ghost commented 6 years ago

Thank you for the detailed explanation. We will just wait and see. If you need a beta tester I am available. During 40 years in IT I have been beta testing a bunch. Bob

On Feb 27, 2018 20:25, "Corey Butler" notifications@github.com wrote:

I do not think the Creators Update will help... I was actually wondering if that was the problem (since I can't replicate this and I'm not on the Creators Update).

So far, v3 has shown minimal resource consumption. We built v3 from scratch on Electron (no more node-webkit), which usually doesn't have high CPU usage. Some Electron apps have very high memory usage, so we've spent alot of time to not fit into that category :)

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/coreybutler/fenix/issues/99#issuecomment-369117573, or mute the thread https://github.com/notifications/unsubscribe-auth/AjBb6c_pzRFYkJqXsIqIlkbEsaOqnUuuks5tZNVCgaJpZM4SOzES .