View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
05771 | Bug reports | Survey taking | public | 2012-02-07 11:19 | 2012-03-14 21:08 |
Reporter | Assigned To | TMSWhite | |||
Priority | normal | Severity | block | ||
Status | closed | Resolution | fixed | ||
Product Version | 1.92RC3 | ||||
Target Version | 1.92RC4 | Fixed in Version | 1.92RC4 | ||
Summary | 05771: ExprMgr_process_relevance_and_tailoring need more and more time after page reload | ||||
Description | I have a problem regarding this survey: On the first pageload everythings seems to be okay (time "index.php": 484 ms) and the swithing between questions via mouseclick or tabs works well and fast. If I reload the page (Firefox: F5) it gets a bit slower. If I reload the complete page (STRG + F5) or load the page again (click on URL and Enter) it seems to sum up the time I have to wait. The problem child seems to be "ExprMgr_process_relevance_and_tailoring" which needs about 90% to 97% of the loading time. | ||||
Steps To Reproduce |
| ||||
Additional Information | Time measuring using firebug: function calls percent own time time average min max file | ||||
Tags | No tags attached. | ||||
Attached Files | time_measure.csv (1,551 bytes)
function calls percent own time time average min max file ExprMgr_process_relevance_and_tailoring 7 97.25% 41507.004ms 65126.868ms 9303.838ms 9081.62ms 9518.044ms index....lang=en (Zeile 237) LEMval 37842 1.78% 758.93ms 818.557ms 0.022ms 0.009ms 1.142ms em_javascript.js (Zeile 207) LEManyNA 10626 0.15% 65.64ms 233.384ms 0.022ms 0.003ms 1.653ms em_javascript.js (Zeile 471) htmlspecialchars_decode 13608 0.14% 59.627ms 59.627ms 0.004ms 0.002ms 0.187ms em_javascript.js (Zeile 999) htmlspecialchars 10584 0.12% 51.406ms 51.406ms 0.005ms 0.002ms 0.066ms em_javascript.js (Zeile 930) anonymous 86 0.06% 26.057ms 31.652ms 0.368ms 0.035ms 7.878ms jquery.js (Zeile 75) anonymous 98 0.05% 19.735ms 69.527ms 0.709ms 0.031ms 8.026ms jquery.js (Zeile 92) anonymous 20 0.03% 14.815ms 27869.459ms 1393.473ms 0.001ms 9518.066ms em_javascript.js (Zeile 500) anonymous 33 0.03% 13.545ms 15.057ms 0.456ms 0.001ms 2.448ms jquery.js (Zeile 57) LEMif 16926 0.03% 12.911ms 12.911ms 0.001ms 0ms 0.082ms em_javascript.js (Zeile 85) anonymous 89 0.02% 10.251ms 47.807ms 0.537ms 0.066ms 8.017ms jquery.js (Zeile 72) anonymous 101 0.02% 10.021ms 11.623ms 0.115ms 0.003ms 1.329ms jquery.js (Zeile 26) anonymous 726 0.02% 9.017ms 56.307ms 0.078ms 0.001ms 5.588ms jquery.js (Zeile 22) LEMimplode 2646 0.02% 8.279ms 8.279ms 0.003ms 0.002ms 0.157ms em_javascript.js (Zeile 120) anonymous 726 0.02% 7.962ms 64.269ms 0.089ms 0.003ms 5.602ms jquery.js (Zeile 21) checkconditions 4 0.02% 7.732ms 37279.956ms 9319.989ms 9248.403ms 9394.569ms index....lang=en (Zeile 60) | ||||
Bug heat | 6 | ||||
Complete LimeSurvey version number (& build) | 12387 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | Mozilla Firefox 10 | ||||
Database type & version | MySQL Comunnity Server 5.5.8 | ||||
Server OS (if known) | Windows Server 2008 | ||||
Webserver software & version (if known) | Apache 2.2.17 | ||||
PHP Version | 8.2.17 | ||||
Please upload the survey so I can test on my own. Take a look at the generated HTML. Although your page is only showing 4 questions, there is EM code for dozens of questions. The HTML is 17,000 lines long. |
|
Ah, must be a caching issue. The right amount of HTML is generated the first time. Each subsequent time, it re-generates the same tailoring code plus new tailoring code - so doubles in size with each page re-load. |
|
Uploaded the survey. |
|
Unfortunately, I can't reproduce the problem you're seeing. Every time I refresh the page using F5, I always get the same content. There is a function call LimeExpressionManager::StartProcessingPage()that clears the page-related cache every time it is called. It gets called every time you click next/previous/jump-to. It is also getting called every time I click F5 (looking at the stack trace, when I click F5, Firefox interprets that as a "movenext" command). Perhaps somehow it isn't on your configuration? I have Windows XP, Firefox 10, and am using XAMPP. Are you using ZEND or anything that might be caching your PHP sessions? Can you test this yourself (e.g. do you have access to XDebug or similar debuger so you can set a breakpoint within that function and try to figure out why it is being skipped when you press F5)? |
|
OK, I was able to reproduce this a different way - by using the Save/Resume feature. The problem is that sometimes EM calls GetLastMoveResult(), and it isn't properly clearing its cache, so content gets re-generated. |
|
Fixed in revision 12396 |
|
1.92RC4 released |
|
LimeSurvey: Yii 4c5f2d08 2012-02-07 11:42:07 Details Diff |
Fixed issue 05771: ExprMgr_process_relevance_and_tailoring need more and more time after page reload git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey_yii@12397 b72ed6b6-b9f8-46b5-92b4-906544132732 |
Affected Issues 05771 |
|
mod - application/helpers/SurveyRuntimeHelper.php | Diff File | ||
mod - application/helpers/expressions/em_core_helper.php | Diff File | ||
mod - application/helpers/expressions/em_manager_helper.php | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2012-02-07 11:19 |
|
New Issue | |
2012-02-07 11:32 |
|
File Added: time_measure.csv | |
2012-02-07 12:13 | Mazi | Assigned To | => TMSWhite |
2012-02-07 12:13 | Mazi | Status | new => assigned |
2012-02-07 15:40 | TMSWhite | Note Added: 17280 | |
2012-02-07 15:42 |
|
File Added: limesurvey_survey_89587.lss | |
2012-02-07 15:49 | TMSWhite | Note Added: 17281 | |
2012-02-07 15:49 |
|
Note Added: 17282 | |
2012-02-07 17:10 | TMSWhite | Note Added: 17285 | |
2012-02-07 17:59 | TMSWhite | Note Added: 17287 | |
2012-02-07 20:17 | TMSWhite | Target Version | => 1.92RC4 |
2012-02-07 20:18 | TMSWhite | Note Added: 17290 | |
2012-02-07 20:18 | TMSWhite | Status | assigned => resolved |
2012-02-07 20:18 | TMSWhite | Fixed in Version | => 1.92RC4 |
2012-02-07 20:18 | TMSWhite | Resolution | open => fixed |
2012-02-14 14:10 | c_schmitz | Note Added: 17406 | |
2012-02-14 14:10 | c_schmitz | Status | resolved => closed |
2012-03-14 21:08 | TMSWhite | Changeset attached | => Import 2012-03-09 13:30:34 Yii 4c5f2d08 |