Author |
|
mlwacosmos
Joined: 17 Dec 2013 Posts: 5 Location: Fontenay sous bois
|
Posted: Wed 18 Dec '13 16:19 Post subject: Loading assets with assetics is so slow |
|
|
Hi everyone
I am working with wamp on development phase. We have a Symfony 2 project and I am using Assetic to manage the assets. (no filter used for my test, so no compression or whatever).
I know I am in the development mode and that assetic is meant to work differently on prod environment but the loading of js, css and images is so slow (could be 30s for a dozen css, a dozen js -most of them are already minified- and 4 images, I am using firebug to check) that I wonder if there is a problem with Apache.
Did this happen to somebody else in the same situation ?
Thank you |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Wed 18 Dec '13 19:01 Post subject: |
|
|
Can you please post a picture of the loading from firebug console?
While Loading the page did you monitor the CPU usage and the disc usage via Taskmanager? |
|
Back to top |
|
mlwacosmos
Joined: 17 Dec 2013 Posts: 5 Location: Fontenay sous bois
|
Posted: Fri 03 Jan '14 15:56 Post subject: |
|
|
You are right!
CPU usage is 100% and stuck !!
why is that ?
my processor is Intel Celeron CPU G530 2.40GHz |
|
Back to top |
|
jraute
Joined: 13 Sep 2013 Posts: 188 Location: Rheinland, Germany
|
Posted: Fri 03 Jan '14 18:22 Post subject: |
|
|
WAMP is on windows and therefor pls check
EnableMMAP Off
EnableSendfile Off
AcceptFilter http none
AcceptFilter https none |
|
Back to top |
|
mlwacosmos
Joined: 17 Dec 2013 Posts: 5 Location: Fontenay sous bois
|
Posted: Mon 06 Jan '14 11:38 Post subject: |
|
|
I checked it... uncommented the Enables and added the AcceptFilters but it does not change anything |
|
Back to top |
|
jraute
Joined: 13 Sep 2013 Posts: 188 Location: Rheinland, Germany
|
Posted: Tue 07 Jan '14 12:47 Post subject: |
|
|
What WAMP-Version (the one including Apache 2.4.4 (Win64))?
If so, can you try to install the 32Bit version just for verification that it is not a problem with the os. |
|
Back to top |
|
mlwacosmos
Joined: 17 Dec 2013 Posts: 5 Location: Fontenay sous bois
|
Posted: Tue 07 Jan '14 18:31 Post subject: |
|
|
no... the one with Apache 2.2.22 |
|
Back to top |
|
mlwacosmos
Joined: 17 Dec 2013 Posts: 5 Location: Fontenay sous bois
|
Posted: Tue 07 Jan '14 18:32 Post subject: |
|
|
32B |
|
Back to top |
|
jraute
Joined: 13 Sep 2013 Posts: 188 Location: Rheinland, Germany
|
Posted: Wed 08 Jan '14 1:29 Post subject: |
|
|
I know from other blogs that the performance of assetics depends on the configuration especially cache settings etc., but i haven't seen this before, sorry.
Since you have already minimized/compressed the content i have no further ideas.
Maybe its helpful to see the configuration files, but i am not an expert for assetics. |
|
Back to top |
|
Sarah Keys
Joined: 02 Jan 2014 Posts: 5 Location: United States
|
Posted: Wed 08 Jan '14 19:08 Post subject: |
|
|
Hi,
I think this guide can help you to fix the cpu usage and the loading time
"By default, each asset path generated in the dev environment is handled dynamically by Symfony. This has no disadvantage (you can see your changes immediately), except that assets can load noticeably slow. If you feel like your assets are loading too slowly, follow this guide."
http://symfony.com/doc/current/cookbook/assetic/asset_management.html
Good luck
Sarah |
|
Back to top |
|
gggeek
Joined: 13 Feb 2013 Posts: 10
|
Posted: Fri 10 Jan '14 17:25 Post subject: |
|
|
did you turn off antivirus sw on the web server? |
|
Back to top |
|