Re: [PHP] Running processes in windows
On Sun, April 29, 2007 7:54 am, Nathan Wallis wrote: I have an application in windows that I am running with a PHP page using exec (start.. I am wondering as to the efficiency of such a statement and how taxing it is on the server. If multiple people access a page with such a statement, what toll does it take on the server and is there a better way to manage calls to the server side executable? When this statement is called a command prompt window appears for the duration of the execution. I am guessing it would be possible to crash the server if thousands of these processes we created at around the same timejust anyone experience would be greatly appreciated. I dunno for sure, but it will probably crash long before you get thousands of those suckers going at once... Use ab (errr, that's an Apache benchmark tester) and find out. Windows guys seem to like something called supersmack or somesuch over ab, but whatever. You can get the DOS window to not appear *somehow* but I forget what it is... Thanks. Nathan -- Some people have a gift link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Running processes in windows
Howdy. I have an application in windows that I am running with a PHP page using exec (start.. I am wondering as to the efficiency of such a statement and how taxing it is on the server. If multiple people access a page with such a statement, what toll does it take on the server and is there a better way to manage calls to the server side executable? When this statement is called a command prompt window appears for the duration of the execution. I am guessing it would be possible to crash the server if thousands of these processes we created at around the same timejust anyone experience would be greatly appreciated. Thanks. Nathan
Re: [PHP] Running processes in windows
On 4/29/07, Nathan Wallis [EMAIL PROTECTED] wrote: Howdy. I have an application in windows that I am running with a PHP page using exec (start.. I am wondering as to the efficiency of such a statement and how taxing it is on the server. If multiple people access a page with such a statement, what toll does it take on the server and is there a better way to manage calls to the server side executable? When this statement is called a command prompt window appears for the duration of the execution. I am guessing it would be possible to crash the server if thousands of these processes we created at around the same timejust anyone experience would be greatly appreciated. Thanks. Nathan Switch to linux. If you still want to stick to windows. I believe it is possible to hide the command window, that would help also (Or was it a patch in PHP-DEV?). Windows won't be able to handle thousands of such processes. Even if you have a really fast server, more then hundred processes is too much for windows. It might still continue to run, but then it would be extremely slow. If you're really expecting 1000s of requests, you should definitely switch to linux. Tijnema -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Running processes in windows
Nathan Wallis wrote: Howdy. I have an application in windows that I am running with a PHP page using exec (start.. I am wondering as to the efficiency of such a statement and how taxing it is on the server. If multiple people access a page with such a statement, what toll does it take on the server and is there a better way to manage calls to the server side executable? When this statement is called a command prompt window appears for the duration of the execution. I am guessing it would be possible to crash the server if thousands of these processes we created at around the same timejust anyone experience would be greatly appreciated. I think you can probably stop that from happening (no idea how - maybe ask the php-windows list), but it depends on what happens in that command prompt. If you're doing a simple thing, then it won't do much. If you're doing a database dump or something else I/O and/or processor intensive, of course it's going to take a toll on the server (regardless of the operating system). -- Postgresql php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php