Welcome to Geeklog, Anonymous Saturday, November 23 2024 @ 07:53 pm EST
Geeklog Forums
memory_limit and Geeklog
Status: offline
Robin
Forum User
Full Member
Registered: 02/15/02
Posts: 725
What is, if there is one, memory_limit minimum for Geeklog?
I'm running a website (GL 1.3.11) on a host with memory_limit = 3145728 bytes and looks like it's not enough
The problem, one of many, is with story editing.
When I try to pos a new story via Admin's panel I get this error:
Actually I can't enter the panel because of this however I can post a story via Submit link.
The other error appears upon story saving
Is there a solution, apart from increasing the memory_limit, for this?
Thanks
Robert
Geeklog Polish Support Team
I'm running a website (GL 1.3.11) on a host with memory_limit = 3145728 bytes and looks like it's not enough
The problem, one of many, is with story editing.
When I try to pos a new story via Admin's panel I get this error:
Text Formatted Code
Fatal error: Allowed memory size of 3145728 bytes exhausted (tried to allocate 96575 bytes) in /path/to/geeklog/system/classes/template.class.php on line 499Actually I can't enter the panel because of this however I can post a story via Submit link.
The other error appears upon story saving
Text Formatted Code
Fatal error: Allowed memory size of 3145728 bytes exhausted (tried to allocate 96575 bytes) in /path/to/geeklog/system/classes/template.class.php on line 503Is there a solution, apart from increasing the memory_limit, for this?
Thanks
Robert
Geeklog Polish Support Team
6
5
Quote
Status: offline
vinny
Site Admin
Admin
Registered: 06/24/02
Posts: 352
Location:Colorado, USA
That is a really low memory limit. You must be using a pretty cheap host. You might want to just ask them to up the memory limit. I don't think anyone has done any testing to determine what an "optimal" or "minimum" memory limit is for Geeklog. However, typical memory_limit settings are usually around 16M. It looks like your host is trying to save memory by setting this to 3MB.
Note that really big/busy sites, like Groklaw, run into a similar memory problems even when the memory_limit is set to 16M or higher. But they run into the problem when trying to display an article with 1200+ comments).
-Vinny
Note that really big/busy sites, like Groklaw, run into a similar memory problems even when the memory_limit is set to 16M or higher. But they run into the problem when trying to display an article with 1200+ comments).
-Vinny
7
8
Quote
Status: offline
Robin
Forum User
Full Member
Registered: 02/15/02
Posts: 725
As a matter of fact it is cheap however previously I hosted this on a free server but ... The thing is that the site started as a part of my studies, students' community site, I just wanted it to stay alive so I wasn't interested in a very fancy hosting service.
Anyway they promised to increase the memory limit however I don't think it would be enough.
What I don't understand is that there is no memory issue with static pages, huge ones, whereas with one word stories I get Fatal blahblah.
The world is full of mysteries
Thank you vinny
Robert
Geeklog Polish Support Team
Anyway they promised to increase the memory limit however I don't think it would be enough.
What I don't understand is that there is no memory issue with static pages, huge ones, whereas with one word stories I get Fatal blahblah.
The world is full of mysteries
Thank you vinny
Robert
Geeklog Polish Support Team
4
9
Quote
Status: offline
vinny
Site Admin
Admin
Registered: 06/24/02
Posts: 352
Location:Colorado, USA
The problem has nothing (or very little) to do with the size of your content. I doubt any article or static page you write uses more than a couple kilobytes (and that would be ALOT).
The problem is with our current template system. The bigger, more complex, or more in number of templates that are compiled during a page load the more memory that gets eaten up. Staticpages have a very simple template, while some pages (such as the admin story page) are more complicated and use more templates.
-Vinny
The problem is with our current template system. The bigger, more complex, or more in number of templates that are compiled during a page load the more memory that gets eaten up. Staticpages have a very simple template, while some pages (such as the admin story page) are more complicated and use more templates.
-Vinny
7
6
Quote
Status: offline
Robin
Forum User
Full Member
Registered: 02/15/02
Posts: 725
Quote by vinny:The problem is with our current template system. The bigger, more complex, or more in number of templates that are compiled during a page load the more memory that gets eaten up. Staticpages have a very simple template, while some pages (such as the admin story page) are more complicated and use more templates.
Right it even shows where the problem is -> template.class.php
Now another question is it layout dependent or it's a general problem for all layouts?
I mean are there lighter and heavier layouts?
Thanks Vinny
Robert
Geeklog Polish Support Team
8
7
Quote
Status: offline
beewee
Forum User
Full Member
Registered: 08/05/03
Posts: 969
Location:The Netherlands, where else?
Would a CSS based theme make it a bit easier? There are lots of GL themes which are loaded with font and table tags etc.
Dutch Geeklog sites about camping/hiking:
www.kampeerzaken.nl | www.campersite.nl | www.caravans.nl | www.caravans.net
Dutch Geeklog sites about camping/hiking:
www.kampeerzaken.nl | www.campersite.nl | www.caravans.nl | www.caravans.net
7
8
Quote
All times are EST. The time is now 07:53 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content