Slow loading -> TTFB
Permalink
Hi, I'm currently running concrete5 on a local webserver (wamp :: apache) for test purposes and I get really slow TTFB.
Also, on some pages, concrete loads extra css from "http://localhost:8080/ccm/system/css/layout/495", for example, and the loading of my page gets really slow since these one too have a long TTFB.
There's also a call to "http://localhost:8080/ccm/assets/localization/core/js" that takes up to 5 seconds to load. This is just annoying.
Here's my .htaccess file :
How could I speed this up ?
Thanks a lot.
Also, on some pages, concrete loads extra css from "http://localhost:8080/ccm/system/css/layout/495", for example, and the loading of my page gets really slow since these one too have a long TTFB.
There's also a call to "http://localhost:8080/ccm/assets/localization/core/js" that takes up to 5 seconds to load. This is just annoying.
Here's my .htaccess file :
# -- concrete5 urls start -- <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME}/index.html !-f RewriteCond %{REQUEST_FILENAME}/index.php !-f RewriteRule . index.php [L] </IfModule> # -- concrete5 urls end -- <IfModule mod_expires.c> <IfModule mod_headers.c> Header unset Pragma FileETag None Header unset ETag
Viewing 15 lines of 58 lines. View entire code block.
How could I speed this up ?
Thanks a lot.
is this dedicated webserver or your pc/laptop?
You need to track down and destroy those 404's.
You're running Apache on port 8080 - does that mean you are running IIS on port 80 - is there anything running in IIS?
How much nemory have you allowed concrete5?
Do you have a large site nav / number of page lists / database heavy plugins in the page?Is mysql on the same box? Are you running any of this in any kind of vm?
You need to track down and destroy those 404's.
You're running Apache on port 8080 - does that mean you are running IIS on port 80 - is there anything running in IIS?
How much nemory have you allowed concrete5?
Do you have a large site nav / number of page lists / database heavy plugins in the page?Is mysql on the same box? Are you running any of this in any kind of vm?
Hi, Thanks for the answer.
« is this dedicated webserver or your pc/laptop? »
I'm on my PC testing on localhost.
« You need to track down and destroy those 404's. »
The problem is there are no 404's, the file are just taking forever to load.
« You're running Apache on port 8080 - does that mean you are running IIS on port 80 - is there anything running in IIS? »
Yes I got IIS running on port 80 and a little asp.net project running on it, still, I've made some tests with a simple php
file making a request to my database and it's very fast, so I don't think this could be the problem. Soon I'll have access to
our official host and I'll test the website on it, but I'm afraid to tell my boss it'll work if it doesn't after hehe.
« How much nemory have you allowed concrete5? »
I don't know, Where do you find this ?
« Do you have a large site nav ? »
Not really.
« number of page lists »
Yes, but they're not all included in the nav since my website contains three subsites.
« database heavy plugins in the page? »
Nope.
« Is mysql on the same box? »
Yes, on wampserver's connection.
« Are you running any of this in any kind of vm? »
Nope.
Hope you can help, thanks for your time.
« is this dedicated webserver or your pc/laptop? »
I'm on my PC testing on localhost.
« You need to track down and destroy those 404's. »
The problem is there are no 404's, the file are just taking forever to load.
« You're running Apache on port 8080 - does that mean you are running IIS on port 80 - is there anything running in IIS? »
Yes I got IIS running on port 80 and a little asp.net project running on it, still, I've made some tests with a simple php
file making a request to my database and it's very fast, so I don't think this could be the problem. Soon I'll have access to
our official host and I'll test the website on it, but I'm afraid to tell my boss it'll work if it doesn't after hehe.
« How much nemory have you allowed concrete5? »
I don't know, Where do you find this ?
« Do you have a large site nav ? »
Not really.
« number of page lists »
Yes, but they're not all included in the nav since my website contains three subsites.
« database heavy plugins in the page? »
Nope.
« Is mysql on the same box? »
Yes, on wampserver's connection.
« Are you running any of this in any kind of vm? »
Nope.
Hope you can help, thanks for your time.
It's weird, concrete loads every layout of the page really slowly.
For example, the 'GET 623' that gets some css for the layout #623 takes over 600 ms to load, so if I have 6 layouts in my page I get at least 6 seconds to load up the page (since the TTFB is always 2 or 3 secs). See the example in attachment.
For example, the 'GET 623' that gets some css for the layout #623 takes over 600 ms to load, so if I have 6 layouts in my page I get at least 6 seconds to load up the page (since the TTFB is always 2 or 3 secs). See the example in attachment.
strange.
You can check how much memory C5 is allowed to use in the envionment info in the dashboard - it should show you that along with various other info.
Can you enable the slow query log in mysql and set it down to 1 sec or something like that and see what is going on with the queries?
You can check how much memory C5 is allowed to use in the envionment info in the dashboard - it should show you that along with various other info.
Can you enable the slow query log in mysql and set it down to 1 sec or something like that and see what is going on with the queries?
And does it make any difference at all if you turn off IIS?
I see no differences by turning off IIS, for the memory and mysql I will try and give you feedback on thursday.
If someone else has ideas I'm still open to them.
Thanks
If someone else has ideas I'm still open to them.
Thanks
Here are my php settings from the environment informations :
# PHP Settings max_execution_time - 120 log_errors_max_len - 1024 max_file_uploads - 20 max_input_nesting_level - 64 max_input_time - 60 max_input_vars - 2500 memory_limit - 128M post_max_size - 3M sql.safe_mode - Off upload_max_filesize - 64M mysql.max_links - Unlimited mysql.max_persistent - Unlimited mysqli.max_links - Unlimited mysqli.max_persistent - Unlimited
Viewing 15 lines of 26 lines. View entire code block.
@exasystems
Do you have Xdebug enabled?
Using WAMP/XAMPP on Windows with Xdebug enabled made concrete5 run very slow.
Do you have Xdebug enabled?
Using WAMP/XAMPP on Windows with Xdebug enabled made concrete5 run very slow.
Hi, I am running WAMP.
You need to track down and destroy those 404's.
You're running Apache on port 8080 - does that mean you are running IIS on port 80 - is there anything running in IIS?
How much nemory have you allowed concrete5?
Do you have a large site nav / number of page lists / database heavy plugins in the page?Is mysql on the same box? Are you running any of this in any kind of vm?