Pages: Previous12
Current Page: 2 of 2
Re: Fatal error (Out of memory)
Posted by: RiggsFolly (---.ppp.as43234.net)
Date: February 21, 2013 09:59AM

Yes.

Use the standard windows services mechamism.

control panel -> Administrative Tools -> Services

Find the service called 'wampapache', right click -> Properties

Select the Recovery Tab and set 'First Failure', 'Second Failure' and 'Subsequent Failures' dropdowns to 'Restart the Service'

You could also, if you have not already, set the 'Startup type' on the General Tab to 'Automatic' for wampapache and wampmysql and then they would both start automatically at boot time rather than needing to be started by the wampmanager!

Options: ReplyQuote
Re: Fatal error (Out of memory)
Posted by: ahmadii (2.144.229.---)
Date: February 23, 2013 06:44AM

RiggsFolly Wrote:
-------------------------------------------------------
> Yes.
>
> Use the standard windows services mechamism.
>
> control panel -> Administrative Tools -> Services
>
> Find the service called 'wampapache', right click
> -> Properties
>
> Select the Recovery Tab and set 'First Failure',
> 'Second Failure' and 'Subsequent Failures'
> dropdowns to 'Restart the Service'
>
> You could also, if you have not already, set the
> 'Startup type' on the General Tab to 'Automatic'
> for wampapache and wampmysql and then they would
> both start automatically at boot time rather than
> needing to be started by the wampmanager!


I've done the same as u said
but the problem is happening sad smiley(
Wamp server crashed and it didn't restart.
i use windows server 2008 r2 on a 64 bit architecture server.


[23-Feb-2013 04:29:23 UTC] PHP Fatal error: Out of memory (allocated 524288) (tried to allocate 393216 bytes) in C:\wamp\www\index.php on line 501
[23-Feb-2013 04:29:24 UTC] PHP Fatal error: Out of memory (allocated 524288) (tried to allocate 393216 bytes) in C:\wamp\www\index.php on line 501

Options: ReplyQuote
Re: Fatal error (Out of memory)
Posted by: RiggsFolly (---.ppp.as43234.net)
Date: February 23, 2013 03:03PM

I have just done a few local tests and while its easy to cause a large array to crash a script it never actually brings Apache down with it.

Can you post what you have in your php.ini file for this parameter please

memory_limit = ??? What does yours say?

Options: ReplyQuote
Re: Fatal error (Out of memory)
Posted by: ahmadii (2.145.146.---)
Date: March 03, 2013 08:04AM

; Maximum amount of memory a script may consume (128Mcool smiley
; [php.net]
memory_limit = 128M


is there any way to restart wamp manually through any bat file?

Options: ReplyQuote
Re: Fatal error (Out of memory)
Posted by: RiggsFolly (---.as13285.net)
Date: March 04, 2013 11:14AM

RE Restart: Yes of course.

Its Apache you wan to restart, not WAMP, but 'wampapache', which is the name of the service is a standard windows service so you can use these standard windows command line commands to start and stop any service.

>net stop wampapache
>net start wampapache

RE: Memory limit and apache crashing:

I was hoping you had something wierd on the memory_limit parameter but that one is ok.

The only other option would be to send me a copy of your index.php ( if thats the one that appears to be crashing the server) so I can give it the once over and maybe try it locally here to see if I can re-produce the error and therefore home in on the issue.

Options: ReplyQuote
Pages: Previous12
Current Page: 2 of 2


Sorry, only registered users may post in this forum.