Results 1 to 8 of 8
  1. #1
    Join Date
    Jun 2011
    Posts
    278

    Av. Ram usage (Apache / MySQL / PHP / virtualmin )

    Hello,
    I want to know how much traffic can a server handle
    Let's say i have a VPS openvz
    And its ram is "x" MB

    Running multiple websites on virtualmin/php/mysql

    How much traffic can RAM handle ?? if pages usually have 3 small mysql queries and are around 150KB maximum

    Just tell me your own experience or tell me X Ram can handle Y Traffic
    ----

    Thanks in advance

  2. #2
    Join Date
    Apr 2010
    Location
    North Carolina
    Posts
    442
    My forum gets over 130,000 pageviews a month and runs on a 128mb VPS, but I don't use apache.

  3. #3
    Join Date
    Jun 2011
    Posts
    278
    Thank you =)

    Please if anyone is running apache can answer

  4. #4
    Join Date
    Jan 2011
    Location
    Canada
    Posts
    938
    Use Siege from another machine to test it out because it'll vary for everybody depending on their application and PHP load. Think of it this way, as long as a PHP request is active, that blocks one of Apache's request handler. The only way it can deal with it is to spawn another child process, which takes memory. At some point, your concurrent users will push the memory usage beyond the OpenVZ safe region, and things will start to fail. That's why it's app dependent.

  5. #5
    Join Date
    Mar 2011
    Posts
    394
    I think the answer to this question can only be found in a real life scenario. Go in for a scalable solution so you can start small and increase as per your needs.

    Good luck

  6. #6
    Join Date
    Jun 2011
    Posts
    278
    Quote Originally Posted by zahirw View Post
    I think the answer to this question can only be found in a real life scenario. Go in for a scalable solution so you can start small and increase as per your needs.

    Good luck

    That's what i am asking about i don't need estimations i need details from someone who already is running a website

  7. #7
    Join Date
    Mar 2011
    Posts
    394
    Well I have about 20 clients on the virtualmin + apache + centos setup & I love it.

    Virtualmin, fresh & updated takes about 300mb. You can tune httpd & my.cnf + disable processes you don't want to bring this down to about 200-220. A 512 mb ram vps can handle well over 1000s of visitors a day.

    Point to consider is concurrent connections to httpd & mysql which IMO, depending on your code, could range from 100-200.

    Hope this helps

  8. #8
    hello,

    a typical prefork apache process will take between 5 to 15MB per process. For low mem VPS there are better alternatives, though, like nginx, for example.

    cheers -
    oz.

Similar Threads

  1. Replies: 14
    Last Post: 12-13-2012, 07:11 PM
  2. Apache + PHP-fcgi RAM usage increasing
    By Dregond Rahl in forum Hosting Security and Technology
    Replies: 16
    Last Post: 11-30-2011, 07:29 AM
  3. Is this normal? Apache and Mysql high memory usage
    By carlatf in forum Hosting Security and Technology
    Replies: 14
    Last Post: 06-29-2010, 10:28 PM
  4. webmin / Virtualmin memory usage
    By juga in forum Hosting Security and Technology
    Replies: 13
    Last Post: 09-22-2009, 05:29 PM
  5. Lighttpd - 95% Cpu Usage. Apache - All Ram Used, Swap Comes In
    By Greedisgood in forum Hosting Security and Technology
    Replies: 18
    Last Post: 10-14-2007, 12:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •