logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Loading assets with assetics is so slow
Author
mlwacosmos



Joined: 17 Dec 2013
Posts: 5
Location: Fontenay sous bois

PostPosted: Wed 18 Dec '13 16:19    Post subject: Loading assets with assetics is so slow Reply with quote

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

PostPosted: Wed 18 Dec '13 19:01    Post subject: Reply with quote

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

PostPosted: Fri 03 Jan '14 15:56    Post subject: Reply with quote

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

PostPosted: Fri 03 Jan '14 18:22    Post subject: Reply with quote

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

PostPosted: Mon 06 Jan '14 11:38    Post subject: Reply with quote

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

PostPosted: Tue 07 Jan '14 12:47    Post subject: Reply with quote

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

PostPosted: Tue 07 Jan '14 18:31    Post subject: Reply with quote

no... the one with Apache 2.2.22
Back to top
mlwacosmos



Joined: 17 Dec 2013
Posts: 5
Location: Fontenay sous bois

PostPosted: Tue 07 Jan '14 18:32    Post subject: Reply with quote

32B
Back to top
jraute



Joined: 13 Sep 2013
Posts: 188
Location: Rheinland, Germany

PostPosted: Wed 08 Jan '14 1:29    Post subject: Reply with quote

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

PostPosted: Wed 08 Jan '14 19:08    Post subject: Reply with quote

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 Smile

Sarah
Back to top
gggeek



Joined: 13 Feb 2013
Posts: 10

PostPosted: Fri 10 Jan '14 17:25    Post subject: Reply with quote

did you turn off antivirus sw on the web server?
Back to top


Reply to topic   Topic: Loading assets with assetics is so slow View previous topic :: View next topic
Post new topic   Forum Index -> Apache