i bought a dedicated server with a 1gb of ram.I like to know what is the maximum amount of proxies i can host on it
0.5 if they are large. 2 if they are normal sized 10 if they are small. Seriously, it depends on how acive and well maintained they are.
Other considerations might be: - which script are you using? - are you running other sites on the box? - have you tuned the httpd? - do you wish to factor in growth? Lots of questions and no real answer. 15 PHP based proxies on one box, pushing 100+ GB per day to 2-3K uniques per day is easily attainable - so many factors involved that it doesn't make much sense to guess at how many you can run on a particular box.
Im using PHProxy Im running 3 proxies.2 small ones and a big one about 1000 uniques per day.im How do i tune httpd?? my proxy is using about 5 gb perday
it's all relative to traffic. I've got 50 proxies on one box, and yet I've only got a small number on another. There's no set right or wrong, you just need to work it out as you go...and if you're growing you'll need another box before you know it
Optimising Apache depends on your server configs, OS, how people use your site, the type of content etc. If you are not seeing any performance degradation with your current settings, then you might want to leave them alone. Otherwise, start by reading up a little on it - Google is full of good references on basic Apache performance tuning.
my memory usage is very very high Total memory: 1008 MB Used memory: 946 MB Free memory: 62 MB 1 minute: 0.45 5 minutes: 0.35 15 minutes: 0.34 only 300 uniques upto now
Don't worry to much about the used physical memory, since that is the way linux works. You need to worry when you see Swap Memory being used.
Its hard to say at this point how many proxies you'll be able to host. Traffic changes all the time for a domain, so keep a close eye out and that will better help you decide.
it depends on your server spec...maybe we can then advice you Have you try to install lighttpd to surf proxy sites?
Server specs are 120 GB disk drive • 500GB bandwidth • 1 GB RAM • Celeron® 2.0GHz processor • Red Hat Fedora Core 4 OS It was the standard httpd installation.... How do i install lighttpd and what are the differences Thanks
Plenty of ram, i would think the celeron will be decent for a while, it should fit your needs for now, be sure to stick with a host that can upgrade you easily with no hassle.
Your server load isn't the same as processor load. A load of 2 means that there are always 2 processes actively running. If you find that you have a load of 2-5 it's not a huge deal. Once you get beyond that you typically want to look at a more powerful server because processes are probably waiting around to finish. In an ideal world your load should be 1-2. SSH to your server and run 'top'. It shows in real time the system resources being used in a more familiar way. Cpu0 : 8.4%us, 1.2%sy, 0.0%ni, 87.2%id, 2.2%wa, 0.4%hi, 0.6%si, 0.0%st Cpu1 : 9.1%us, 1.0%sy, 0.0%ni, 89.4%id, 0.5%wa, 0.0%hi, 0.1%si, 0.0%st If you see the # before the us (user process) or wa (io wait) hold at more than 50-60% for 30-60 seconds you probably don't have enough server.
I have a problem coz my swap memory has been used Average System Load 1 minute: 0.37 5 minutes: 0.34 15 minutes: 0.32 Memory Usage Total memory: 1008 MB Used memory: 376 MB Free memory: 632 MB Swap Usage Total swap: 1953 MB Used swap: 137 MB Free swap: 1816 MB Is this a problem??
Do you see this changing when your box gets hit hard? Having some swap space occupied is not a big deal. What is a big deal is if your box is repeatedly reading and writing from swap when the box in is use (because disk access is significantly slower than physical memory access.) Some the things you can also try to do are: reduce the memory footprint of Apache by stripping out unused modules etc.; [ii] disabling all unused daemons and other unused memory occupants.