XFileSharing Pro - How to configure Apache ?

Powerfull XFileSharing version

Moderator: admin

Message
Author
200299
Posts: 28
Joined: Feb 17, 2011 5:04 pm

How to configure Apache ?

#1 Postby 200299 » Feb 09, 2012 5:33 pm

Hi
How best to set up apache to 500 users online?

You advise someone? I still have a message
*500 time out*

You can not upload and download

Code: Select all

    StartServers          3
    MinSpareServers       2
    MaxSpareServers      10
    ServerLimit         550
    MaxClients          550
    MaxRequestsPerChild   4000

okpa
Posts: 120
Joined: Apr 08, 2011 12:37 pm

#2 Postby okpa » Feb 09, 2012 8:46 pm

try
Timeout 700
KeepAlive off
MaxKeepAliveRequests 150
KeepAliveTimeout 5
StartServers 20
MinSpareServers 5
MaxSpareServers 15
MaxClients 256
MaxRequestsPerChild 500

200299
Posts: 28
Joined: Feb 17, 2011 5:04 pm

#3 Postby 200299 » Feb 09, 2012 10:00 pm

its not good

still connecting and download error :-(

ikky
Posts: 14
Joined: Jan 30, 2012 2:08 pm

#4 Postby ikky » Feb 10, 2012 2:18 pm

What is your server?

200299
Posts: 28
Joined: Feb 17, 2011 5:04 pm

#5 Postby 200299 » Feb 10, 2012 2:29 pm

I have one main server and two file servers

HP ProLiant DL120

Debian 6 32bit
16GB RAM
4 HDD x 1,5 TB SATA3, 7200rpm, 6Gb/s, 64MB cache
connection 2Gbit/s

one moment connection 600-800 users/one file server

traffic daily 5TB - 10 TB from one server

Dulci
Posts: 112
Joined: Jun 10, 2010 6:45 am
Location: Netherlands

#6 Postby Dulci » Feb 10, 2012 3:55 pm

where did you buy you servers "?

200299
Posts: 28
Joined: Feb 17, 2011 5:04 pm

#7 Postby 200299 » Feb 10, 2012 5:01 pm

Dulci wrote:where did you buy you servers "?


how this relates to setting?

Dulci
Posts: 112
Joined: Jun 10, 2010 6:45 am
Location: Netherlands

#8 Postby Dulci » Feb 10, 2012 7:51 pm

200299 wrote:
Dulci wrote:where did you buy you servers "?


how this relates to setting?


not related. Just a question. maybe im interested to buy one from there :)

by the way do you have direct links enabled ?

PowerChaos
Posts: 521
Joined: Dec 19, 2009 5:12 pm
Location: belguim
Contact:

#9 Postby PowerChaos » Feb 14, 2012 11:24 am

well
i can not 100% say how to configure your server but those settings will do fine for 12GB ram ( I7 920 )

Code: Select all

Timeout 30
TraceEnable Extended
ServerSignature Off
ServerTokens ProductOnly
FileETag All
StartServers 5
<IfModule prefork.c>
MinSpareServers 5
MaxSpareServers 10
</IfModule>
ServerLimit 512
MaxClients 512
MaxRequestsPerChild 10000
KeepAlive On
KeepAliveTimeout 5
MaxKeepAliveRequests 100

then you can add this code to in httpd.conf

Code: Select all

ExpiresActive On
ExpiresDefault A0
Header  set Cache-Control "private, no-cache, no-store, proxy-revalidate, no-transform"
Header  set Pragma "no-cache"



but code 500 is not a time out code ..
500 is server error

time out is 504 (no server response)

http://en.wikipedia.org/wiki/List_of_HTTP_status_codes

then a smalls sidenote to your server

are you realy using 32 BIT ??
because 32 bit is limited to 4GB MAX
so what a waste of ram ..

Greetings From PowerChaos

nyan
Posts: 163
Joined: Oct 28, 2010 8:01 pm

#10 Postby nyan » Feb 15, 2012 1:36 pm

I guess you use the prefork module (apachectl -l shows what you use)
Try to see if there's any bottlenecks or akward usage via the top command
if with maxclients 550 there are no visible bottlenecks, try upgrading that limit
also just put the spareservers to 50 or so...
600 downloaders with apache could probably work, but I recommend getting NGINX since I know it works pretty well with many downloaders.

