| |
| |
| |
|
Page: 1 2
Comments:
<0> Hi Guys im currently using Apache 2.1 on a Intel Xeon Dual 3.0GHz with a 100/100mbit connection and finding issues when I recieve over 250 connections to my apache service on Freebsd 6. <0> Would someone be kind enough to help me with a correct configuration to support more than this many connections on Apache 2.1 , thank you. <0> I forgot to say that there is a long wait period for the next connection once there are so many. This wait period can take over a minute. <1> PHP? <2> sounds like you're hiting MaxClients <2> ServerLimit 2048 <2> MaxClients 2048 <0> where do i place these? <0> it said in the worker mpm's that increasing this over 256 causes an error <1> depending what you're doing you might want to turn off persistant connections <0> do i need to modify and re-compile anything <0> MugginsM on which , apache/php? <1> because that can blow the number of connections way high with idle browsers <1> apache <0> MugginsM where abouts :) <0> i have keepalive off
<0> Off <1> that's the one <1> hrm <1> another limit is sometimes the OS has a limit on the number of connections a process has (which is why maxclients defaults to a limit of 256) <0> I know that apache can handle more useres, im aware that configurations must be made, however my configurations use MPM's i dont understand how to just set correctly the limits to higher than default <0> maxclients is set 256, if i adjust this variable it makes a error <1> I use mpm_worker which is giving me several processes, each with 250 connections. But I don't think that works so well with php <0> however mpm_worker_module allows 512 <0> how do i set module i want to use? <0> What's most annoying is I get this problem only from time to time but it limits to what my site can really become, it stops me gaining more members, visitor hits, etc.. im limited to around 400,000 page hits a day due to this :( <1> yeah, a few users getting a bad experience can start to hurt too <0> Yep <0> As im aware the most important part of your site is the user base, and making sure they are happy.. it's awkward... i've thought about running two apache servers But knowing it could hold more with a little config would save me h***le, its a xeon for god sakes :) <1> I can't see where I set the MPM in my config files <0> maybe worker is a default <1> I think prefork is default, <1> some PHP apps don't work well at all with worker <0> prefork is suppose to handle the connections initialy then the worker? <1> prefork sets a bunch of processes ready to handle one connection each <0> if im right. <0> then where does it go? <1> worker sets a bunch of processes each able to handle many connections (via threads) <0> old apache configs were better lol <0> Any documents on the Modules, it's really annoying me <0> Also can we talk in PM to keep this channel clean? <1> "Once the server has been compiled, it is possible to determine which MPM was chosen by using ./httpd -l." <0> What did you set your startservers to ? it's default is 5 <0> i was told in the past to up it to 20 <1> startservers doesn't matter too much, it'll add more <0> am i right that each server can hold 256 clients?? <1> 20 helps, but won't make any difference once you hit 256 <0> 256 thruough 20 servers? <1> with prefork each one can handle one client <1> with worker each one can handle lots <0> damn <1> but worker might cause trouble with php <0> this is really annoying, how do i set the worker? <0> I'm willing to test it <1> http://httpd.apache.org/docs/2.0/mpm.html <1> says you have to compile it in <0> ah bollox :P <0> unix is prefork <0> as im on freebsd 6 esentialy unix, then i use prefork? <1> it defaults to prefork because it's the safest <1> you can recompile to change it, but it may break PHP <0> well i hope to configure what i got right now, if i have to ill recompile the port <0> probably move on to apache 2.2 if that <0> can you help me with the optimal settings for more users on the prefork please? <1> actually 2.2 has mpm_event which helps a lot. dunno if it's stable enough to recommend it though <0> isnt it a stable build <1> yeah, but mpm_event is marked as experimental <0> I see <0> what does it do <1> it puts all the persistant connections onto one process so you can do persistant connections but it doesn't waste all the servers <1> I'm afraid I don't know how to tune prefork because I've never had a machine with enough memory to run it :) <0> can i paste what i got right now? <1> I don't think it'd help <0> it has explainations etc <1> if max clients is limited to 256 I'm not sure you really want to go above it <0> take a look it may help you to guide me <0> all i want is 1000's of connections
<0> but i find over 250 it becomes limited <0> I mean it's good news that i even get 250 connections + <1> the other option is try and deal with the connections faster <1> are you sending large files or is it lots of small request stuff? <0> And if my site could really be getting 2,500 connections but is limited to 250 then i'm rich maybe <0> I'm sending html requests <0> images are sent on another server <0> suffering similar issues(but understandbly) <0> as there is obviously alot more images on one page, the priority is the web server serving content <1> if it's reasonably static stuff something like a cache in front would help a lot <1> the squid cache has a "httpd accelerator" mode <0> Well its a dynamic site. <0> php/mysql dynamic <0> currently it seems faster now i set startservers to 20 <0> but i wont know until it shows 300+ <1> heh heh <1> one option is to try and speed up each response so you don't need so many at once <0> imagine it , half a million page views a day :D, and i could have 1-2 million maybe? <1> depends where the bottleneck is, probably in the php/mysql link <0> muggins the page load time is 0.0x seconds <0> Theres no real bottleneck in the page times, it's just the number of active connections and apache's prefork limitation as it appears <0> mysql is working just fine with no slow downs <1> oh, how much memory is in the thing? <0> 4gig <1> because each connection will be taking up some <1> that's probably enough then <0> with 500gig sata space <1> you can raise MaxClients by recompiling <0> dual xeon 3.0ghz 888fsb <0> 100/100mbit connection <0> This baby costs, but its worth while <0> my host also threw in unlimited bandwidth <0> What can i say if this doesn't do it , what will lol <1> nice, bandwidth is good <0> ive been a member for a year <0> it's not some cheap host deal saying they have unlimited when their on a cap, they own their own ip's etc <0> And whats more they reboot free, and even configure stuff for me when i ask them :) <0> Even go low as to configure mail server etc <1> a good host is worth sticking with <0> Yes a year now and no downtime <0> and when there is downtime its a hardware failure <0> like cpu fan <0> and fixed within minutes. <0> If only they knew much about traffic :D <0> i probably earn more than they make lol <0> ironic :) <0> Damn it can i pay someone some money on paypal to help me fix the limitations?! <1> another option is run multiple copies of apache, on different ports <1> gets a bit messy <0> ive heard about it <0> then setting up a proxy <0> and having it distribute them? <1> yes <0> :) im listening <1> it'll chew memory but you probably have enough <0> ive got over 1-2 gigs left <0> and i run mysql php and apache on this baby <0> and you want to know how many QPS i do on mysql? <1> another option is use lighttpd instead of apache <1> I haven't used it for PHP so can't vouch for that, but I use it for Python and it's really rather quick <0> mysqld 5.0.9-beta up 4 day(s), 4:15 hrs <0> 4 threads: 2 running, 97 cached. Queries/slow: 39.9M/0 Cache Hit: 99.98% <0> Opened tables: 0 RRN: 4.7K TLW: 134.4K SFJ: 0 SMP: 0 QPS: 313 <1> and takes large numbers of connections <0> ;) you like that?? <1> nice machine <0> you know that alone doing that is running at like 0.30 load <0> cpu idle around 90% <0> and im sure its only using one processor, when i pushed it 50% cpu load on a 100% WCPU status in top, kinda prooved my point that its really only using CPU 0 <0> maybe i have to recompile for two cpu's <1> FreeBSD should take care of that <1> apache should just use em <0> :) it doesn't appear to
Return to
#apache or Go to some related
logs:
What do you catch at a stazione ferroviaria in Italy
zebra photographs polina sery #ubuntu #linux #apache vyte undernet mailer send to inbox javascript is null or is not an object
trailertown, florida
|
|