Re: Performance: php-gtk vs java (fwd)
| From: | An-tonio | Date: | Sun, 16 Jan 2005 21:56:47 +0000 |
| Subject: | Re: Performance: php-gtk vs java (fwd) | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-5478@lists.php.net to get a copy of this message | ||
If php have this kind of problem with memory in a long run... project like nanoweb (http://nanoweb.si.kz/) have not sense... a web server must run a long, long, long time. Didn't developer of nanoweb take care about this problem ?.
Steph wrote:
Ah, so it _is_ about memory leaks, that's what I didn't understand. But is it OK to have memory leaks? I thought the way the PHP language works is supposed to take care of such issues as far as the programmer isconcerned.Basically, what you're saying is that a PHP process that runs for a long time may very well collapse due to memory exhaustion. I am currently intheprocess of basing a project on such long term running PHP scripts. ShouldIbe concerned and look for an alternative implementation?In a word, yes, unless you're willing to look into ways of working around the limitation, as 'bradm' did earlier in this thread. PHP (even PHP 5) was designed primarily for the web, and doesn't have (or need) a way to free up resources as such. The Zend Engine isn't about to be redesigned to optimize PHP as a general programming language. So you either stay with PHP and work around the issues there, or you use a language that doesn't have the Internet as its primary modus operandi. - Steph