Website loading untill initial script finnishes

Hi, i have a highly used server.

I have some long scripts that take a while to process a huge mysql database. I have found then in 1 browser, i run the script and while it is loading i cannot view any other parts of the site until the script finishes, it seems that all the requests go off, but they don't get served until the initial script finishes.

i thought this may be a server wide issue, but it is not. If i use another computer i can view the site fine, even on the same computer with a different browser i can navigate fine, while the script still loads. I think it much limit the number of requests per session.

Is this correct? is there any way to configure this to allow for 2-3 other requests per session?

It is really bad that when i am on the phone to a client, i have just run a long report, but cannot use the site or follow what they are saying until the page has loaded?

Chris

7 Replies

Look for a "max parallel connections to server" setting (in the browser), and increase it. A "nice" value is 2, but in cases like this you will probably need at least 4. If that's not that, check proxy settings. in that browser.

Opera: Tools | Preferences | Advanced | Network.

Firefox: about:config in title bar, type "http.max" without quotes in the search box.

Chrome and IE: No Idea.

Elinks: Setup | Option Manager | Connections.

> Look for a "max parallel connections to server" setting, and increase it. A "nice" value is 2, but in cases like this you will probably need at least 4. If that's not that, check proxy settings.

Do you have MaxClientsPerHost (or equivalent) set in your server configuration?

thanx for the quick reply

i have this in my httpd.conf (i am using plesk). I couldnt find the variables you mentioned in there.

StartServers 8

MinSpareServers 5

MaxSpareServers 20

ServerLimit 256

MaxClients 256

MaxRequestsPerChild 4000

StartServers 2

MaxClients 150

MinSpareThreads 25

MaxSpareThreads 75

ThreadsPerChild 25

MaxRequestsPerChild 0

@rsk:

Look for a "max parallel connections to server" setting (in the browser), and increase it. A "nice" value is 2, but in cases like this you will probably need at least 4. If that's not that, check proxy settings. in that browser.

in firefox i have:

network.http.max-connections;30

network.http.max-connections-per-server;15

network.http.max-persistent-connections-per-proxy;8

network.http.max-persistent-connections-per-server;6

that seems plenty,

… That'll teach me to think twice instead of editing the post afterwards.

I asked for MaxClientsPerHost because I missed that the "other browsers" were on the same machine. And thus, you're interested in the parallel connections setting in thatonebrowser (see above.) If they're set to large values, check if that single one isn't set to use proxy (or transparently hooked by an antivirus or something).

facepalms Post racing? :roll:

I am not suing a proxy, nor is there a proxy setup. I would have through that this was server side configuration not a browser one?

No, if other browsers from the same computer work correctly, it's a misconfiguration of the browser with about 95% probability.

Attention: text below is NOT to be taken seriously.

Well, unless you have some evil code set up on the webserver, that searches the User-Agent string for the word "Firefox" and introduces limits in that case… but you would notice you set such thing up, right?

Look into running a PHP script 'CLI' (if you are using PHP).

And the easy way to fix your current problem is to use two different browsers are once… e.g. open Internet Explorer (bletch) in a clientphoneemergency.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct