WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: NextGEN Gallery] Nextgen not made for high traffic blogs? VERY high load (28 posts)

  1. phattrance
    Member
    Posted 4 years ago #

    Since i installed nextgen plugin on my blog (with 250.000 views / day) the load on the dedicated server has gone up with 4x. is this a known problem with the nextgen plugin? im using the nexgen pluin for my mobile wallpapers on the site: http://dailymobile.se/2010/01/01/nokia-5800-n97-x6-satio-i8910hd-5530-wallpapers/ (total 1700 wallpapers).

    i really want this plugin but as it looks right now i must uninstall this and go back to wordpress default gallery due to the load.

    any ideas on how to solve this problem?
    thx

    http://wordpress.org/extend/plugins/nextgen-gallery/

  2. Alex Rabe
    Member
    Posted 4 years ago #

    I always did my best to keep database queries low, but I never tested the plugin on such a high traffic...

    Are you able to determine what increase the load ?
    Have you munin running ? (Munin help me a lot in the past to analyse my own troubles http://alexrabe.de/2009/09/27/traffic-memory-wp-super-cache/

  3. phattrance
    Member
    Posted 4 years ago #

    Heres a screenshot from the servers load (after installing the plugin, stats from the last 2 hours): http://i49.tinypic.com/o54xt0.jpg

    before i installed this plugin the CPU was on between 100-150, the Average load was on 8-10

    im using this dedicated server: http://www.clustered.net/dedicated/

    i dont mind that the plugin is using more of the server, but the average load is almost killing the server, the site got A LOT slower after i installed the plugin.

    the thing is that i havent announced the new wallpaper section yet so the load will go up even more if i write on the main blog about the new galler. (note that i do not have any problem with the default wordpress gallery)

    Default wordpress layout: http://dailymobile.se/2008/12/15/nokia-5800-wallpapers-640x360-mobile-wallpapers-gallery-7/

    with nextgen gallery: http://dailymobile.se/2010/01/01/nokia-5800-n97-x6-satio-i8910hd-5530-wallpapers/

    My wallpaper page: http://dailymobile.se/wallpapers/ (only the Nokia 5800 wallpaper gallery is using the nexgen gallery)

    No im not using munin (your link didnt work). I do have the hyper cache plugin installed (cache set to 1 day, so it deleted the cache every 24h)

  4. Alex Rabe
    Member
    Posted 4 years ago #

    With this information I cannot say where we should start.

    You have created a larger gallery so I suggest follow idea to get to the source : Please reduce the amount of images (or better create a new gallery) with just 5-10 images . Now change the shortcode to this new gallery and check if the CPU load is better or the same.

    So I can have an idea if the amount of images causes the problems...

  5. phattrance
    Member
    Posted 4 years ago #

    i uploaded 12 new wallpapers to a new gallery and changed the shortcut code from the previous wallpaper site to the new one http://dailymobile.se/2010/01/01/nokia-5800-n97-x6-satio-i8910hd-5530-wallpapers/

    note that i didnt delete the old wallpapers, they are just not visible on the blog

  6. Alex Rabe
    Member
    Posted 4 years ago #

    Ok, that should be ok. The images on your hard disk should not causes any problem, they will not be used... If there are some problems with the script, it can be only during the rendering process of the gallery.

    I'm interesting if the CPU load will be lower than before.. let me know when you have some results form your diagnostic tool

  7. phattrance
    Member
    Posted 4 years ago #

    just checked the stats, the CPU is almost the same as before, it has gone down from 400 to 350 (but i have almost 200 online users less than before)

    i also tried to deactivate the plugin and then it went back to normal. Could it be that the nextgen is "automatically" activated on ALL my pages? even the "non" wallpaper page?

  8. Alex Rabe
    Member
    Posted 4 years ago #

    That's more than strange... NextGEN checks just for the shortcode, but thats the same like routine like the inbuilt gallery. I can just perpare some debug file, where we can exclude more code function , if you interested in helping contact me by mail.

  9. phattrance
    Member
    Posted 4 years ago #

    can you send your email to xxxxxxxx
    i cannot find your mail :)

  10. randykepple
    Member
    Posted 4 years ago #

    I'd like to jump in on this conversation as it's EXACTLY the problem I'm having myself. I certainly don't want to hijack this thread, but I feel I have the same issue going on.

    Here is a blog that I set up almost one year ago:

    http://www.myportlandphotographer.com

    It's a collaborative blog of 20 wedding photographers. We have allocated 4 photographers to post each day with a short paragraph of text. As you can imagine, we have over 900 photos at this time.

    Each photo is sized to 900 x 600 pixels and we use Next Gen to create a database for each shooter and it dynamically sizes the photos on the index page. If the viewer clicks the photos, it's pulled up to full size.

    We've had HUGE server problems this year with the traffic we're getting and I've called them a number of times. We use WestHost and I've used them on a number of other projects, including a very robust shopping cart for my business. I've had their servers tested and have determined they are one of the best for SQL database intensive sites. Our original server through GoDaddy was horrible and we thought it was a database issue.

    It's been almost a year now of looking at server logs, having them analyze our site and constant testing. We have now determined that the major culprit in our sites slowness is the NextGen plugin.

    We have the blog set up to display 20 posts at any given time. This is so each photographer has their work up for one full week before being kicked back into the archives.

    From what we can determine, NextGen is loading the full sized images FIRST and they dynamically resizing or creating the smaller photos that are displayed on the blog. This is killing our site.

    I was going to ask if there were a "lite" version that does not have all the code bloat for the slideshow and other features of NextGen that we don't use. Also, if you look at our site using the YSlow plugin for Firefox, you'll see a lot of Javascript issues, related directly to NextGen.

    If you have any suggestions on how to resolve this issue, I'd really, really appreciate your help. As you can imagine, disabling the plugin and having to figure out some other Lightbox solution and going in and fixing a years worth of posts is quite a daunting task to face.

    Thanks in advance!

  11. phattrance
    Member
    Posted 4 years ago #

    what helped me was that the cache plugin i am using doesnt cache the nextgen gallery, i needed to activate the image permalink structure so that the cache plugin started to cache the nextgen html files. that helped on my server!

  12. randykepple
    Member
    Posted 4 years ago #

    I was using the Super Cache plugin and it was problematic. I deactivated it over the weekend and it was very difficult to remove.

    You should check out site out today (Monday) as typically the server load is overwhelmed and it's really, really slow. I'm very frustrated right now with NextGen and how it's working. I'm hoping to get a resolution here, but would appreciate any thoughts on another approach that would not require a month of recoding all my previous year's posts.

    :)

  13. Alex Rabe
    Member
    Posted 4 years ago #

    How many vistors , siteview do you have per day ? phattrance has a lot of traffic and therefore a working cache plugin is mandatory..

  14. phattrance
    Member
    Posted 4 years ago #

    randy --> try the hyper cache, then activate the permalinks in the gallery settings @ nextgen and then in hyper cache settings activate: URL with parameters. that should solve your problems!

  15. randykepple
    Member
    Posted 4 years ago #

    Thanks for posting such helpful information. This one has really frustrated me for a very long time!

    Alex, to answer your question, right now we're getting about 300 unique hits a day to the blog. We're hoping to ramp that up over the next few months. I'm not sure how many we've lost because the site simply wouldn't load. We've struggled with this for a while now.

    Phat... I downloaded and installed the Hyper Cache plugin. Activated the permalinks in the NextGen gallery Options settings and then activated URL with parameters in Hyper Cache as you suggested.

    In NextGen, there is a statement "When you activate this option, you need to update your permalink structure one time." Is this done automatically when I check this or do I need to perform this update manually and how is that done?

    So far, it seems to be much more responsive. I've even turned on the 20 posts to show option and it's not as sluggish as it used to be.

    I'm still concerned about the NextGen plugin and fixing or optimizing it to work better in this type of situation. We are only using the Lightbox feature, so it leads me to think there is a lot of code and scripting running to make things happen that we are not utilizing.

    Thanks for the continued support!

  16. phattrance
    Member
    Posted 4 years ago #

    yes it will automatically change all the urls to the images, so if you have hotlinked to a image before you need to change the url... thats whats the plugn is telling you with the instructions :)

  17. randykepple
    Member
    Posted 4 years ago #

    I loaded up our site and threw it up against YSlow. One of the areas that we are still failing is with Javascripts.

    One of the tests is the JSLink Report. I tried to run this test and here is what it said:

    51 problems found. JSLink stopped after analyzing 8% of the code because there were too many errors. The Javascript it's referring to is the nextgen-gallery/shutter/shutter-reloaded.js?ver=1.3.0

    Also, do you know if Gzip is enabled by default with Hyper Cache Phat? I read the developers page and it's a little vague. I'm assuming it is as long that it's also an option with the web host I'm using?

  18. randykepple
    Member
    Posted 4 years ago #

    Btw... I installed Hyper Cache on another site that I manage with (8) 125 x 125 pixel ad buttons in a sidebar widget. Hyper Cache messed it up. Worked in Safari, but not Firefox or Internet Explorer.

    I'm still testing it on the Portland Photographer blog, but thought that was interesting to note.

  19. randykepple
    Member
    Posted 4 years ago #

    Hyper Cache update... installed on my personal photography blog site and it's causing problems with my Greybox/Lightbox viewer...

    Still trying to figure out the NextGen stuff on the other site...

  20. loosefast
    Member
    Posted 4 years ago #

    Is it possible that using the Album function is a cause of high load?
    I mean using Album instead of just a page that links to the individual galley pages? Is Album causing high MySQL requests?

  21. loosefast
    Member
    Posted 4 years ago #

    I am having issues on a VPS with a 6000 visitors a day site with 3000 images in 30 galleries

  22. jtcarroll8895
    Member
    Posted 4 years ago #

    We may be having a similar issue. We received a warning from our provider about CPU usage after installing this plugin. Has there been any resolution or info from the developer about this problem? I need to give a report to our provider by tomorrow.

  23. phattrance
    Member
    Posted 4 years ago #

    jtcarroll8895 --> make sure that the cache plugin is also caching the gallery!

    that solved my problem

  24. randykepple
    Member
    Posted 4 years ago #

    We're still having major issues with this plugin. I'm frustrated in trying to figure it out. I'm looking for advice in moving forward with this. Should I start a new thread or can I continue to discuss it here? I don't want to ruffle any feathers or take the attention away from the original post topic.

    At this point, I'd like to figure out how to turn off everything with this plugin we don't use. A LITE version, if you will. We're just using it to scale up JPG images when the visitor clicks the image, to make it larger.

    If we decide to drop the use of this plugin, what is the best strategy to fix all the previous posts where this was in place? With 20 users, each person has their own image gallery. I'm assuming all of this would be totally messed up by deactivating this plugin.

  25. oleaustin
    Member
    Posted 4 years ago #

    I'm fairly new to NextGen and probably a WP newbie compared to most of you. I have some questions though. NextGen is really slow in my system - i.e. uploading images, editing images, etc. Is a cache plugin something I should consider or is there another solution for this? Thanks!

  26. loosefast
    Member
    Posted 4 years ago #

    For the site I mentioned earlier, installing W3 Total Cache and a 256MB ram upgrade on the VPS (now has 1GB real memory, burstable to 1.3) has stabilized our issues for the time being...

  27. lushsight
    Member
    Posted 4 years ago #

    I have the same problem, very high CPU load average. DO NOT use the random show style.

  28. pasco21
    Member
    Posted 4 years ago #

    Hello,

    i need help to fix this i try everything and i still have the same bug

    When you activate this option, you need to update your permalink structure one time.

    I use NextGen Gallery on many site

    but for one reason on my new site,

    whend i clikc a image the pop pup windows do not work

    do i forget something

    what i need is this

    click on the picture whend you on the web page

    thnaks for your help

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.