Forums / Install & configuration / update language , but system runs very slow

update language , but system runs very slow

Author Message

Wei Changsheng

Tuesday 15 August 2006 12:59:21 pm

I have update language packeage, when put it on, system runs veryslow....

1.> Use linguist for Win update .ts file
2.> put it back to share/ folder
3.> turn on TranslatorCache in site.ini.append.php
4.> Clear All Cache
5.> Restart Apache

But when i put original .ts file back, clear cache, and everything ok.
So, what's wrong with i do ~~~?

cache managerment? or something i miss or make mistake ~~~

Claudia Kosny

Wednesday 16 August 2006 11:06:36 am

Hello Wei Changsheng,

unfortunately I have no idea what might be going on there,therefore just some ideas on what to test or look out for:

Enable output debug and have a look at the time accumulators. Compare the outputs you get with your old and your new translation file. Are there any major differences? If yes, please tell us or post both versions here.

Open both the old and the new translation.ts file in a texteditor. As they consist of xml, they should be human readable. Do the files look different (except of course for the fact that you have added translations)? If yes, what are the differences?

If you speak another language than English and I assume Chinese (my apologies if I am wrong), try to recreate the problem with this language. Does the same problem occur when updating the ts file?

Greetings from Luxembourg

Claudia

Wei Changsheng

Thursday 17 August 2006 10:49:01 am

Thks, Even i don't know what i am done . but my site runs fine.
I will try more with my work, and test again

good luck, an Thanks again.

Wei Changsheng

Friday 18 August 2006 6:49:53 am

Last time i said it's ok, But when i update translation.ts, System slow again.

Old Translation -
TS translator
TS init 0.0217 sec 7.6239% 7 0.0031 sec
TS cache load 0.0190 sec 6.6596% 7 0.0027 sec
TS context load 0.0139 sec 4.8739% 7 0.0020 sec

Just replace old TS file, not clear cache
TS translator
TS init 19.3281 sec 98.6498% 1 19.3281 sec
TS load 18.8769 sec 96.3472% 1 18.8769 sec
TS store cache 0.4296 sec 2.1927% 1 0.4296 sec

After Clear Cache
TS translator
TS init 19.3911 sec 59.3279% 1 19.3911 sec
TS load 18.9385 sec 57.9432% 1 18.9385 sec
TS store cache 0.4305 sec 1.3173% 1 0.4305 sec
Template Total 13.1405 sec 40.2% 3 4.3802 sec

Total script time: 32.6847 sec

Any help ? is this situation related to cache system?

Felix Woldt

Tuesday 30 November 2010 12:26:12 am

i have a similar issue on ez440 with a ts file. The strange thing on our testsystem the ts file is cached fine but on an other system (production) the ts file is every time loaded again (Debug output TS INIT with 8s!!!)

If i foud the problem i will post it here. Very strange thing!

http://www.jac-systeme.de - Developers united in eZ Publish: http://www.cjw-network.com

CJW Newsletter 1.0.0 released: http://projects.ez.no/cjw_newsletter

Christian Rößler

Tuesday 30 November 2010 1:37:32 am

There is a bug in eZpublish, when enabling TranslationCache, on each request the cache is created over and over again...

See this thread for details: http://share.ez.no/forums/general/translationcache-enabled-rewrites-cache-on-each-request-possible-bug

My Workaround was to disable TranslationCache. The ViewCache does the caching of my page pretty well. The Administration-Interface and publishing content is a bit slower though.

Hannover, Germany
eZ-Certified http://auth.ez.no/certification/verify/395613

eZ debug

Timing: Jan 17 2025 20:50:18
Script start
Timing: Jan 17 2025 20:50:18
Module start 'content'
Timing: Jan 17 2025 20:50:20
Module end 'content'
Timing: Jan 17 2025 20:50:20
Script end

Main resources:

Total runtime1.5019 sec
Peak memory usage4,096.0000 KB
Database Queries208

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0082 596.2031180.8047
Module start 'content' 0.00821.3161 777.0078688.7344
Module end 'content' 1.32430.1774 1,465.7422337.2813
Script end 1.5018  1,803.0234 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00520.3463210.0002
Check MTime0.00150.0971210.0001
Mysql Total
Database connection0.00140.090810.0014
Mysqli_queries1.390392.56992080.0067
Looping result0.00240.15992060.0000
Template Total1.458697.120.7293
Template load0.00210.142620.0011
Template processing1.456596.974520.7282
Template load and register function0.00030.016710.0003
states
state_id_array0.00190.124110.0019
state_identifier_array0.00210.141120.0011
Override
Cache load0.00190.1250530.0000
Sytem overhead
Fetch class attribute can translate value0.00160.104550.0003
Fetch class attribute name0.00120.078770.0002
XML
Image XML parsing0.00750.496150.0015
class_abstraction
Instantiating content class attribute0.00010.005470.0000
General
dbfile0.01110.7375270.0004
String conversion0.00000.000530.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
12content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
6content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 28
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs