Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
Long Load time
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / M-BiTsy / M-BiTsy Support

2020-05-12 01:57:09
After updating to the latest git-code, which includes the session changes and the new theme, the load time of the pages, especially the index.php page is long.
With all block, except the navigation block disabled, load time varies from 6-12 seconds. Other pages take a bout 2-3 seconds to load.
Note that both the site code and database run on the same server here at home. Using the code from April 30th, the pages load within a fraction of a second. (0.01 sec)

[ATTACH type="full" alt="LongLoadTime.JPG"]5528[/ATTACH]
[ATTACH type="full"]5529[/ATTACH]
[ATTACH type="full"]5530[/ATTACH]
LongLoadTime.JPG
LongLoadTime.JPG
LongLoadTime2.JPG
LongLoadTime2.JPG
LongLoadTime3.JPG
LongLoadTime3.JPG

If It Ain't Dutch, It Ain't Much!!
2020-05-12 03:13:32
Do you have SSH access? run top -P

look for mysqld process, what is the CPU and threads for that process? Using FastCGI (aka PHP-FPM / event-MPM)? Look for the php-fpm processes. Static or shared modules?

Unless Apache saw a new conf/modifications recently, it will always be mysqld that will suck your CPU like a 5 dollar prostitute. This is was a 2 week battle just ending last Friday, so I know this issue well. I don't use these releases, but they all follow the same path so with no issues so check your OS and whats going on there first.

Next, will be your queries, and quite honestly it could be loaded modules too that are unused.
2020-05-12 06:35:14
Yes it maybe related to the mysql server. I switched to another server - and the load time for the index cut in half to about 2.5sec.
Still on the high side, but maybe some tweaking of the server may solve this.

Would you have some suggestions for the tweaking of the mysql server?
Modules would be php modules correct? Let me look there as well.
If It Ain't Dutch, It Ain't Much!!
2020-05-12 07:37:02
Try backing up your current my.cnf (locate on server), copy it over to client side for safe keeping, next give this a go. I wouldn't rely on index.php (root) reports if that is using DNS (your domain), as it is simply a channel to reach functions.php and from there everything happens. I would assume some report intelligence using localhost / ports - XAMPP, etc

[URL unfurl="true"]https://gist.github.com/fevangelou/fb72f36bbe333e059b66[/url]

I switched to that exclusively after replacing MySQL 5.7 to MariaDB 12.4, performance was a big win. Everything else required personal hardware investment.
2020-05-12 09:37:21
The index is higher than other pages mines 0.07 seconds on index, I'll run it through some performance tests see if anything comes up
2.5 seems really high is it a empty project
2020-05-12 12:14:38
"m-jay, post: 68565, member: 20288":

The index is higher than other pages mines 0.07 seconds on index, I'll run it through some performance tests see if anything comes up
2.5 seems really high is it a empty project


The delay is not present on all the other pages in the site, only the index. Other pages have same performance as the code from before the session implementation.
If It Ain't Dutch, It Ain't Much!!
2020-05-12 13:47:34
Check your logs, there are many many different variables at play here. I know my box really well, but only due to things like this so I can just suggest solutions to my own trials.

Things to note:

SSL takes a lot of CPU per every 2 way request handshake. I see it daily on my end, but is necessary.

Apache is also a bloat. Often, without option (hosting, etc).

Review your MPM worker. Probably prefork (default installation), which processes requests a lot slower.

If not, you really should switch to PHP-FPM (FastCGI), automate the service daemon. I enabled this a week ago and the parsing performance does not even compare too before (before new hardware). Threads are your friend (CPU/OS).

It uses a closed local proxy to send requests to the event workers. Very fast execution of PHP.
I could go on and on.. lol
2020-05-12 15:18:13
On quick google page test, the test site scores high with 97%, looking deeper with devtools theres a few improvements that could be made where it scored 70% these only little things like image sizing, loading

Just thought its mvc so all pages are index so everything is loaded the same I'll look at the home  controller and see if I can narrow it down its worth finding in case its query or something,  the forum is about same as index as well that's pretty congested though

If your using default theme from github in header you can edit out the old theme.css it's got a comment there it's not really needed see if that helps I just kept it there till I finish the custom.css off you need to clear cache to see my difference
2020-05-13 14:09:48
Ok,

I commented out the theme.css  (won 0.5 Sec )
I followed the link provided by ST " Optimized my.cnf configuration for MySQL/MariaSQL (on Ubuntu, CentOS etc. servers) - my.cnf "  (won 3 sec )
Note that I have not changed any of the my.cnf optimized example, just copied and pasted.

So at this moment, went from 5-6 sec loading of index, to now 3-3.5 seconds. 50% improvement.
All other pages loading in a fraction of a second (0.1 - 0.2 seconds)

Maybe I can find some more tuning in the my.cnf to make it load faster.

Finally also shut down majority of default loaded modules on the php7 config, which may have given another 0.5 sec.
If It Ain't Dutch, It Ain't Much!!
2020-05-13 14:14:27
[ATTACH type="full"]5531[/ATTACH]

With 3.1 seconds loading on server >>

[ATTACH type="full"]5532[/ATTACH]
1589379197175.png
1589379197175.png
1589379259135.png
1589379259135.png

If It Ain't Dutch, It Ain't Much!!
2020-05-13 21:36:14
That’s still slow as far as UX goes. 3 seconds?

that my.cnf is crafted by IT smarties, I wouldn’t modify existing #UPD values, either unpredictable performance or mysqld will fail to start.

Everything else will point to web hosting latency or latency on local host. XAMPP has caused me issues that my server has never reproduced so that’s something to consider as well.

Packages like XAMPP, are heavily modified for portability and compatibility.
2020-05-24 18:05:08
I do not know what you did, but check this >>



Index.php, home page
If It Ain't Dutch, It Ain't Much!!
2020-05-25 20:41:36
Are you guys on VPS/shared?
2020-05-25 21:42:51
I'm on shared hosting
2020-05-26 00:05:21
"STorrents2020, post: 68665, member: 20382":

Are you guys on VPS/shared?


My test sites are run locally from Synology 1815+ NAS.
The actual site runs on VPS, not sure if shared. I believe to reduce costs it would be.
If It Ain't Dutch, It Ain't Much!!
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 2
  • Members: 0
  • Guests online: 2
  • Comments: 3
  • Messages: 1,728