Allowed memory size exhausted

Requests, feedback, and general discussion about WoWRoster
DO NOT post topics about WoWRoster AddOns here!

Allowed memory size exhausted

Postby Palladius » Thu Jul 06, 2006 2:43 am

Problem on uploading my CharacterProfiler.lua

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 1020596 bytes) in /roster/lib/commonfunctions.lib.php on line 150

My CharacterProfiler.lua had about 1Megabyte, when i upload it, i became the error Message. I deleted it and Scan all Cahracters new then i had about 700kb upload it again and the same error appears.

Any Idea to fix it.

Sorry for Bad English :blackeye:
Last edited by Palladius on Thu Jul 06, 2006 2:44 am, edited 2 times in total.
Palladius
WR.net Apprentice
WR.net Apprentice
 
Posts: 5
Joined: Wed Jul 05, 2006 6:44 am

Re: Allowed memory size exhausted

Postby nightfighter » Thu Jul 06, 2006 8:09 am

I have had this problem. I suggest doing a /cp purge all and then go through about half of your characters, upload them and then do it again with the other half. You should only have to upload the ones that you have played lately, so once you have them all up, at the start of a session with the game do a purge and then upload at the end.
User avatar
nightfighter
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 169
Joined: Wed Jul 05, 2006 11:25 pm
Location: Boise, Idaho, USA

Re: Allowed memory size exhausted

Postby Pixmyster » Thu Nov 08, 2007 8:46 am

same issue how do i do a "/cp purge all"

- FIxed but have another problem which has been posted elsewhere seems its possible that it may be effected by something else......
Last edited by Pixmyster on Fri Nov 09, 2007 9:26 am, edited 1 time in total.
User avatar
Pixmyster
WR.net Apprentice
WR.net Apprentice
 
Posts: 7
Joined: Sat Aug 25, 2007 11:27 pm
Location: Dubbo

Allowed memory size exhausted

Postby poetter » Thu Nov 08, 2007 9:37 am

Just a suggestion: An allowed memory size of 8388608 is very low. you will get problems not only on cp uploads.

think about another webhoster
Image
User avatar
poetter
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 462
Joined: Sat Jun 30, 2007 9:41 pm
Location: Germany/Hamburg

Re: Allowed memory size exhausted

Postby tuigii » Thu Nov 08, 2007 9:57 am

Pixmyster wrote:same issue how do i do a "/cp purge all"

Well, enter WoW, hit enter and type /cp purge all - because that's where it happens :wink:
/cp means your talking to the addon that uses that command, in this case, the addon CharacterProfiler !

Just type /cp to know all its commands and how to use them.

And this goes for all adddons !
User avatar
tuigii
WR.net Master
WR.net Master
 
Posts: 891
Joined: Wed Dec 27, 2006 12:57 pm
Location: Somewhere in the South Ouest of France

Allowed memory size exhausted

Postby Subxero » Fri Nov 09, 2007 12:40 am

Palladius try upload the .lua compressed on .gz format
Subxero - Priest 70 Holy - Asphelt Knight Officer - Zul'jin Horde.
User avatar
Subxero
WR.net Artisan
WR.net Artisan
 
Posts: 234
Joined: Thu Jul 06, 2006 4:08 pm
Realm: Zul'jin (PvE) - US

Re: Allowed memory size exhausted

Postby tuigii » Fri Nov 09, 2007 1:29 am

Subxero wrote:Palladius try upload the .lua compressed on .gz format
When the file comes in on the Roster, it will have the same size as your original file on your disk. A mere 1Mbytes.

But before it's thrown away, it will be converted into PHP multi dimensional array - and the size of it will be 3 a 4 times bigger.
So, when are your uploading, for a moment given, a 1 Mbytes characterprofiles.lua will need some 3 a 4 Mbytes in server memory.
And for that situation, there is no work arround possible right now.

If this really starts to be a problem, then the characterprofiles.lua should be split in individual PHP arrays like Realm->Guild->Chars files and cached on disk.
Handling afterwards can be done easily - reading only the files that are having a valid "Realm->Guild" match.

It seems to me that many webhosts are using a ZX81 (remember this one ?) for their web servers... :wink:
User avatar
tuigii
WR.net Master
WR.net Master
 
Posts: 891
Joined: Wed Dec 27, 2006 12:57 pm
Location: Somewhere in the South Ouest of France

Allowed memory size exhausted

Postby PleegWat » Fri Nov 09, 2007 1:39 am

Nah, 8mb max used to be the default up to 4.3.x/5.0.x or so. Only the most recent default to 128 MB, but hosters usually tune those back to 8mb per run as well.
I <3 /bin/bash
User avatar
PleegWat
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 1636
Joined: Tue Jul 04, 2006 1:43 pm

Allowed memory size exhausted

Postby poetter » Fri Nov 09, 2007 1:39 am

If you are using Roster2 the problem is not really the size of the cp. it is the amount of sql debug infos that is create due to the size of the cp. So switching to compressed .gz will not help.

As i said. 8M is very low. I had problems with 32M. Think about another Webhoster
Image
User avatar
poetter
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 462
Joined: Sat Jun 30, 2007 9:41 pm
Location: Germany/Hamburg

Allowed memory size exhausted

Postby tuigii » Fri Nov 09, 2007 3:09 am

PleegWat wrote:Nah, 8mb max used to be the default up to 4.3.x/5.0.x or so.

I agree, and this is what you 'have' at your disposal.
(Althought 128 Mb seems a more a dedicated xx $ solution/month to me)

Tuigii = Me wrote:So, when are your uploading, for a moment given, a 1 Mbytes characterprofiles.lua will need some 3 a 4 Mbytes in server memory.

needs to be added to his:
poetter wrote:If you are using Roster2 the problem is not really the size of the cp. it is the amount of sql debug infos that is create due to the size of the cp

and the current (roster) working-set, like the local variables/array/strings and page code.

Needles to say that may of use share the roster with a Guild CMS (mine is small : 280 membres - 16 000 posts & articles), UniAdmin, with it's small l footprint...

Anyway, solutions are possible on the soft side - but why losing time on this ? .... Compare web hosters always before accepting their servcies and puttings soft on it.
They are like PC's : we don't play WoW on a 8086 neither....
User avatar
tuigii
WR.net Master
WR.net Master
 
Posts: 891
Joined: Wed Dec 27, 2006 12:57 pm
Location: Somewhere in the South Ouest of France

Allowed memory size exhausted

Postby bosco » Sat Nov 10, 2007 3:05 am

you can use dedicated servers :p

Also, you can see at www.ovh.com for hosting.
bosco
WR.net Apprentice
WR.net Apprentice
 
Posts: 26
Joined: Mon Jan 15, 2007 12:24 pm

Re: Allowed memory size exhausted

Postby tuigii » Sat Nov 10, 2007 4:00 am

bosco wrote:you can use dedicated servers :p
Also, you can see at www.ovh.com for hosting.

I have a server like that at :wink: www.ovh.fr - but, instead of burning 300 $ a year (and that's a 'starting price') I tend to spend money differently.

With all respect, we're talking 'Guild stuff' hosting here :wink

I prefer using money for the software I put on it…..
(let's go knocking down the opening balance over here)
Last edited by tuigii on Sat Nov 10, 2007 4:01 am, edited 1 time in total.
User avatar
tuigii
WR.net Master
WR.net Master
 
Posts: 891
Joined: Wed Dec 27, 2006 12:57 pm
Location: Somewhere in the South Ouest of France


Return to General Support & Feedback

Who is online

Users browsing this forum: No registered users and 1 guest

cron