Results 1 to 10 of 10

Hybrid View

  1. #1
    Join Date
    Jun 2007
    Posts
    7
    Plugin Contributions
    0

    Default Slow loading - Session related?

    There's been a number of posts about slow-loading Zen Cart pages, but I haven't seen anyone have quite the same problem as we're experiencing.

    We just changed hosting companies. This problem didn't show up until we made the change.

    We're on a dedicated server, hosting 29 sites. Some are HTML, and some are PHP. Two use Zen Cart. Our problem is only with the two Zen Cart sites.

    The first time we access our site, the home page takes 20+ seconds to load. The message bar reads "Waiting for...." After that, any page access takes a second or two. MySQL times are always less than a second, regardless of overall load time. To make the site load slowly again, I have to close and re-open my browser.

    To me, this suggests something to do with session handling. More specifically, I suspect something amiss with session creation, since it's only the first access that loads slowly.

    Can anyone point me to where I should look for configuration problems? We're running Apache on Fedora. Any help would be appreciated.

  2. #2
    Join Date
    Jun 2007
    Posts
    7
    Plugin Contributions
    0

    Default Re: Slow loading - SOLVED

    My partner came up with a solution for this. In our case, all we had to do was go to the administration area. Under configuration=>sessions, there's a setting called "IP to Host Conversion Status." We changed this from true to false and the slow initial loading time disappeared. Hope this helps someone else.

  3. #3
    Join Date
    Mar 2008
    Location
    NW Indiana
    Posts
    72
    Plugin Contributions
    0

    Default Re: Slow loading - SOLVED

    Quote Originally Posted by schizoman View Post
    My partner came up with a solution for this. In our case, all we had to do was go to the administration area. Under configuration=>sessions, there's a setting called "IP to Host Conversion Status." We changed this from true to false and the slow initial loading time disappeared. Hope this helps someone else.
    You gave me hope for a second. But upon checking it was already turned off

  4. #4
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Slow loading - Session related?

    Is your MYSQL server on the dedicated server?
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  5. #5
    Join Date
    Mar 2008
    Location
    NW Indiana
    Posts
    72
    Plugin Contributions
    0

    Default Re: Slow loading - Session related?

    I got mine loading much faster by going through and limiting the amount of images shown and optimizing the page using the tool you post.
    http://www.websiteoptimization.com/s...utergames.com/

    Very helpful by the way. I knocked off several hundred K from the HP.
    It's getting to acceptable rates I believe.

    Connection Rate Download Time
    14.4K 257.18 seconds
    28.8K 130.29 seconds
    33.6K 112.16 seconds
    56K 68.66 seconds
    ISDN 128K 23.39 seconds
    T1 1.44Mbps 5.13 seconds


    On an off subject, I noted that the field "products_id" in the "products_description" table is set as auto increment.
    This is supposed to match the field "products_id" in the "products" table.

    The problem is if you have something go amiss during adding a product the product_id in the product table advances but the description table does not. This tosses things off a notch.

    What I did was add a field to the products_description called ID and assigned the primary key to this. Then any new additions use the new product_id from the products table to populate the products_id field in the products_description table.

    I'm not sure if I broke anything that I'll encounter on down the road but this fixed the problem I had loading large amounts of products and a disconnect or timeout happens.

    Ken

  6. #6
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Slow loading - Session related?

    Ken -

    You still have a problem - the page is nearly 400k - Ideal is under 100. Second is you are pulling images from "offsite" and that will always be slower than images hosted on your own server.
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  7. #7
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Slow loading - Session related?

    Quote Originally Posted by kendur View Post
    On an off subject, I noted that the field "products_id" in the "products_description" table is set as auto increment.
    This is supposed to match the field "products_id" in the "products" table.

    The problem is if you have something go amiss during adding a product the product_id in the product table advances but the description table does not. This tosses things off a notch.

    What I did was add a field to the products_description called ID and assigned the primary key to this. Then any new additions use the new product_id from the products table to populate the products_id field in the products_description table.

    I'm not sure if I broke anything that I'll encounter on down the road but this fixed the problem I had loading large amounts of products and a disconnect or timeout happens.

    Ken
    That's overkill. Just removing the auto-increment would be simpler, and is the approach used in future versions of Zen Cart.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  8. #8
    Join Date
    Mar 2008
    Location
    NW Indiana
    Posts
    72
    Plugin Contributions
    0

    Default Re: Slow loading - Session related?

    I'm having the exact same trouble. In fact it's why I'm here now.

    Once I'm inside it's lightning fast. It's just that initial first visit to the homepage.
    And unfortunately people are impatient.
    My forum is very quick to load I might add.

    I'm on a dedicated virtual server at Godaddy after moving from their shared hosting.
    I have 22,000 items in my catalog.
    I want to add more but am a bit scared to slow the site down anymore.

    I do see that the sessions table always has overhead even if I'm the only one at the site.
    I was also thinking that perhaps the selection of "New Products" may be a factor.

    Any ideas would be appreciated.

    Ken

 

 

Similar Threads

  1. v150 404 Error when adding to cart (session related)
    By Matt H in forum Bug Reports
    Replies: 9
    Last Post: 30 Dec 2012, 07:16 PM
  2. Slow Loading
    By oewdirect in forum General Questions
    Replies: 2
    Last Post: 18 Jun 2009, 09:14 PM
  3. Session related error on logout --Need HELP
    By zerocool in forum Installing on a Windows Server
    Replies: 3
    Last Post: 8 Apr 2007, 07:13 PM
  4. Products related pages' performance very slow
    By elegantfragrances in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 5 Mar 2007, 04:54 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg