Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Wed Mar 24, 2010 9:25 am 
Offline
Senior Newbie

Joined: Tue Dec 22, 2009 11:11 am
Posts: 8
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


Top
   
 Post subject:
PostPosted: Wed Mar 24, 2010 9:28 am 
Offline
Senior Member
User avatar

Joined: Tue Nov 24, 2009 1:59 pm
Posts: 362
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.


Top
   
 Post subject:
PostPosted: Wed Mar 24, 2010 9:39 am 
Offline
Senior Newbie

Joined: Tue Dec 22, 2009 11:11 am
Posts: 8
Quote:
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 <somevalue> (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.

<IfModule prefork.c>
StartServers 8
MinSpareServers 5
MaxSpareServers 20
ServerLimit 256
MaxClients 256
MaxRequestsPerChild 4000
</IfModule>

<IfModule worker.c>
StartServers 2
MaxClients 150
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule>


Top
   
 Post subject:
PostPosted: Wed Mar 24, 2010 9:41 am 
Offline
Senior Newbie

Joined: Tue Dec 22, 2009 11:11 am
Posts: 8
rsk wrote:
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,


Top
   
 Post subject:
PostPosted: Wed Mar 24, 2010 9:42 am 
Offline
Senior Member
User avatar

Joined: Tue Nov 24, 2009 1:59 pm
Posts: 362
... 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 _that_one_browser_ (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:


Top
   
 Post subject:
PostPosted: Wed Mar 24, 2010 10:57 am 
Offline
Senior Newbie

Joined: Tue Dec 22, 2009 11:11 am
Posts: 8
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?


Top
   
 Post subject:
PostPosted: Wed Mar 24, 2010 2:16 pm 
Offline
Senior Member
User avatar

Joined: Tue Nov 24, 2009 1:59 pm
Posts: 362
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?


Top
   
 Post subject:
PostPosted: Wed Mar 24, 2010 2:20 pm 
Offline
Senior Member

Joined: Thu Oct 08, 2009 5:07 pm
Posts: 99
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.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group