Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Server Crashes


hound1

Recommended Posts

When running the 'top' command I can see the httpd process is running at 90% of the CPU usage, and the web site stop responding via the browser. I have to restart httpd and the site will stay online for about 6 hours, then I have to reload httpd.

 

We have also installed about 15-20 user contributions you're site.

 

The site is not getting a high amount of traffic, yesterday we only processes 17 orders.

 

I am running OSC osCommerce 2.2-MS2 using the following set-up:

 

HTTP Server: Apache/2.0.40 (Red Hat 9 Linux)

PHP Version: 4.2.2 (Zend: 1.2.0)

Database: MySQL 3.23.54

Linux 2.4.20-6

 

The hardware is only a 750Mhz processor, with 750MB of RAM.

Link to comment
Share on other sites

Sorry about the delay in replying, here is the additional info:

 

StartServers 8

MinSpareServers 5

MaxSpareServers 20

MaxClients 150

MaxRequestsPerChild 1000

 

 

 

 

11:01:46 up 21:49, 1 user, load average: 0.17, 0.31, 0.31

55 processes: 53 sleeping, 2 running, 0 zombie, 0 stopped

CPU states: 47.2% user 27.4% system 0.0% nice 0.0% iowait 25.2% idle

Mem: 643120k av, 523960k used, 119160k free, 0k shrd, 58032k buff

392244k actv, 40124k in_d, 18636k in_c

Swap: 658656k av, 0k used, 658656k free 326668k cached

 

PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND

20091 mysql 16 0 5668 5660 2376 S 63.0 0.8 10:36 0 mysqld

20267 root 15 0 8176 8176 5780 S 11.3 1.2 2:59 0 httpd

Link to comment
Share on other sites

go and upgrade your machines RAM (as much as possible, eg. 2GB)

 

edit php.ini and modify the line

memory_limit = 8M      ; Maximum amount of memory a script may consume (8MB)

Adjust the value as needed, eg. increase it to 10 or 12 or even 16M.

 

If all that fails ask your ISP to give you more bandwith , eg. Mbit/s or even 2MBit/s(they usually throttle it down to 256KBit/sec up to 1024Kbit/sec if they are generous) but that will increase your price for traffic dramatically.

 

regards

ralf

sometimes I change code before reading the comments, sometimes code doesn't even have comments, sometimes I rechange code after I read the code others wrote :-)

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...