-
AuthorPosts
-
jooservices Friend
jooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
September 20, 2015 at 1:58 pm #687153Note:// This topic is not talk about how to copy & paste to make it work.
It’s talking about logical and you’ll implement it by your own way.In basic, Teline V is one of heavy template because:
– So many thing render on site
– So many process : For sample image re-size
and ….Most of users just only do simple thing:
– Turn on css / js compress. It’ll reduce respond size .
– Turn on cache . Reduce server side processBut have you ever checked into deep code to know what’s exactly going on ? And if your site slowing, which thing slowed ?
By turn on Joomla! Debug mode we’ll have really useful information.
For sample here is my work on Teline site with over 40.000 articlesJoomla! global cache is enabled.
Време: 0.0 ms / 0.0 ms Меморија: 0.416 MB / 0.42 MB Application: afterLoad
Време: 194.8 ms / 194.9 ms Меморија: 1.569 MB / 1.99 MB Application: afterInitialise
Време: 67.4 ms / 262.2 ms Меморија: 1.590 MB / 3.58 MB Application: afterRoute
Време: 7890.6 ms / 8152.9 ms Меморија: 2.765 MB / 6.34 MB Application: beforeRenderModule mod_ja_acm ([Magazine - Home] Featured News 1)
Време: 367.8 ms / 8520.7 ms Меморија: 6.202 MB / 12.54 MB Application: afterRenderModule mod_ja_acm ([Magazine - Home] Featured News 1)
Време: 1.3 ms / 8522.0 ms Меморија: 0.000 MB / 11.82 MB Application: beforeRenderModule mod_ja_acm ([Magazine - Home] - Featured Videos)
Време: 29.5 ms / 8551.5 ms Меморија: 0.407 MB / 12.23 MB Application: afterRenderModule mod_ja_acm ([Magazine - Home] - Featured Videos)
Време: 0.7 ms / 8552.2 ms Меморија: 0.000 MB / 12.13 MB Application: beforeRenderModule mod_ja_acm ([Magazine - Home] Category Listing 1)
Време: 22160.0 ms / 30712.2 ms Меморија: 4.513 MB / 16.65 MB Application: afterRenderModule mod_ja_acm ([Magazine - Home] Category Listing 1)
Време: 2.0 ms / 30714.2 ms Меморија: 0.000 MB / 15.55 MB Application: beforeRenderModule mod_ja_acm ([Magazine - Home] Category Listing 2)
Време: 346.8 ms / 31061.0 ms Меморија: 2.080 MB / 17.63 MB Application: afterRenderModule mod_ja_acm ([Magazine - Home] Category Listing 2)
Време: 1.4 ms / 31062.4 ms Меморија: 0.000 MB / 17.08 MB Application: beforeRenderModule mod_ja_acm ([Magazine - Home] - Featured news 4)
Време: 66539.3 ms / 97601.8 ms Меморија: 1.609 MB / 18.69 MB Application: afterRenderModule mod_ja_acm ([Magazine - Home] - Featured news 4)
Време: 6.2 ms / 97607.9 ms Меморија: 0.000 MB / 18.26 MB Application: afterDispatch
Време: 109.6 ms / 97717.5 ms Меморија: 0.882 MB / 19.14 MB Application: beforeRenderModule mod_articles_categories (ЦГ категорија)
Време: 10.3 ms / 97727.9 ms Меморија: 0.258 MB / 19.40 MB Application: afterRenderModule mod_articles_categories (ЦГ категорија)
Време: 1.0 ms / 97728.9 ms Меморија: 0.023 MB / 19.42 MB Application: beforeRenderModule mod_articles_categories (Србија и РС категорија)
Време: 7.9 ms / 97736.8 ms Меморија: 0.288 MB / 19.71 MB Application: afterRenderModule mod_articles_categories (Србија и РС категорија)
Време: 0.9 ms / 97737.7 ms Меморија: 0.023 MB / 19.73 MB Application: beforeRenderModule mod_articles_categories (Свијет категорија)
Време: 4.0 ms / 97741.7 ms Меморија: 0.208 MB / 19.94 MB Application: afterRenderModule mod_articles_categories (Свијет категорија)
Време: 1.1 ms / 97742.8 ms Меморија: 0.023 MB / 19.97 MB Application: beforeRenderModule mod_articles_categories (Култура категорија)
Време: 12.2 ms / 97755.1 ms Меморија: 0.417 MB / 20.38 MB Application: afterRenderModule mod_articles_categories (Култура категорија)
Време: 2.1 ms / 97757.2 ms Меморија: 0.023 MB / 20.41 MB Application: beforeRenderModule mod_articles_categories (Наука категорија)
Време: 3.4 ms / 97760.6 ms Меморија: 0.302 MB / 20.71 MB Application: afterRenderModule mod_articles_categories (Наука категорија)
Време: 1.6 ms / 97762.2 ms Меморија: 0.031 MB / 20.74 MB Application: beforeRenderModule mod_articles_categories (Спорт категорија)
Време: 4.0 ms / 97766.2 ms Меморија: 0.256 MB / 20.99 MB Application: afterRenderModule mod_articles_categories (Спорт категорија)
Време: 2.2 ms / 97768.4 ms Меморија: 0.031 MB / 21.02 MB Application: beforeRenderModule mod_articles_categories (Став категорија)
Време: 4.8 ms / 97773.1 ms Меморија: 0.273 MB / 21.30 MB Application: afterRenderModule mod_articles_categories (Став категорија)
Време: 1.5 ms / 97774.6 ms Меморија: 0.031 MB / 21.33 MB Application: beforeRenderModule mod_articles_categories (Забава категорија)
Време: 12.0 ms / 97786.6 ms Меморија: 0.525 MB / 21.85 MB Application: afterRenderModule mod_articles_categories (Забава категорија)
Време: 2.0 ms / 97788.6 ms Меморија: 0.023 MB / 21.88 MB Application: beforeRenderModule mod_articles_categories (Здравлје категорија)
Време: 7.8 ms / 97796.4 ms Меморија: 0.393 MB / 22.27 MB Application: afterRenderModule mod_articles_categories (Здравлје категорија)
Време: 113.6 ms / 97910.0 ms Меморија: 0.507 MB / 22.78 MB Application: afterRenderYup ! What do we have here ???
Време: 7890.6 ms / 8152.9 ms Меморија: 2.765 MB / 6.34 MB Application: beforeRenderModule mod_ja_acm ([Magazine – Home] Featured News 1)Време: 22160.0 ms / 30712.2 ms Меморија: 4.513 MB / 16.65 MB Application: afterRenderModule mod_ja_acm ([Magazine – Home] Category Listing 1)
Време: 66539.3 ms / 97601.8 ms Меморија: 1.609 MB / 18.69 MB Application: afterRenderModule mod_ja_acm ([Magazine – Home] – Featured news 4)
3 ACM modules cause heavy and delayed respond time.
( In fact more than that, i have worked in some and it’s heavy load here ).
By check into ACM module. You’ll see what’s exactly going on here.
– Queries
– Image processNow optimize it as your own way.
About caching please consider this concept.
We have function getList
We have 10 modules call that function to get items list ( than process ).
At this time, it’s not cached even Joomla! global cache enabled. So it’s mean getList will process 10 times !!!Time for cache.
– If params are same . We do cache.
By this way if 10 modules call that function but only have 3 modules with different params than we only do queries 3 times.
– After get items , each module will render by their own way. It’s another story.And render on site. Than cache ( everything ).
Yup ! Optimized !
And one more thing.
Image process.
I have Virtual Machine with 8GB RAM and it’s always overflow with above site . Why and why ??? By inspect code i saw it’s used 3rd library for image resize BUT does not release memory after finished ! Just reduce it will save your memory.And lots of thing you can do just by follow logic and information from Joomla! debug mode.
4 users say Thank You to jooservices for this useful post
-
AuthorPosts
This topic contains 1 reply, has 1 voice, and was last updated by jooservices 9 years, 4 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum