• Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
v3.5.2 Latest
Buy Hosting

Slow page loading on DigitalOcean

Scheduled Pinned Locked Moved Solved Technical Support
16 Posts 7 Posters 4.1k Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dread
    wrote on last edited by dread
    #1

    Hi there. please help me to improve the speed of forum based on DigitalOcean hosting with nginx. For now it takes from 5 to 7 sec to loading any page - in firebug it shows that all scripts load fast, and onle main url of forum show wait status near 6 sec. we use MongoDb - its size for now only 52 mb - but its horrible slow - we add indexes - but we win only 1-2 sec. maybe it can be some caching system for this engine? or I need change some setting in admin dashboard, or increase hardware of server? thanks in advise.

    teh_gT 1 Reply Last reply
    0
  • PitaJP Offline
    PitaJP Offline
    PitaJ Global Moderator Plugin & Theme Dev
    wrote on last edited by PitaJ
    #2

    There's got to be something else going on. This is not normal by any means. Have you tried starting over? What guide did you use?

    BTW, because of how templates are done now, your first request to any page will be slow, but subsequent requests should be fast.

    1 Reply Last reply
    0
  • teh_gT Offline
    teh_gT Offline
    teh_g
    replied to dread on last edited by
    #3

    @dread Anecdotally, I use DigitalOcean for my NodeBB instance and have zero issues. I'd agree with PitaJ and say that someone else is happening here. Is the URL being loaded something from your site? Did you add any plugins?

    1 Reply Last reply
    0
  • D Offline
    D Offline
    dread
    wrote on last edited by
    #4

    Thanks for fast answer. Yeap, first loading I understood will be quite slow - but in my case it decrease only to 1 sec for loading other pages after loading main and I can't understand why( theme persona. nodebb version 1.5.3. plugins - standart - with https://github.com/Serhey/nodebb-plugin-featured-topics-extended-with-title https://github.com/Serhey/nodebb-plugin-ns-slugify-fixed-on-edit#readme https://github.com/Schamper/nodebb-plugin-poll#readme https://github.com/iiiyx/nodebb-plugin-share-vk https://github.com/boomzillawtf/nodebb-plugin-youtube-embed#readme

    teh_gT yariplusY 2 Replies Last reply
    0
  • teh_gT Offline
    teh_gT Offline
    teh_g
    replied to dread on last edited by
    #5

    @dread If you disable all of the additional plugins, does page load perform better? Is there a specific URL that is taking a long time?

    1 Reply Last reply
    0
  • D Offline
    D Offline
    dread
    wrote on last edited by
    #6

    Nope - no improve performance. Specific - only facebook <!-- Facebook Pixel Code --> and VK pixel code in <head> and google analytics and yandex metrics <scripts> in global footer. but by the firebug - they loads near half a second - but main page and categories load slow.

    1 Reply Last reply
    0
  • A Offline
    A Offline
    Adam Poniatowski
    wrote on last edited by
    #7

    the ultimate questions are...

    what instance are you running? 1 vcore 1GB VM? bigger? smaller?

    Do you have swap? in case you don't have enough memory...

    is the DB on the same server as nginx and nodebb? separate?

    Which OS are you running?

    If these questions were answered, please point me to it, and I will see if I can help

    1 Reply Last reply
    0
  • DukeD Offline
    DukeD Offline
    Duke
    wrote on last edited by
    #8

    If you are using the $5 Digital Ocean server you will definitely need a swap partition.

    1 Reply Last reply
    1
  • D Offline
    D Offline
    dread
    wrote on last edited by
    #9

    As I know DB on the same server with nodebb. and asking about swap. I'll try to increase power of server - mongodb eat to much) thanks - I write here after results.

    1 Reply Last reply
    0
  • D Offline
    D Offline
    dread
    wrote on last edited by
    #10

    80$ hosting plan. Upgrade node to v6.11.1 and nodebb to v1.6.0. but MongoDb is still loading too long and waiting site in firebug decresed only by 1 sec(

    1 Reply Last reply
    0
  • A Offline
    A Offline
    Adam Poniatowski
    wrote on last edited by
    #11

    which version of mongodb are you using?

    1 Reply Last reply
    0
  • julianJ Offline
    julianJ Offline
    julian GNU/Linux
    wrote on last edited by
    #12

    If you go to the /api routes... e.g. http://yoursite.tld/api/recent, is the rest still slow?

    Definitely seems like some mongo indices are missing though it could really be anyone's guess at this point.

    You can re-create the indices by running this in MongoDB after use-ing your NodeBB database:

    db.objects.createIndex({ _key: 1, score: -1 }, { background: true });
    db.objects.createIndex({ _key: 1, value: -1 }, { background: true, unique: true, sparse: true });
    db.objects.createIndex({ expireAt: 1 }, { expireAfterSeconds: 0, background: true });
    
    1 Reply Last reply
    1
  • D Offline
    D Offline
    dread
    wrote on last edited by
    #13

    @julian said in Slow page loading on DigitalOcean:

    If you go to the /api routes... e.g. http://yoursite.tld/api/recent, is the rest still slow?

    Definitely seems like some mongo indices are missing though it could really be anyone's guess at this point.

    You can re-create the indices by running this in MongoDB after use-ing your NodeBB database:

    db.objects.createIndex({ _key: 1, score: -1 }, { background: true });
    db.objects.createIndex({ _key: 1, value: -1 }, { background: true, unique: true, sparse: true });
    db.objects.createIndex({ expireAt: 1 }, { expireAfterSeconds: 0, background: true });
    

    Thanks a lot! Now it works like a car on f1!)

    1 Reply Last reply
    1
  • yariplusY Offline
    yariplusY Offline
    yariplus Community Rep
    replied to dread on last edited by
    #14

    @dread said in Slow page loading on DigitalOcean:

    GitHub - Serhey/nodebb-plugin-featured-topics-extended-with-title: Custom news with title - forked from https://github.com/yariplus/nodebb-plugin-featured-topics-extended

    Custom news with title - forked from https://github.com/yariplus/nodebb-plugin-featured-topics-extended - GitHub - Serhey/nodebb-plugin-featured-topics-extended-with-title: Custom news with title - forked from https://github.com/yariplus/nodebb-plugin-featured-topics-extended

    favicon

    GitHub (github.com)

    Oh.

    That is a very ... unorthodox ... way of forking my plugin.

    1 Reply Last reply
    1
  • D Offline
    D Offline
    dread
    wrote on last edited by
    #15

    @yariplus said in Slow page loading on DigitalOcean:

    @dread said in Slow page loading on DigitalOcean:

    GitHub - Serhey/nodebb-plugin-featured-topics-extended-with-title: Custom news with title - forked from https://github.com/yariplus/nodebb-plugin-featured-topics-extended

    Custom news with title - forked from https://github.com/yariplus/nodebb-plugin-featured-topics-extended - GitHub - Serhey/nodebb-plugin-featured-topics-extended-with-title: Custom news with title - forked from https://github.com/yariplus/nodebb-plugin-featured-topics-extended

    favicon

    GitHub (github.com)

    Oh.

    That is a very ... unorthodox ... way of forking my plugin.

    Sorry - I just start to using github. I foget to write fork. Fixed.

    yariplusY 1 Reply Last reply
    0
  • yariplusY Offline
    yariplusY Offline
    yariplus Community Rep
    replied to dread on last edited by
    #16

    @dread Oh, it's no problem at all! I was just joking, but thanks for adding the mention!

    1 Reply Last reply
    0

Copyright © 2023 NodeBB | Contributors
  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development