Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Full cart slows to a crawl...help


Nipsy

Recommended Posts

I have been helping a user through an order, comprised of 100 different items, in quantities from 1 - 30, but averaging around 12.

 

After I have about 50 items in the cart, it slows to a crawl (3-4 minute load times).

 

Is there a way to speed this up?

Link to comment
Share on other sites

The server is a shared FreeBSD Dual Xeon box, which is shared with 11 other relatively static sites, sitting at a large, but not major, hosting provider.

 

The lines to me (I've tried home and work) are 3mbit cable, and 1.5mbit DSL.

 

No other items have slowed down on the site, just this super full cart.

 

For instance, I can use Safari to start loading and allprods page with images, run some sim spiders, use IE to begin a db backup, and still browse at normal speeds as most users. However, if I am doing nothing else, the user with the very full cart still moves at a snail's pace.

 

Server info:

 

Server OS: FreeBSD 4.5-RELEASE Database: MySQL 3.23.49-log

Server Date: 02/05/2004 11:30:44 Datebase Date: 02/05/2004 11:30:44

Server Up Time: 11:30AM up 14 days, 10:31, 1 user, load averages: 1.81, 1.35, 1.34

HTTP Server: Apache/1.3.27 (Unix) AuthMySQL/2.20 mod_perl/1.26 PHP/4.3.1 mod_ssl/2.8.12 OpenSSL/0.9.6h

PHP Version: 4.3.1 (Zend: 1.3.0)

Link to comment
Share on other sites

your load average is actually kind of high, i have about 30 databases on mine, here is what i get from the 'top' command:

 

load averages: 0.38, 0.30, 0.22, up 387+ .... and the time,

have over 60 processing so perhaps you need to reevaluate your host and how they have the server set[up.

my cpu states go from 2% to 60% but in seconds, while something is being accessed, then it drops. system averages 5%, 0.5 interrupt, 91.5% idle time, i have memory set low

Link to comment
Share on other sites

You can try changing/adding my.cnf to below and restart mysql

 

Remember to back up first!!!

 

[mysqld]

max_connections = 500

key_buffer = 16M

myisam_sort_buffer_size = 64M

join_buffer_size = 1M

read_buffer_size = 1M

sort_buffer_size = 2M

table_cache = 1024

thread_cache_size = 64

wait_timeout = 1800

connect_timeout = 10

max_allowed_packet = 16M

max_connect_errors = 10

query_cache_limit = 1M

query_cache_size = 32M

query_cache_type = 1

skip-innodb

 

[mysqld_safe]

open_files_limit = 8192

 

[mysqldump]

quick

max_allowed_packet = 16M

 

[myisamchk]

key_buffer = 64M

sort_buffer = 64M

read_buffer = 16M

write_buffer = 16M

Link to comment
Share on other sites

I am using MS2, with some extensive mods. Seperate pricing is causing more queries, but that should not affect the speed of the system as more items enter the cart.

 

The shipping mods shouldn't come into play until doing the calculations, right?

 

I have noticed things get worse in proportion to the number of items.

 

I'll have the server manager look at this thread, and also try the parse timer...

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...