Hi Howard,
I don't want to turn on debugging as this is a production and it run via CLI.
Another interesting observation I've found too that if I wait long enough, it will fix it by itself in a few day...
Server Time: Tue, 19 Feb 2013 03:08:04 -0800
Running daily statistics gathering, starting at 1360915200:
................ finished until 1361001600: Saturday, 16 February 2013, 12:00 AM (in 292 s) ................ finished until 1361088000: Sunday, 17 February 2013, 12:00 AM (in 209 s) ................ finished until 1361174400: Monday, 18 February 2013, 12:00 AM (in 440 s) ................ finished until 1361260800: Tuesday, 19 February 2013, 12:00 AM (in 984 s) ...completed 4 days of statistics.
Running weekly statistics gathering, starting at 1360483200:
finished until 1361088000: Sunday, 17 February 2013, 12:00 AM ...completed 1 weeks of statistics.
Running stats cleanup tasks...
...stats cleanup finished
Deleting old draft files... done.
Cleaning up files from deleted contexts... done.
Deleting trash files... done.
PRODUCTION 2.2.4+ Moodle Server STATISTICS COMPLETED CORRECTLY Execution took 1965.429888 seconds
The machine is pretty robust (6.3 redhat 64bit with 16 GB ram)... any other settings on the mysql or php side that I should consider to add/tweak?
thanks