473,386 Members | 1,763 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Can only run 2 windows at a time?

Hi,

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).

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?

Thanks
Glenn
Apr 8 '07 #1
3 1272
On Sun, 08 Apr 2007 18:25:41 GMT, Glenn <ba******@frontiernet.netwrote:
>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 :: an**@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Apr 8 '07 #2
On Sun, 08 Apr 2007 22:09:51 +0100, Andy Hassall <an**@andyh.co.uk>
wrote:
>On Sun, 08 Apr 2007 18:25:41 GMT, Glenn <ba******@frontiernet.netwrote:
>>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.
Yeah, I'll have to say that I have about 5 SUM's in the Select
statement :D prolly helping the slowdown, eh?
>>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.
Yes: "outputting data as it appears in the logfile, but
keeping the same HTTP connection open and flushing? "
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.
Was hoping to do this in the next version.. glad that you mentioned
it, so that I know that I'm going decent direction :)
>Andy Hassall :: an**@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Thanks
Glenn
Apr 9 '07 #3
On 11 Apr 2007 10:55:53 GMT, David Gillen <Be****@RedBrick.DCU.IEwrote:
>Andy Hassall said:
>On Sun, 08 Apr 2007 18:25:41 GMT, Glenn <ba******@frontiernet.netwrote:
>>>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.

There is a registry hack which works around this, I can't recall exactly which
key needs changing though.
There is, but it shouldn't be done, as it's somewhat antisocial - the limit is
there for a reason.

HTTP/1.1, sec. 8.1.4, para. 6: "A single-user client SHOULD NOT maintain more
than 2 connections with any server or proxy."

Anyone exceeding this should contribute to the offical fund for wigs for
admins who have torn their hair out due to their server's load suddenly
increasing.
Andy Hassall :: an**@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Apr 11 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Wolfgang Kaml | last post by:
Hello All, I have been working on this for almost a week now and I haven't anything up my sleeves anymore that I could test in addition or change.... Since I am not sure, if this is a Windows...
2
by: Ken Lindner | last post by:
I have a need to become familiar with SQL Server 2000 for work. Needless to say I am new to SQL Server any version, but not IT in general. My employer has provided me with the SQL Server 2000...
383
by: John Bailo | last post by:
The war of the OSes was won a long time ago. Unix has always been, and will continue to be, the Server OS in the form of Linux. Microsoft struggled mightily to win that battle -- creating a...
0
by: Nick White [MSFT] | last post by:
Hello fellow Microsoft Windows Mobile and Embedded enthusiasts: I invite you to peruse the list below of upcoming technical chats and Webcasts offered by the Windows Mobile and Embedded Devices...
3
by: Chris Paul | last post by:
I'm having trouble with PHP & PostgreSQL/OpenLDAP/Apache on Windows. I've set this up countless times on BSD (piece of cake) but I'm trying to do this on Windows now so that my developer can work...
1
by: Vinod Sadanandan | last post by:
Cross Platform Migration An Unproblematic Approach (Windows-UNIX ) Oracle 10\11g The principal restriction on cross-platform transportable database is that the source and destination platform...
8
by: Theo v. Werkhoven | last post by:
hi, In this code I read out an instrument during a user determined period, and save the relative time of the sample (since the start of the test) and the readback value in a csv file. #v+...
0
AmberJain
by: AmberJain | last post by:
Windows Autorun FAQs: Description NOTE- If you are unfamiliar with the concept of autoruns, then read "Windows Autorun FAQs: Overview". Que-1: How can I safely remove or edit the autorun...
0
AmberJain
by: AmberJain | last post by:
Windows Autorun FAQs: Programs dealing with autoruns Linked from the Original article- "Windows Autorun FAQs: Description". Que: Can you list programs that help me to view/modify the autoruns...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.