memory problems?
memory problems?
Hello all,
I installed cmsms on my local machine (Atlon64, Suse Linux 9.1 professional, 1 Gbytesof memory running apache, php etc.) but at a certain moment I get the following error message:
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 7680 bytes) in /home/roel/www/html/cmsmadesimple-0.11.2/lib/adodb/adodb-datadict.inc.php on line 387
Any idea how to solve this?
Thanks,
Ryde
I installed cmsms on my local machine (Atlon64, Suse Linux 9.1 professional, 1 Gbytesof memory running apache, php etc.) but at a certain moment I get the following error message:
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 7680 bytes) in /home/roel/www/html/cmsmadesimple-0.11.2/lib/adodb/adodb-datadict.inc.php on line 387
Any idea how to solve this?
Thanks,
Ryde
Re: memory problems?
What modules do you have installed, or is it just a standard CMSMS install?
PHP by default is set to use 8M, which is kind of low in reality however, CMSMS 0.11.2 in it's default form uses about 6-6.5 without any additional modules installed.
If it really is just a standard install and it's using that much, you might want to bump up the memory limit in php.ini.
PHP by default is set to use 8M, which is kind of low in reality however, CMSMS 0.11.2 in it's default form uses about 6-6.5 without any additional modules installed.
If it really is just a standard install and it's using that much, you might want to bump up the memory limit in php.ini.
Re: memory problems?
That worked out!
Thanks!
By default it was set to 8 MB, I moved it up to 32 MB and I got a smooth ride....
Since this was my first installation of cmsmadesimple (and definately not the last!), it was a complete default install.
I also installed it at the site of my service provider and did not experience any problems!
Thaks again!

Thanks!
By default it was set to 8 MB, I moved it up to 32 MB and I got a smooth ride....
Since this was my first installation of cmsmadesimple (and definately not the last!), it was a complete default install.
I also installed it at the site of my service provider and did not experience any problems!
Thaks again!

Re: memory problems?
This can NOT be the right way in futurewishy wrote: If it really is just a standard install and it's using that much, you might want to bump up the memory limit in php.ini.

CMSms must save more memory, CMSms must run on a standard php installation WITHOUT problems.
Last edited by cyberman on Mon Jan 30, 2006 11:15 am, edited 1 time in total.
Re: memory problems?
I agree it should.
However, modules and plugins and other things are going to take space. Current svn is using 4-5.5 megs of ram with default modules and plugins installed. If you install a lot of stuff, it's going to go up. There is no choice for that.
We will get our usage down more and more to compensate for this, but it just takes time.
However, modules and plugins and other things are going to take space. Current svn is using 4-5.5 megs of ram with default modules and plugins installed. If you install a lot of stuff, it's going to go up. There is no choice for that.
We will get our usage down more and more to compensate for this, but it just takes time.
Re: memory problems?
Patricia wrote: must => should![]()

... very much providers in germanyI agree with cyberman, that unfortunately, some host providers will keep that low limit...

Last edited by cyberman on Mon Jan 30, 2006 1:52 pm, edited 1 time in total.
Re: memory problems?
I'm using bigger CMS than CMSms with the 8 MBs default and it works ...wishy wrote: However, modules and plugins and other things are going to take space. Current svn is using 4-5.5 megs of ram with default modules and plugins installed. If you install a lot of stuff, it's going to go up. There is no choice for that.
Re: memory problems?
Well, keep in mind that I don't claim to be a php expert. I'm learning as we go here, as much as everyone else.
I think 4-5.5 megs is more than enough to claim as "working" to me.
After 0.12 comes out, I'm going to start looking at the adodb lite thing and try and make it work without breaking anything in the process. It's going to take some time, unfortunately. But, in the meantime, I think I made some great strides in reducing the memory usage this time around and hopefully it continues to go in the right direction...
I think 4-5.5 megs is more than enough to claim as "working" to me.
After 0.12 comes out, I'm going to start looking at the adodb lite thing and try and make it work without breaking anything in the process. It's going to take some time, unfortunately. But, in the meantime, I think I made some great strides in reducing the memory usage this time around and hopefully it continues to go in the right direction...
Re: memory problems?
Well, last night I took a stab at adodb lite and right now it's in svn. There are still some issues, but I worked through most of them last night.
Basically, using adodb lite saves about 400-500k per page load. Not too bad. That puts us in the 3.75 range on a cached page, uncached it's at like 4.3-4.5.
It required some tweaking of copying some missing functions regarding sequences over from adodb. I did it for mysql, but it still needs to be done for postgres and mysqli.
I'm not totally sure if I'm going to keep it there as default, or find some way to run either. Have to play for another evening to decide that, I suppose.
Basically, using adodb lite saves about 400-500k per page load. Not too bad. That puts us in the 3.75 range on a cached page, uncached it's at like 4.3-4.5.
It required some tweaking of copying some missing functions regarding sequences over from adodb. I did it for mysql, but it still needs to be done for postgres and mysqli.
I'm not totally sure if I'm going to keep it there as default, or find some way to run either. Have to play for another evening to decide that, I suppose.
Re: memory problems?
I've found a workaround for people who's provider has limit PHP to 8mb. 
Just add the following line to config.php.
ini_set('memory_limit','32M');
It worked for me.

Just add the following line to config.php.
ini_set('memory_limit','32M');
It worked for me.

Re: memory problems?
Hmm, I'm wondering that php.ini can overwrite with this simple line. It's a security risk I think ...ID2020 wrote: Just add the following line to config.php.
ini_set('memory_limit','32M');
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: memory problems?
Hmmm, this could be a config thing, and possibly something in site preferences so though we allow the admin to set the memory limit, it is nice and clear and obvious that we are doing so.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Re: memory problems?
Setting a limit for application is not the problem
, the problem is a application can overwrite server preferences. The application can also be a worm or other ugly things ...
... I think too it must be a lightheaded server configuration.

... I think too it must be a lightheaded server configuration.