Skip to content

CPU usage higher than expected for nodeBB (on clients)

Chitchat
7 2 1.8k 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?

    @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?

    @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

    @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.

    @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

    @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!

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


Related Topics
  • 5 Votes
    4 Posts
    1k Views
    @crazycells I did see something similar to that article, yes. I never fully understood why anyone would want to give unfettered and complete access to AI without first understanding exactly what it had control of, and what it intended to do with that access. This isn’t the first “horror story” and it won’t be the last.
  • Adobe Contracts

    Chitchat adobe
    9
    7 Votes
    9 Posts
    2k Views
    @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
    1k Views
    Happy New Year !!
  • Merry Christmas

    Chitchat christmas
    5
    8 Votes
    5 Posts
    1k Views
    Hard to believe that we’ll soon be leaving 2024 and starting 2025. Where does the time go? Frightening.
  • Arch Server Progress

    Chitchat arch linux server web server
    64
    30 Votes
    64 Posts
    21k Views
    @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.
  • Want to use Sudonix themes ?

    Chitchat themes nodebb
    80
    1
    34 Votes
    80 Posts
    24k Views
    omg thank you Mark.
  • Netflix hints at password sharing crackdown

    Chitchat netflix
    42
    32 Votes
    42 Posts
    12k Views
    @Madchatthew well, that does in fact happen in some cases.
  • Humour

    Chitchat humour
    28
    1
    53 Votes
    28 Posts
    9k Views
    [image: 1755105646597-1608635114226.jpg]