You are here: Re: Can only run 2 windows at a time? « PHP Programming Language « IT news, forums, messages
Re: Can only run 2 windows at a time?

Posted by Andy Hassall on 04/08/07 21:09

On Sun, 08 Apr 2007 18:25:41 GMT, Glenn <bagsmode@frontiernet.net> wrote:

>I'm using Apache server, PHP (ver4) driven pages, querying a MySQL DB.
>I'm trying to monitor/tail
>some log files and perform queries to
>1) insert the new data,
>2) verify that the data is within certain constraints.
>
>Each query is taking a full second to perform (is that normal? I have
>about 100k records at the moment).

"Normal" depends on how much work you're doing on the data - just a number of
rows isn't enough to say.

>Plus, having an issue with only able to tail two files...?
>I can open two Internet Explorer windows and tail two files; but as
>soon as I try to open a 3rd, nothing happens until I get out of one of
>the others.
>
>Any idea to why I can only do 2 at a time?

Browsers will only open a limited number of connections to a server at the
same time, to avoid thrashing the server. You're most likely seeing this limit.
How are you handling this - outputting data as it appears in the logfile, but
keeping the same HTTP connection open and flushing? That will hit the
connections limit.

An alternative is to have the browser poll the page for new information, e.g.
with a refresh header (or meta refresh equivalent), or Javascript timer.
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация