How can i boost admingenerator pages loading?

24 views
Skip to first unread message

Vicky Nsenga

unread,
Aug 1, 2014, 11:05:40 AM8/1/14
to symfony2adm...@googlegroups.com

Hi,

I have a big performance issue on my application that uses the SF2 admingenerator.
I found that for displaying  a page with 5000 elements it tooks 26 seconds with  only 250 milleseconds query time.
Almost half of this time is HTML loading. WHat can i do to improve the performance?




Cédric Lombardot

unread,
Aug 1, 2014, 1:34:57 PM8/1/14
to Symfony2 Admingenerator bundles support for users

The first time you call the page after a generator.yml admingen rebuild his cache. If you reload this page should be fast. Il prod use cache:warmup to build cache

--
--
You received this message because you are subscribed to the Google
Groups "Symfony2 Admingenerator bundles support for users" group.
To post to this group, send email to
symfony2adm...@googlegroups.com
To unsubscribe from this group, send email to
symfony2admingene...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony2admingenerator?hl=en
 
---
Found bundle documentation at http://symfony2admingenerator.org/

---
You received this message because you are subscribed to the Google Groups "Symfony2 Admingenerator bundles support for users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to symfony2admingene...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Vicky Nsenga

unread,
Aug 1, 2014, 4:59:33 PM8/1/14
to symfony2adm...@googlegroups.com
First of all thank you for your reply. This does not happen only on the first call of the page. It does the same thing on page reload.
Can, using extra fields which are not specified in the generator.yml leads to such poor performance?
Do you think activating zend optimizer ++ can improve pages loading?


On Friday, August 1, 2014 7:34:57 PM UTC+2, cédric LOMBARDOT wrote:

The first time you call the page after a generator.yml admingen rebuild his cache. If you reload this page should be fast. Il prod use cache:warmup to build cache

Le 1 août 2014 17:05, "Vicky Nsenga" <vicky....@gmail.com> a écrit :

Hi,

I have a big performance issue on my application that uses the SF2 admingenerator.
I found that for displaying  a page with 5000 elements it tooks 26 seconds with  only 250 milleseconds query time.
Almost half of this time is HTML loading. WHat can i do to improve the performance?




--
--
You received this message because you are subscribed to the Google
Groups "Symfony2 Admingenerator bundles support for users" group.
To post to this group, send email to
symfony2adm...@googlegroups.com
To unsubscribe from this group, send email to

For more options, visit this group at
http://groups.google.com/group/symfony2admingenerator?hl=en
 
---
Found bundle documentation at http://symfony2admingenerator.org/

---
You received this message because you are subscribed to the Google Groups "Symfony2 Admingenerator bundles support for users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to symfony2admingenerator+unsub...@googlegroups.com.

Cédric Lombardot

unread,
Aug 1, 2014, 5:07:11 PM8/1/14
to Symfony2 Admingenerator bundles support for users
Can you try to run a cache:warmup and use it in app.php instead of app_dev.php to compare perfs  ?  Normally extra fields do not impact generation process and after generation admingenerator should not do anything just running the generated code. 
Check you've not activated overwrite_if_exists in your config files

Can you give me your env config (windows or linux and php version, doctrine or propel)

Cedric



For more options, visit this group at
http://groups.google.com/group/symfony2admingenerator?hl=en
 
---
Found bundle documentation at http://symfony2admingenerator.org/

---
You received this message because you are subscribed to the Google Groups "Symfony2 Admingenerator bundles support for users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to symfony2admingene...@googlegroups.com.

Vicky Nsenga

unread,
Aug 4, 2014, 2:26:46 AM8/4/14
to symfony2adm...@googlegroups.com
Hello Cédric,

I did a cache warmup and i checked overwrite_if_exists was desactivated in my config files. On my production server the query time is 154 ms, and my page loading time is 3,45s with 2,656 of HTML loading. I don't understand why it tooks so long for the html to load?
I am on Linux Redhat, using PHP5.5 and doctrine.
Once again thank you for your support


On Friday, August 1, 2014 11:07:11 PM UTC+2, cédric LOMBARDOT wrote:
Can you try to run a cache:warmup and use it in app.php instead of app_dev.php to compare perfs  ?  Normally extra fields do not impact generation process and after generation admingenerator should not do anything just running the generated code. 
Check you've not activated overwrite_if_exists in your config files

Can you give me your env config (windows or linux and php version, doctrine or propel)

Cedric
2014-08-01 22:59 GMT+02:00 Vicky Nsenga <vicky....@gmail.com>:
First of all thank you for your reply. This does not happen only on the first call of the page. It does the same thing on page reload.
Can, using extra fields which are not specified in the generator.yml leads to such poor performance?
Do you think activating zend optimizer ++ can improve pages loading?


On Friday, August 1, 2014 7:34:57 PM UTC+2, cédric LOMBARDOT wrote:

The first time you call the page after a generator.yml admingen rebuild his cache. If you reload this page should be fast. Il prod use cache:warmup to build cache

Le 1 août 2014 17:05, "Vicky Nsenga" <vicky....@gmail.com> a écrit :

Hi,

I have a big performance issue on my application that uses the SF2 admingenerator.
I found that for displaying  a page with 5000 elements it tooks 26 seconds with  only 250 milleseconds query time.
Almost half of this time is HTML loading. WHat can i do to improve the performance?




--
--
You received this message because you are subscribed to the Google
Groups "Symfony2 Admingenerator bundles support for users" group.
To post to this group, send email to
symfony2adm...@googlegroups.com

To unsubscribe from this group, send email to

For more options, visit this group at
http://groups.google.com/group/symfony2admingenerator?hl=en
 
---
Found bundle documentation at http://symfony2admingenerator.org/

---
You received this message because you are subscribed to the Google Groups "Symfony2 Admingenerator bundles support for users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to symfony2admingenerator+unsubscri...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Cédric Lombardot

unread,
Aug 4, 2014, 3:18:21 AM8/4/14
to Symfony2 Admingenerator bundles support for users

Yes its really strange if you have more thab one generator.yml try to remove /rename others temporary to isolate the bug you can also édit cache files adding a comment. Objective be sure  there is not an error in a generated file due to a bad namespace that will enforce régénération of cache. If true you should also have duplication of folders in cache some with real code some with quite empty file. If you have no solution with that please send me a peace of code to reproduce it
Cedric

Cédric


For more options, visit this group at
http://groups.google.com/group/symfony2admingenerator?hl=en
 
---
Found bundle documentation at http://symfony2admingenerator.org/

---
You received this message because you are subscribed to the Google Groups "Symfony2 Admingenerator bundles support for users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to symfony2admingene...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages