Automatic restart

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Automatic restart

Postby x3x3 » 02. August 2012 18:14

Hello.
My OS is Windows7 and I use xampp 1.7.4. Is there any way to restart my Apache automatically?
The point is that process httpd.exe has memory leak. After some amount of page requests it's using a lot of RAM and I afraid that once it will crash if I don't restart it. But I can't monitor that always. So, I need an automatization.

In the internet I read it is Apache 2 problem, but I can't downgrade it.

And it also not my php-script problem. I tried this code
Code: Select all
<?php echo "Hello World";?>
This grab memory too and doesn't free it till restart the httpd.
x3x3
 
Posts: 1
Joined: 02. August 2012 17:49
Operating System: Win7

Re: Automatic restart

Postby Altrea » 02. August 2012 20:51

Hi x3x3,

x3x3 wrote:Is there any way to restart my Apache automatically?

Sure! You could graceful restart your apache with a small batch and start this batch with your Windows task scheduler.

best wishes,
Altrea
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 118 guests