Page 1 of 1

[Evaded] PHP.exe Freezes

Posted: Sat Feb 21, 2004 8:54 am
by Shendemiar
I have no errors in my php code, all goes fine with debugger.

But when i browse my pages on localserver (with different browsers) it freezes! Browser is just waiting for something... When i kill the php.exe from taskmanager, the page flashes to the browser as complete and as it's meant to be.

The pages have several includes, and it returns "complex" page with many tables inside tables, quite many links and img src's. The page works when the query inside returns few resultrows, but when it returns several, it freezes.

I've experimented that reducing columns written on page allows more rows shown, or less rows shown allows more columns shown... Also removing some printcell functions and echoing them manually allowed some more rows to be displayed, so it might be memory related?

Php.exe uses usually ~6M. Is it much, low, normal?

I'm totally out of ideas, whats this all about?

Posted: Sat Feb 21, 2004 9:07 am
by Straterra
What system? We need speeds, RAM, HD space, HD speed, OS...

Posted: Sat Feb 21, 2004 9:30 am
by Shendemiar
What system? We need speeds, RAM, HD space, HD speed, OS...

AMD ~2100
Windows XP professional SP1
Apache HTTP Server Version 1.3.28

System Windows NT KANAKONE 5.1 build 2600
Build Date Nov 2 2003 23:43:42
Server API CGI/FastCGI
Virtual Directory Support enabled
Configuration File (php.ini) Path C:\WINDOWS\php.ini
PHP API 20020918
PHP Extension 20020429
Zend Extension 20021010
Debug Build no
Thread Safety enabled
Registered PHP Streams php, http, ftp, compress.zlib

mysql
MySQL Support enabled
Active Persistent Links 0
Active Links 1
Client API version 3.23.49

Posted: Sat Feb 21, 2004 9:36 am
by Shendemiar
C: (partition on HD 1, 20G) Fat32
OS, Server, PHP, Mysql, Coding software
Free 2,2G

D: (partition on HD 2, 20G) Fat32
Project files, Localserver's homedir
Free 4G

Posted: Sat Feb 21, 2004 8:16 pm
by Straterra
Ram?

Posted: Sun Feb 22, 2004 1:00 pm
by Shendemiar
Straterra wrote:Ram?
512M

Posted: Sun Feb 22, 2004 3:09 pm
by Straterra
Hmm...maybe you are running a program in the background that has a memory leak or something.
I am running a 150mhz Intel with 16mb Ram (Win98SE) and it runs fast as my Italian Greyhound.

Posted: Sun Feb 22, 2004 4:50 pm
by Shendemiar
Taskmanager shows used mem of all processes... no sign of abnormal memory usage...

Does the browser send something to the server to tell it's received the file? Do browser and the php process communicate in any way other than the first request?

Posted: Sun Feb 22, 2004 5:02 pm
by Shendemiar
How is it even possible the php.exe to remain as as an open process? I coud have 100 of them in my process list! they use no CPU, or have no anykind of activity.

Some server- or php settings must be wrong... Woudnt all servers be full of these "processes" if this was possible due to code-error?

Posted: Sun Feb 22, 2004 6:49 pm
by Straterra
How do you have PHP set up in Apache? As a module?

Posted: Sun Feb 22, 2004 7:00 pm
by Shendemiar
It was.. it was... hmm... Cant remember, but it was the easier way to set it up. Where can i find it out?

Posted: Sun Feb 22, 2004 7:16 pm
by Straterra
Look throught your Apache conf file, and look at the instructions on php.net on how to setup PHP. And just check your conf against the instructions.

Posted: Sun Feb 22, 2004 7:23 pm
by Shendemiar
Its as CGI-bin

Posted: Sun Feb 22, 2004 8:44 pm
by Shendemiar
I got it finally!

It was errors in code, but toally elsewhere. In fact i dont understand it at all, but at leaft i got rid of it. Phuw!