Forum Moderators: coopster
I ran WebLoad to capture benchmarking data and noticed that the site hangs for 2.333 minutes straight every hour, and the pattern held for 5 hours.
The setup is LAMP, and we operate 2 other sites on the server, and no problems with the other sites.
Any pointers would be greatly appreciated!
if you have shell access the "top" command is also very usefull in these cases. see for example:
[linuxforums.org...]
One thing that I tried last night - I reverted back to the vanilla version of x-cart, i.e., no changes from when the source and the database was delivered to me, and it ran fine with webload for 4 hours. Then I ran webload again with changed code but paired up with the vanilla database schema. Fully expecting it to crash/hang every hour, it didn't....
So it seems to be with the database?
I'm under the belief that only minor changes were made to the database, like a new field here and there. What would cause the db to act up every hour?
The first is from the schema i modified:
CREATE TABLE `xcart_languages` (
`code` char(2) collate latin1_general_ci NOT NULL default '',
`name` varchar(128) collate latin1_general_ci NOT NULL default '',
`value` text collate latin1_general_ci NOT NULL,
`topic` varchar(24) collate latin1_general_ci NOT NULL default '',
PRIMARY KEY (`code`,`name`),
KEY `topic` (`topic`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
This is from the original schema:
CREATE TABLE `xcart_languages` (
`code` char(2) NOT NULL default '',
`name` varchar(128) NOT NULL default '',
`value` text NOT NULL,
`topic` varchar(24) NOT NULL default '',
PRIMARY KEY (`code`,`name`),
KEY `topic` (`topic`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
I didn't change this table except to insert additional values via phpmyadmin. This table is used all over the place and reverting the structure back resolved my issue. why it caused my site to run slow the last three minutes of every hour remains unknown to me...
Oh, and Welcome to WebmasterWorld! :)