[Evaded] PHP.exe Freezes

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
Shendemiar
Forum Contributor
Posts: 404
Joined: Thu Jan 08, 2004 8:28 am

[Evaded] PHP.exe Freezes

Post 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?
Last edited by Shendemiar on Sun Feb 22, 2004 8:43 pm, edited 1 time in total.
Straterra
Forum Regular
Posts: 527
Joined: Mon Nov 24, 2003 8:46 am
Location: Indianapolis, Indiana
Contact:

Post by Straterra »

What system? We need speeds, RAM, HD space, HD speed, OS...
Shendemiar
Forum Contributor
Posts: 404
Joined: Thu Jan 08, 2004 8:28 am

Post 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
Shendemiar
Forum Contributor
Posts: 404
Joined: Thu Jan 08, 2004 8:28 am

Post 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
Straterra
Forum Regular
Posts: 527
Joined: Mon Nov 24, 2003 8:46 am
Location: Indianapolis, Indiana
Contact:

Post by Straterra »

Ram?
Shendemiar
Forum Contributor
Posts: 404
Joined: Thu Jan 08, 2004 8:28 am

Post by Shendemiar »

Straterra wrote:Ram?
512M
Straterra
Forum Regular
Posts: 527
Joined: Mon Nov 24, 2003 8:46 am
Location: Indianapolis, Indiana
Contact:

Post 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.
Shendemiar
Forum Contributor
Posts: 404
Joined: Thu Jan 08, 2004 8:28 am

Post 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?
Shendemiar
Forum Contributor
Posts: 404
Joined: Thu Jan 08, 2004 8:28 am

Post 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?
Straterra
Forum Regular
Posts: 527
Joined: Mon Nov 24, 2003 8:46 am
Location: Indianapolis, Indiana
Contact:

Post by Straterra »

How do you have PHP set up in Apache? As a module?
Shendemiar
Forum Contributor
Posts: 404
Joined: Thu Jan 08, 2004 8:28 am

Post 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?
Straterra
Forum Regular
Posts: 527
Joined: Mon Nov 24, 2003 8:46 am
Location: Indianapolis, Indiana
Contact:

Post 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.
Shendemiar
Forum Contributor
Posts: 404
Joined: Thu Jan 08, 2004 8:28 am

Post by Shendemiar »

Its as CGI-bin
Shendemiar
Forum Contributor
Posts: 404
Joined: Thu Jan 08, 2004 8:28 am

Post 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!
Post Reply