Access: Admin
Total Posts: 1395
Joined: 2006-05-19
There have been multiple threads about the script being slow for some people so when I get the time I'll look into it and possibly re-write the SQL interface and see if it can be sped up. One thing that may be worth trying is if you edit db.php, change
Code:
$cfg['extension'] = "mysqli";
to
Code:
$cfg['extension'] = "mysql";
This will use the standard MySQL interface which should be less cpu intensive.
Access: Member
Total Posts: 107
Joined: 2009-11-28
been loading and reloading your N13 news on to different servers.
On my main site, I decided to make a new database and import mysql backup of all my latest news stories.
The site then worked like lightning. both navigation in the pages and in the admin panel was fast. After a period of time still no slow down.
I decided to click my main RSS feed button to load into browser. Still slow and would have timed out with out loading - but, thereafter on click back to home page, the sql requests have reverted to hanging. Pages dont load and the website is effectively down again.
Last edited by Alankeys at 2010-05-27 07:05:57 Reason: took out comment about versions 3.3, 3.4 and 3.5 all subject to slow loading on all servers tested. None this is yet certain.
Access: Member
Total Posts: 107
Joined: 2009-11-28
now reverted back to my original mySQL database [by changing only the username and password in db.php]
site was again working lightning fast for a short time.
I suspect that as soon as an external site called my RSS feed. {newsnow call it every three minutes]. It caused the recurring problem again in N13/mysql .
I believe the problems is to do with slow loading RSS feeds ...
Access: Member
Total Posts: 107
Joined: 2009-11-28
I set up N13 on a different server and made an RSS feed. The feed loads perfectly. I therefore advised the host / server engineer of the slowness associated with one server and not the other.
This was the hosts response....
Thanks for the email. Unfortunately the steps taken do not appear to indicate a server issue, but a coding problem with your script and data base configuration.
If in each scenario of your test things start fast and then slow down a server issue would be indicated if things were continually slow. It appears the more your database is used the slower it gets. This could indicate additional data being written which is subsequently being analysed and as it grows slows everything down if it is not suitably optimised. Also, are all database connections closed as soon as they have been used.
There are only so many simultaneous database connections allowable at any one time. This is generally not an issue as a connection should be opened, used and closed immediately in a split second.
Access: Member
Total Posts: 107
Joined: 2009-11-28
Running 3.5. If I install rss.php from version 3.3, the system works fast.
The rss feed wont work but at least the page loading and system navigation works ok.
According to the host, the rss.php coding is not compatable across all servers.
It is selective in that will only work on some.
The solution could just be to install the script on to servers on which it will work although its a horrible restriction.
I could supply both ini files for each server if required.
The last step is around the archive conponents at the end of config.php
If the RSS feeds are then entirely deleted, then the speed around Step7 reverts to miliseconds.
***********
This can seemingly only be cured by changing the database completed. There is a fix for this but since it means there is some form of corruption the database, the fix is to make a new empty database and re-enter all the articles. [not a big deal just needs a few hours].
Access: Member
Total Posts: 107
Joined: 2009-11-28
Fix did not work.
I installed the script on further domains and carried on some more tests.
I decided to post up to one hundred posts of around 140 to 180 words. Each post had an average length title and a category selected. I then timed the loading of rss feed getting the following result.
Things start to slow after post 40. By post 100 loading of the feed takes about 8.5 seconds. Within the feed setup, feed is set to contain all posts, I therefore selected only 10 posts to display in feed at post 100 and the loading improves to take about 5.5 seconds.
At one hundred posts the feed still validates.
We thought it was either the database or possibly the server.
*******************
At 400 posts, my LIVE database fails validation - times out.
So, I took a copy of the database and in order to see whether the database itself is corrupt, deleted rows until only 90 are left.
Tried to load RSS feed. [edit - set for 'all' in admin rss setup] Takes 4 mins plus to load. Once up on the screen continues loading for 10 mins plus. Validator fails. 500 server error.
Restricted number of article in feed to 10. [edit - in admin rss setup] Retested. takes 1.0 min to load. Validator passes. with following warnings - [1] Your feed appears to be encoded as "UTF-8", but your server is reporting "US-ASCII"