View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
05193 | Bug reports | Import/Export | public | 2011-05-24 14:13 | 2011-06-08 14:14 |
Reporter | ppuls | Assigned To | c_schmitz | ||
Priority | normal | Severity | block | ||
Status | closed | Resolution | fixed | ||
Product Version | 1.91 | ||||
Fixed in Version | 1.91+ | ||||
Summary | 05193: PHPExcel engine running out of memory | ||||
Description | HI! I just upgraded to 1.91+ in the comfort upgrade method and all worked well, but... when trying to export results of a survey with about 450 questionnaires, i got an error message: http://research.radix-group.com/survey/admin/admin.php?action=exportresults. so i turned the error reporting on and goth this in the downloaded xls: Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 103 bytes) in /srv/www/vhosts/radix-group.com/subdomains/research/httpdocs/survey/admin/classes/phpexcel/PHPExcel/Worksheet.php on line 942 so then i turend the php-mem size up to 250MB and this file worked, but a different survey with 1260 questionnaires crashed with the following line in the exls: Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 103 bytes) in /srv/www/vhosts/radix-group.com/subdomains/research/httpdocs/survey/admin/classes/phpexcel/PHPExcel/Worksheet.php on line 942 all this time, the csv export worked well. now that i have turned the mem up to 1.024 MB, the xls exports ar running, but they are way slower thatn in version 1.90+. | ||||
Steps To Reproduce | change the Mem Size in the attached htaccess file and put it as .htaceess into your limesurvey install. | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Bug heat | 8 | ||||
Complete LimeSurvey version number (& build) | 10089 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | firefox 4.0.1 | ||||
Database type & version | MySQL 5.0.45 | ||||
Server OS (if known) | Linux s15330791 2.6.9-023stab052.4-smp #1 SMP Tue May 11 19:21:39 MSD 2010 x86_64 | ||||
Webserver software & version (if known) | Apache/2.2.4 (Linux/SUSE) | ||||
PHP Version | PHP/5.2.11 | ||||
Hi! Try to do the following. Open admin/exportresults.php and look for the line $objWriter = new PHPExcel_Writer_Excel5($workbook); Before that line insert the following two lines:
It should significatly reduce memory usage - please let me know if this works out. |
|
Hi! i tried your solution, but got the following results: Webbrowser error message: Firefox can't find the file at http://research.radix-group.com/survey/admin/admin.php?action=exportresults. and when i redirected the error to the download file: Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 81 bytes) in /srv/www/vhosts/radix-group.com/subdomains/research/httpdocs/survey/admin/classes/phpexcel/PHPExcel/Cell.php on line 130 sorry to bring no better news. cheers, philipp |
|
I can reproduce this problem here on different HW/SW confs. |
|
Next 1.91+ Version will use phpExcel 1.7.6 (previously 1.7.4) |
|
is this already in the Version 1.91+(10129) or can i skip this and wait for the next? cheers, phil |
|
ooops, build number just changed! now it's: Version 1.91+(10120) |
|
Wait for the next ;) |
|
Will do! THX for your great work! Phil |
|
New version is released. |
|
Hi! i just installed Version 1.91 Build 10168 and tested with 1279 records. Sorry to disappoint, with less then 512M of PHP Ram, no go, above that, works fine and quicker than in the previous install. not as quick though as in the 1.90+ i attach my htaccess files. philipp |
|
Did the memory consumption change at all? |
|
I saw that I forgot to apply the mentioned patch to the latest version. Only the PHPExcel library was updated. With the caching mechanism applied the memory usage is cut by 45% but still high. |
|
New version released. |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2011-05-24 14:13 | ppuls | New Issue | |
2011-05-24 14:13 | ppuls | File Added: htaccess.txt | |
2011-05-24 14:13 | ppuls | Issue Monitored: ppuls | |
2011-05-25 12:28 | c_schmitz | Assigned To | => c_schmitz |
2011-05-25 12:28 | c_schmitz | Status | new => assigned |
2011-05-25 23:57 | c_schmitz | Note Added: 15126 | |
2011-05-25 23:57 | c_schmitz | Status | assigned => feedback |
2011-05-26 09:35 | c_schmitz | Note Edited: 15126 | |
2011-05-26 11:02 | ppuls | Note Added: 15128 | |
2011-05-26 11:02 | ppuls | Status | feedback => assigned |
2011-05-27 11:22 |
|
Note Added: 15134 | |
2011-05-29 09:08 | c_schmitz | Note Added: 15156 | |
2011-05-29 09:08 | c_schmitz | Status | assigned => feedback |
2011-05-30 11:25 | ppuls | Note Added: 15169 | |
2011-05-30 11:25 | ppuls | Status | feedback => assigned |
2011-05-30 11:29 | ppuls | Note Added: 15170 | |
2011-05-30 23:47 | c_schmitz | Note Added: 15173 | |
2011-05-30 23:47 | c_schmitz | Status | assigned => feedback |
2011-05-31 09:11 | ppuls | Note Added: 15181 | |
2011-05-31 09:11 | ppuls | Status | feedback => assigned |
2011-06-02 18:52 | c_schmitz | Note Added: 15257 | |
2011-06-02 18:52 | c_schmitz | Status | assigned => feedback |
2011-06-03 14:46 | ppuls | Note Added: 15273 | |
2011-06-03 14:46 | ppuls | Status | feedback => assigned |
2011-06-03 14:47 | ppuls | File Added: htaccess_1024.txt | |
2011-06-03 14:47 | ppuls | File Added: htaccess_512.txt | |
2011-06-03 14:47 | ppuls | File Added: htaccess_128.txt | |
2011-06-04 23:46 | c_schmitz | Note Added: 15289 | |
2011-06-06 16:37 | c_schmitz | Note Added: 15328 | |
2011-06-06 16:37 | c_schmitz | Status | assigned => resolved |
2011-06-06 16:37 | c_schmitz | Resolution | open => fixed |
2011-06-06 16:37 | c_schmitz | Fixed in Version | => 1.91+ |
2011-06-08 14:14 | c_schmitz | Note Added: 15381 | |
2011-06-08 14:14 | c_schmitz | Status | resolved => closed |
2021-08-05 02:10 | guest | Bug heat | 6 => 8 |