Skip to content

CPU usage higher than expected for nodeBB (on clients)

Chitchat
7 2 2.1k 1
  • wrote on last edited by
    #1

    I’m looking at the task manager on firefox and nodebb forum takes a lot of CPU even at rest. I can imagine this is because it uses websockets. Do you have a similar experience? This is on linux,with a beefy CPU and GPU. It triggers the fans. I’ve noticed this with other similar apps (I suspect websocket heavy) like circle.so.

    If this is an inevitable consequence of ‘modern web’, I guess we’d all have to move to ARM or get used to spinning fans in the background.

    Is my experience an outlier?

  • I’m looking at the task manager on firefox and nodebb forum takes a lot of CPU even at rest. I can imagine this is because it uses websockets. Do you have a similar experience? This is on linux,with a beefy CPU and GPU. It triggers the fans. I’ve noticed this with other similar apps (I suspect websocket heavy) like circle.so.

    If this is an inevitable consequence of ‘modern web’, I guess we’d all have to move to ARM or get used to spinning fans in the background.

    Is my experience an outlier?

    wrote on last edited by
    #2

    @qwinter said in CPU usage higher than expected for nodeBB (on clients):

    Is my experience an outlier?

    It might well be I think. I’m not seeing high CPU usage here (KDE Neon user)

  • I’m looking at the task manager on firefox and nodebb forum takes a lot of CPU even at rest. I can imagine this is because it uses websockets. Do you have a similar experience? This is on linux,with a beefy CPU and GPU. It triggers the fans. I’ve noticed this with other similar apps (I suspect websocket heavy) like circle.so.

    If this is an inevitable consequence of ‘modern web’, I guess we’d all have to move to ARM or get used to spinning fans in the background.

    Is my experience an outlier?

    wrote on last edited by phenomlab
    #3

    @qwinter Can you give me an idea of what your Firefox Task Manager looks like ? Here’s mine. Also much the same with Brave, Google Chrome, and Chromium

    3cfea552-4c47-412b-bc9d-864db3c6e11d-image.png

  • @qwinter Can you give me an idea of what your Firefox Task Manager looks like ? Here’s mine. Also much the same with Brave, Google Chrome, and Chromium

    3cfea552-4c47-412b-bc9d-864db3c6e11d-image.png

    wrote on last edited by
    #4

    @phenomlab
    607d6644-5c68-467b-80ee-49f3ed30891b-image.png
    That top entry is a circle.so ‘forum’ that eats CPU for breakfast too.

  • @phenomlab
    607d6644-5c68-467b-80ee-49f3ed30891b-image.png
    That top entry is a circle.so ‘forum’ that eats CPU for breakfast too.

    wrote on last edited by phenomlab
    #5

    @qwinter Yes, twice that of Sudonix. I know with Chrome there is an old issue where the GPU processes are actually responsible for huge memory usage, and you can stop that by disabling hardware acceleration.

    I wouldn’t class NodeBB CPU usage as that high though in my opinion.

    Interestly, if you compare this usage to Flarum, it is higher than expected, although my connection to Flarum isn’t logged in - just a guest. As a test, I fired up an incognito session of my site as a guest, and here’s the result

    2cfe513c-66ea-45f8-ae91-7bc15d7ca8fd-image.png

  • @qwinter Yes, twice that of Sudonix. I know with Chrome there is an old issue where the GPU processes are actually responsible for huge memory usage, and you can stop that by disabling hardware acceleration.

    I wouldn’t class NodeBB CPU usage as that high though in my opinion.

    Interestly, if you compare this usage to Flarum, it is higher than expected, although my connection to Flarum isn’t logged in - just a guest. As a test, I fired up an incognito session of my site as a guest, and here’s the result

    2cfe513c-66ea-45f8-ae91-7bc15d7ca8fd-image.png

    wrote on last edited by
    #6

    @phenomlab I think in my case I could see it go down to ‘static website’ levels. Then when I log in, with no other tabs in firefox, task manager says ‘medium’…

    Which leads me to think its some websocket hackery keeping the connection alive for the logged in user in the background!

  • @phenomlab I think in my case I could see it go down to ‘static website’ levels. Then when I log in, with no other tabs in firefox, task manager says ‘medium’…

    Which leads me to think its some websocket hackery keeping the connection alive for the logged in user in the background!

    wrote on last edited by
    #7

    @qwinter Yes, although the experience would be very much degraded without websockets.


Related Topics
  • Google fined (again) for violating user privacy

    Chitchat google
    7
    12 Votes
    7 Posts
    2k Views
    JAC
    Here’s another… Google busy again! https://www.theverge.com/tech/870056/google-cellular-data-lawsuit-settlement
  • Adobe Contracts

    Chitchat adobe
    9
    7 Votes
    9 Posts
    3k Views
    Madchatthew
    @phenomlab LOL yep that is right, because there was a huge stack of them, I remember and it seemed like it took forever to go through the whole stack. Then you had to install drivers for each device. Oh the good ole days haha
  • Happy New Year!

    Chitchat new year
    4
    4 Votes
    4 Posts
    2k Views
    DownPW
    Happy New Year !!
  • Nord VPN renewal

    Chitchat nord vpn renewal
    37
    2
    30 Votes
    37 Posts
    19k Views
    JAC
    So far so good .
  • Arch Server Progress

    Chitchat arch linux server web server
    64
    31 Votes
    64 Posts
    28k Views
    Madchatthew
    @phenomlab I think I am going to switch to this theme eventually. The one I have is ok, but the price for this theme and what you get with it is really good. The business has broken even and is actually making some money now. We will see what the future holds. I am hoping to start getting enough business so I am behind 2 to 3 months. So we will see. My Arch web server has been working great! No issues with it so far. The only thing lately was the mail server software being updated, and they broke everything. I was able to make the required changes and get it back working and it has been working amazingly so far. I am still really happy I switched to Arch Linux Server and I haven’t had to reinstall the whole operating system due to this switch.
  • Netflix hints at password sharing crackdown

    Chitchat netflix
    42
    32 Votes
    42 Posts
    16k Views
    phenomlab
    @Madchatthew well, that does in fact happen in some cases.
  • NodeBB templates

    Locked Chitchat themes templates nodebb
    12
    4 Votes
    12 Posts
    5k Views
    phenomlab
    Placing this here for reference https://sudonix.com/topic/216/nodebb-js-script-css-theme-switcher Further information and posts can be found at this link
  • NodeBB vs Discourse

    Chitchat nodebb discourse board
    25
    6 Votes
    25 Posts
    14k Views
    RiekMedia
    @phenomlab said in NodeBB vs Discourse: Hetzner eh ? I use them also. In fact, Sudonix is hosted in Nuremberg yes i’m also at hetzner, i have been a customer there for years with a reseller account for domains. My VPS that I host there are also in Nuremberg