Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Sep 2003
    Posts
    11

    Default Can a huge amount of subdomains slow down apache ?

    Hi everyone,

    maybe my feeling is wrong, but somehow it seems to me, that things run a lot slower since I created 1200+ subdomains for one of my domains. Especially the response time seems pretty slow. Is there a way to solve this problem ? I'm not exactly sure what causes the slowdown, maybe it's the huge amount of Virtual Host entries in httpd.conf ?

    Any help is appreciated

    Stefan

  2. #2
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    I've heard that it can cause problems if you have very large numbers of VirtualHost directives in Apache, though I've only known that to happen with several thousand of them. I would guess the limit before performance is degraded depends on the speed and availability of resources on your server. For example, if you're running low on memory, CPU resources or have an I/O bottleneck, then this would only add to it.

    There are ways to use mod_rewrite to effectievly create subdomains, but it won't give you log files and the other advantages of doing it through cPanel (e.g. email on the subdomain). Using mod_rewrite regex's in a .htaccess file you can have many thousands with little impact.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  3. #3
    Member
    Join Date
    Sep 2003
    Posts
    11

    Default

    thanks chirpy I don't need the cpanel features for those subdomains, so I'm going to have a look into the mod_rewrite thing and see if the speed increases.

Similar Threads & Tags
Similar threads

  1. Huge Problems with Apache Rebuild | Apache Templates | Apache Conf Caching
    By hodfords in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 03-15-2010, 08:28 PM
  2. Apache process cause huge load
    By Sergiu Tot in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 03-22-2008, 09:35 PM
  3. server is sending huge amount of spam
    By mchauhan in forum New User Questions
    Replies: 1
    Last Post: 04-04-2006, 02:25 PM
  4. Apache on has exceeded the maximum amount of open files
    By cheapo in forum cPanel and WHM Discussions
    Replies: 21
    Last Post: 02-18-2004, 04:01 PM
  5. Apache looping, huge processes, no sites being served
    By sexy_guy in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 04-08-2003, 08:44 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube