This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » support » Installation and setup » Memory exhausted [topics merged]
Memory exhausted [topics merged] [message #100949] Tue, 15 June 2010 07:56 Go to next message
brijeshsir08  is currently offline brijeshsir08
Messages: 7
Registered: June 2010
Junior Member
Hi Friend...

I m in problem in symfony framework..
Problem is that
if in cmd we write...
>symfony -v

then it generate error ... error is that
Fatal error: Allowed memory size of 262144 bytes exhausted (tried to allocate 81
92 bytes) in E:\xampp\php\PEAR\symfony\command\sfSymfonyCommandApplicatio n.class.php on line 1

Please give me solution of this problem ...
I have no idea why this problem is arise.

Thanks & Regards
Brijesh Kumar

[Updated on: Tue, 15 June 2010 08:04]

icon8.gif  Fatal Error Of Memory Exhausted [message #100950 is a reply to message #100949 ] Tue, 15 June 2010 08:25 Go to previous messageGo to next message
brijeshsir08  is currently offline brijeshsir08
Messages: 7
Registered: June 2010
Junior Member
Hi

I have a great problem in symfony frameork.

Problem is that..

somedays before.. when i requested to open a page in project which makes symfony, it gave fatal error of memory exhausted in symfony\view\sfPHPView.class.php where ob_get_clean() method called, at that time i have use ini_set("memory_limit",'1024M');
and that problem was solved.. but in these days this problem again generated and this time Fatal error of memory exhausted is showing in lib\om\Basepeer classes of admin user and for general user it is showing fatal error in symfony\action\sfaction classes.

please give me solution of this problem and give why this problem come back .

it is any caching problem...

Regards
brijesh
Re: Memory exhausted [topics merged] [message #100958 is a reply to message #100949 ] Tue, 15 June 2010 11:08 Go to previous messageGo to next message
halfer  is currently offline halfer
Messages: 9535
Registered: January 2006
Location: West Midlands, UK
Faithful Member
Merged duplicate topics.


Remember Palestine
Re: Memory exhausted [topics merged] [message #100959 is a reply to message #100949 ] Tue, 15 June 2010 11:35 Go to previous messageGo to next message
halfer  is currently offline halfer
Messages: 9535
Registered: January 2006
Location: West Midlands, UK
Faithful Member
In your first post, you appear to have too little memory allocated, and in the second, way too much. For an average PHP application I would say that 32M or 64M is plenty, with perhaps more on the command line for building your model.

This value is best set in your php.ini, rather than using ini_set in your code. The key you need to set is called "memory_limit", try setting it to `64M`?


Remember Palestine
Re: Memory exhausted [topics merged] [message #100967 is a reply to message #100958 ] Tue, 15 June 2010 13:40 Go to previous messageGo to next message
brijeshsir08  is currently offline brijeshsir08
Messages: 7
Registered: June 2010
Junior Member
sir I have already set memory_limit in php.ini file to 512M but problem is not solved to changing in php.ini file.

So please give me another solution.




Thanks

Brijesh
Re: Memory exhausted [topics merged] [message #100982 is a reply to message #100949 ] Tue, 15 June 2010 15:15 Go to previous messageGo to next message
halfer  is currently offline halfer
Messages: 9535
Registered: January 2006
Location: West Midlands, UK
Faithful Member
I think I will give you the same solution Very Happy

512M is too large for most purposes, but I think you may be editing the wrong php.ini file - the one you are editing may be for Apache, not your CLI (I am assuming the problem is, as per your first post, on the command line).

Do this to find out what your CLI memory limit is:

php -i > info.txt
edit info.txt

Search for "memory_limit" and if it is not what you expect, edit the ini file named in the "Loaded configuration file" section.


Remember Palestine
Re: Fatal Error Of Memory Exhausted [message #101092 is a reply to message #100950 ] Thu, 17 June 2010 07:06 Go to previous message
apulmca2k4  is currently offline apulmca2k4
Messages: 123
Registered: August 2008
Location: New Delhi, India
Senior Member
Can I check you schema.yml?

Yesterday,

I got the same issue but when I checked my schema.yml, I found that there was one wrong attribute passed. I removed that & not all is fine. So, let me check your schema.yml file.


Apul Gupta
http://in.linkedin.com/in/apulgupta
Previous Topic:Installing XDebug in Mac OS X Leopard w/ MAMP
Next Topic:how connect symfony to sql server
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software