Error when uploading pvplog file (5+ MB)

Forum Dedicated to PvPLog, (The WoW PvP data collector addon), and PvPLog related topics

Moderator: bsmorgan

Error when uploading pvplog file (5+ MB)

Postby Striper » Wed Oct 11, 2006 1:01 pm

someone from my guild who was extensively playing pvp in the last months to reach lvl 14 (and eventually did it) is having problems uploading his pvplog.lua...

the following error appears after some time:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 35 bytes) in [path to roster]/lib/luaparser.php on line 84

any hints? I don't see why a 5MB file should be bloated to a size of 32MB... just by parsing it.

I will deliver the file on request, but will not upload for the public (he is kinda paranoid, comes with too much pvp ^^)

edit: that number looked familiar... it is exactly 32MB, not one bit more. It still ist around 33MB, i just wanted to correct that :)
Last edited by Striper on Thu Oct 12, 2006 5:36 am, edited 1 time in total.
User avatar
Striper
WR.net Apprentice
WR.net Apprentice
 
Posts: 38
Joined: Tue Jul 04, 2006 7:06 pm
Location: Germany

Error when uploading pvplog file (5+ MB)

Postby Dilgar » Wed Oct 11, 2006 7:19 pm

The php upload default on most servers is usually 2Megs (defined in php.ini)

Might try changing that setting and see if that helps.
Dilgar
WR.net Apprentice
WR.net Apprentice
 
Posts: 8
Joined: Wed Jul 05, 2006 6:28 pm

Error when uploading pvplog file (5+ MB)

Postby Striper » Thu Oct 12, 2006 5:33 am

nono, the file is uploaded completely (changed that setting for something else to 20MB long before), the error occurs while parsing the uploaded file...
User avatar
Striper
WR.net Apprentice
WR.net Apprentice
 
Posts: 38
Joined: Tue Jul 04, 2006 7:06 pm
Location: Germany

Error when uploading pvplog file (5+ MB)

Postby Striper » Thu Oct 12, 2006 5:52 am

solved... it was in the php.ini:

Code: Select all
memory_limit = 128M      ; Maximum amount of memory a script may consume (8MB)

is the line to change... it was 32MB before, it does work with 128MB

Still - please check the code, it just can't be true that 5MB pvplog.lua cannot be parsed with 32MB of script memory available... someone needs to doublecheck the memory usage of the parser lib
User avatar
Striper
WR.net Apprentice
WR.net Apprentice
 
Posts: 38
Joined: Tue Jul 04, 2006 7:06 pm
Location: Germany

Re: Error when uploading pvplog file (5+ MB)

Postby mrmuskrat » Thu Oct 12, 2006 6:43 am

Striper wrote:... it just can't be true that 5MB pvplog.lua cannot be parsed with 32MB of script memory available...


It's PHP, anything is possible. :tongue:
User avatar
mrmuskrat
WR.net Journeyman
WR.net Journeyman
 
Posts: 117
Joined: Sat Jul 29, 2006 9:50 pm

Error when uploading pvplog file (5+ MB)

Postby zanix » Thu Oct 12, 2006 6:44 am

The lua parser has already been optimized as much as possible in version 1.7.0
It used to take two to three times the amount of time as the current version and used up lots more memory

In fact, I believe we have one of the best PHP lua parsers out there (correct me if anyone sees one better, and point me too it :) )


The reason why it may take more than 32mb for a 5mb lua file is because PHP arrays use more memory than an actual file
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Re: Error when uploading pvplog file (5+ MB)

Postby Tseran » Sun Dec 31, 2006 3:14 am

My website provider doesn't let me edit the php.ini file itself, is there another way to midify that, so that I can deal with this problem? So far, my PvPLog.lua is just 2MB now, but I can feel it getting bigger very fast.
Tseran
WR.net Apprentice
WR.net Apprentice
 
Posts: 1
Joined: Sat Jul 22, 2006 9:35 am


Return to PvPLog

Who is online

Users browsing this forum: No registered users and 1 guest

cron