@pwrchaos, it's 4 gb per process... (though I don't know how well system i/o cache is). I agree with using a 64 bit OS for your next fileserver though.

stamos
Posts: 139
Joined: Nov 11, 2010 5:37 pm

#11 Postby stamos » Mar 25, 2012 3:34 pm

keep alive on causes overload for me all the time,
also the serverlimit seems to small, i would raise it to 1024 or so.

pony99
Posts: 55
Joined: Jul 08, 2012 3:45 pm

#12 Postby pony99 » Aug 07, 2012 6:59 pm

hello,
i have new fileserver:

Intel Core i5-2400
4x3.1+ GHz

8 GB DDR3
8TB
100mb/s bandwidth

and my apache2 configuration:

Code: Select all

KeepAlive Off
MaxKeepAliveRequests 100
KeepAliveTimeout 5
Timeout 800
<IfModule mpm_prefork_module>
    ServerLimit           1024
    StartServers               5
    MinSpareServers        15
    MaxSpareServers       50
    MaxClients                 1024
    MaxRequestsPerChild  0
</IfModule>
AcceptFilter http none
EnableSendfile Off
EnableMMAP off
TraceEnable On
ServerSignature Off
ServerTokens ProductOnly
FileETag None


I have 200 uploads, 6000 downloads and 3TB traffic a day.
Sometimes my server is overloaded, what can I do for better performance? :)

thanks best regards

PowerChaos
Posts: 521
Joined: Dec 19, 2009 5:12 pm
Location: belguim
Contact:

#13 Postby PowerChaos » Aug 07, 2012 8:22 pm

you got 8TB traffic and you use 3TB per day ??
then you can just survive 2 days and your traffic is up

i can offer you a better server then with no traffic limit ( 100mbit dedicated port or 1GB port :D )

anyway

Code: Select all

KeepAlive Off
MaxKeepAliveRequests 100
KeepAliveTimeout 5
Timeout 15
<IfModule mpm_prefork_module>
    ServerLimit           512
    StartServers               5
    MinSpareServers        5
    MaxSpareServers       10
    MaxClients                 350
    MaxRequestsPerChild  1000
</IfModule>
AcceptFilter http none
EnableSendfile Off
EnableMMAP off
TraceEnable off
ServerSignature Off
ServerTokens ProductOnly
FileETag None


use maxrequestperchild instead putting it on 0 (so childs get generated and terminated to prevent mem hog)
with keepalive off ( or on a low value) your server makes a lot more requests but that eliminate the use of a higher max clients (as connections only stay open for a second )

for the rest it is hard to configure on feeling , you need to try and tweak as needed to get the optimum value

Greeetings From PowerChaos

pony99
Posts: 55
Joined: Jul 08, 2012 3:45 pm

#14 Postby pony99 » Aug 07, 2012 10:20 pm

hello,
no I mean 8TB disk

traffic is 100mb/s and unlimited ;)



what do you mean with mem hog? and timeout only 15? I think for fileserver is better to put keepalive off.

coolsalman_1
Posts: 15
Joined: Aug 04, 2012 10:22 pm

#15 Postby coolsalman_1 » Aug 08, 2012 6:08 am

hello power.

I am looking for dedicated server 100mb unlimited or 1Gb port with nice specs.


PowerChaos wrote:you got 8TB traffic and you use 3TB per day ??
then you can just survive 2 days and your traffic is up

i can offer you a better server then with no traffic limit ( 100mbit dedicated port or 1GB port :D )

anyway

Code: Select all

KeepAlive Off
MaxKeepAliveRequests 100
KeepAliveTimeout 5
Timeout 15
<IfModule mpm_prefork_module>
    ServerLimit           512
    StartServers               5
    MinSpareServers        5
    MaxSpareServers       10
    MaxClients                 350
    MaxRequestsPerChild  1000
</IfModule>
AcceptFilter http none
EnableSendfile Off
EnableMMAP off
TraceEnable off
ServerSignature Off
ServerTokens ProductOnly
FileETag None


use maxrequestperchild instead putting it on 0 (so childs get generated and terminated to prevent mem hog)
with keepalive off ( or on a low value) your server makes a lot more requests but that eliminate the use of a higher max clients (as connections only stay open for a second )

for the rest it is hard to configure on feeling , you need to try and tweak as needed to get the optimum value

Greeetings From PowerChaos


Return to “XFileSharing Pro”

Who is online

Users browsing this forum: No registered users and 0 guests