Results 1 to 6 of 6
  1. #1
    Join Date
    Dec 2010
    Posts
    362
    Plugin Contributions
    0

    Default Troubleshooting SQL errors, server 500 errors

    Of late we have been running into SQL errors and server 500 errors. Based on some research, it seems these may be indicative of a resource problem - i.e., we need more more from our hosting company. The hosting company (Media Temple) has gone back and forth, sometimes acknowledging that they are experiencing high server loads, other times saying we need to optimize the cart to eliminate "slow queries"

    I've checked parse times/queries and gotten some numbers, but I have no idea whether these are bad, good or indifferent:

    At the low end:

    Parse Time: 1.115
    Queries: 181
    Query Time: .40988

    At the high end:
    Parse time: 2.367
    Queries: 1325
    Query Time: 1.2859

    How do I analyze these to decide whether we need to tweak the cart, or find a different host?

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default Re: Troubleshooting SQL errors, server 500 errors


  3. #3
    Join Date
    Dec 2010
    Posts
    362
    Plugin Contributions
    0

    Default Re: Troubleshooting SQL errors, server 500 errors

    Thanks for sending that along Steve. Parse times are definitely higher than query times (about twice), but I'm not sure what constitutes a "very large" parse time.

    we're seeing anywhere from .944 to 2.367 parse times. Is that "very large"?

    John

  4. #4
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Troubleshooting SQL errors, server 500 errors

    "parse time" is how long it takes your store to build and prepare the output for the page, before the page content can be sent down to the browser, so count on a quarter to half second for the content to arrive at the browser after the parse work is done.

    If you're happy with it taking 2.367 seconds to build and display the page, then that number isn't large. But if you want faster display times, then the number is too high. Most people want parse and display to take less than 1 second.

    As that article says, parse time is about CPU load or ability, and query time is specific to the portion of that time that is consumed specifically with database data retrieval. If the database is too slow, then MySQL needs tuning. If the database is fast but the parse time is long then the CPU is overloaded such as having too many customers on one server.
    .

    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.

  5. #5
    Join Date
    Dec 2010
    Posts
    362
    Plugin Contributions
    0

    Default Re: Troubleshooting SQL errors, server 500 errors

    Thank you very much -- helps to put those numbers into perspective.

    John

  6. #6
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Troubleshooting SQL errors, server 500 errors

    stevesh did point out similarly at the FAQ article: http://www.zen-cart.com/content.php?...s-numbers-mean
    ;)
    .

    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.

 

 

Similar Threads

  1. Checkout failing to process through. server 500 type errors
    By oleancomputers in forum General Questions
    Replies: 3
    Last Post: 5 Mar 2016, 05:24 PM
  2. Troubleshooting Blank Screen - Errors with Fast & Easy Checkout
    By tcarden in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 17 Jan 2013, 10:47 PM
  3. Admin errors on fresh installation - module errors and language definition errors
    By etrader in forum Installing on a Linux/Unix Server
    Replies: 5
    Last Post: 5 Oct 2007, 09:05 AM
  4. Occasional HTTP 500 Internal Server Errors
    By aaelghat in forum General Questions
    Replies: 3
    Last Post: 21 May 2007, 08:33 PM
  5. 500 errors
    By camay123 in forum Basic Configuration
    Replies: 1
    Last Post: 20 Aug 2006, 04:12 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR