Page 4 of 7 FirstFirst 1234567 LastLast
Results 76 to 100 of 169
  1. #76
    i just wanted to ask.. comparing maxchildperrequest 30 with 50, what is the main differences?
    GameWarrior.net - Bringing Gaming To The Next Level
    GamingMonkeys.com - Come Play Fun Flash Games !

  2. #77
    I am currently running a Dedicated server with a 2.4 Celeron Processor w/ 512 MB DDR and running Debian Sarge. I am running apache2, php 4.4, mysql 4, postfix and courier e-mail services. I am hosting just one website, which runs a heavily modified phpBB, and I am getting average Page Gen times of 0.0414 to 0.1472 with roughly 9 to 12 Queries, access time usually around this value 0.0039.

    The following is a copy of my apache2.conf, which has been heavily modified
    Code:
    ServerRoot "/etc/apache2"
    LockFile /var/lock/apache2/accept.lock
    PidFile /var/run/apache2.pid
    
    Timeout 60
    KeepAlive On
    MaxKeepAliveRequests 100
    KeepAliveTimeout 15
    
    UseCanonicalName Off
    HostnameLookups Off
    EnableSendfile On
    ServerTokens Prod
    
    StartServers 5
    MinSpareServers 5
    MaxSpareServers 10
    MaxClients 20
    MaxRequestsPerChild 0
    
    User www-data
    Group www-data
    
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
    LogFormat "%h %l %u %t \"%r\" %>s %b" common
    LogFormat "%{Referer}i -> %U" referer
    LogFormat "%{User-agent}i" agent
    
    ErrorLog /var/log/apache2/error.log
    
    Include /etc/apache2/mods-enabled/*.load
    Include /etc/apache2/mods-enabled/*.conf
    Include /etc/apache2/httpd.conf
    Include /etc/apache2/ports.conf
    Include /etc/apache2/conf.d/[^.#]*
    
    DirectoryIndex index.php /error.php?mode=403
    
    AccessFileName .htaccess
    
    <Files ~ "^\.ht">
    Order allow,deny
    Deny from all
    </Files>
    
    TypesConfig /etc/mime.types
    DefaultType text/plain
    
    AddType application/x-compress .Z
    AddType application/x-gzip .gz .tgz
    AddType application/x-httpd-php .php
    
    BrowserMatch "Mozilla/2" nokeepalive
    BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
    BrowserMatch "RealPlayer 4\.0" force-response-1.0
    BrowserMatch "Java/1\.0" force-response-1.0
    BrowserMatch "JDK/1\.0" force-response-1.0
    BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
    BrowserMatch "^WebDrive" redirect-carefully
    BrowserMatch "^gnome-vfs" redirect-carefully
    BrowserMatch "^WebDAVFS/1.[012]" redirect-carefully
    
    Include /etc/apache2/sites-enabled/[^.#]*
    The apache2 modules activated are:
    include
    mod-security
    perl
    php4
    rewrite
    userdir

    I have eaccelerator installed, I prefer it over MMCache because it is kept up-to-date and is still in development.

    Here is a copy of my my.cnf, which has been barely modified
    Code:
    [client]
    port = 3306
    socket = /var/run/mysqld/mysqld.sock
    
    [mysqld_safe]
    socket = /var/run/mysqld/mysqld.sock
    nice = 0
    
    [mysqld]
    user = mysql
    pid-file = /var/run/mysqld/mysqld.pid
    socket = /var/run/mysqld/mysqld.sock
    port = 3306
    basedir = /usr
    datadir = /var/lib/mysql
    tmpdir = /tmp
    language = /usr/share/mysql/english
    skip-external-locking
    bind-address = 127.0.0.1
    key_buffer = 16M
    max_allowed_packet = 16M
    thread_stack = 128K
    query_cache_limit = 1048576
    query_cache_size = 16777216
    query_cache_type = 1
    log-bin = /var/log/mysql/mysql-bin.log
    max_binlog_size = 104857600
    skip-bdb
    
    [mysqldump]
    quick
    quote-names
    max_allowed_packet = 16M
    
    [mysql]
    
    [isamchk]
    key_buffer = 16M
    I am getting a decent server load I believe for the server right now, since thier are very few ppl on the site at any given time.

    I was wondering if anyone is able to suggest any changes, especially to my.cnf, to help boost the performance.

  3. #78
    Join Date
    Nov 2005
    Posts
    78
    Quote Originally Posted by IncognitoNetworks
    max_user_connections=10
    Does that mean only 10 concurrent users on forum/gallery?!?

  4. #79
    tar zxvf tar zxvf mod_perl-1.0-current.tar.gz
    Shouldn't it be:

    tar zxvf mod_perl-1.0-current.tar.gz
    Is it just a typo?

  5. #80
    Join Date
    Sep 2003
    Location
    Washington, USA
    Posts
    3,262
    Quote Originally Posted by albano
    Does that mean only 10 concurrent users on forum/gallery?!?
    Nope, that just means only 10 concurrent MySQL queries per user could be run at once. This would not mean a user limit, a forum would still be able to run with hundreds of visitors at once.
    ‹‹SHAW NETWORKS›› Simple. Professional. Reliable. Web Hosting Done Right.
    Low Cost & Award-Winning: cPanel Reseller Plans ›› 24/7/365 Live Technical Support ‹‹
    Website: www.shawnetworks.com Fast Response E-mail: sales @ shawnetworks.com
    Sick of downtime? Fed up with excuses? Drop your host! Switch to Shaw Networks.

  6. #81
    Join Date
    Jun 2005
    Posts
    367
    Quote Originally Posted by NicAddress
    Anyone?
    error: permission denied on key 'net.ipv4.tcp_fin_timeout'
    error: permission denied on key 'net.ipv4.tcp_keepalive_time'
    error: permission denied on key 'net.ipv4.tcp_window_scaling'
    error: permission denied on key 'net.ipv4.tcp_sack'
    error: permission denied on key 'net.ipv4.tcp_fack'
    error: permission denied on key 'net.ipv4.tcp_timestamps'
    error: permission denied on key 'net.ipv4.tcp_syncookies'
    error: permission denied on key 'net.ipv4.icmp_echo_ignore_broadcasts'
    error: permission denied on key 'net.ipv4.icmp_ignore_bogus_error_responses'
    error: permission denied on key 'net.ipv4.tcp_reordering'
    error: permission denied on key 'net.ipv4.tcp_synack_retries'
    error: permission denied on key 'net.ipv4.tcp_syn_retries'
    error: permission denied on key 'net.ipv4.tcp_max_syn_backlog'
    error: permission denied on key 'net.core.netdev_max_backlog'
    error: permission denied on key 'net.core.hot_list_length'
    error: permission denied on key 'net.ipv4.tcp_max_tw_buckets'
    I'm getting these errors too when trying the /ect/sysctl.conf edit. I'm on VPS.



    any suggestions? Thanks in advance.

  7. #82
    Join Date
    Oct 2005
    Posts
    397
    Isn't this a lot?
    MinSpareServers 5
    MaxSpareServers 10
    StartServers 5

    What happens if I change this to:
    MinSpareServers 2
    MaxSpareServers 5
    StartServers 2

    How will my server perform? What exactly do the spare servers do?

  8. #83
    Join Date
    Sep 2003
    Location
    Washington, USA
    Posts
    3,262
    Quote Originally Posted by jalapeno55
    Isn't this a lot?
    MinSpareServers 5
    MaxSpareServers 10
    StartServers 5

    What happens if I change this to:
    MinSpareServers 2
    MaxSpareServers 5
    StartServers 2

    How will my server perform? What exactly do the spare servers do?
    This page should explain everything:
    http://httpd.apache.org/docs/2.0/mod...inspareservers

    In most cases the MinSpareServers don't need to be tweaked that much.
    ‹‹SHAW NETWORKS›› Simple. Professional. Reliable. Web Hosting Done Right.
    Low Cost & Award-Winning: cPanel Reseller Plans ›› 24/7/365 Live Technical Support ‹‹
    Website: www.shawnetworks.com Fast Response E-mail: sales @ shawnetworks.com
    Sick of downtime? Fed up with excuses? Drop your host! Switch to Shaw Networks.

  9. #84
    Join Date
    Sep 2003
    Location
    Washington, USA
    Posts
    3,262
    Update: New optimization techniques dealing with per-site resource hogs will be updated into the main post shortly. The techniques should be particularly helpful for web hosts dealing with clients running poorly coded applications, or websites that receive mad rushes of download traffic. Check back soon!
    ‹‹SHAW NETWORKS›› Simple. Professional. Reliable. Web Hosting Done Right.
    Low Cost & Award-Winning: cPanel Reseller Plans ›› 24/7/365 Live Technical Support ‹‹
    Website: www.shawnetworks.com Fast Response E-mail: sales @ shawnetworks.com
    Sick of downtime? Fed up with excuses? Drop your host! Switch to Shaw Networks.

  10. #85
    Join Date
    Dec 2005
    Posts
    49
    Quote Originally Posted by IncognitoNetworks
    Website Rob - Yes, and if you have cPanel you can setup your Apache version with mod_perl directly from WHM. "Update Apache" link -> check the "Perl Module" box -> set any other options -> click build
    My httpd fail after i done that...since yesterday

  11. #86
    Join Date
    Jan 2005
    Posts
    2,203
    Quote Originally Posted by IncognitoNetworks
    Update: New optimization techniques dealing with per-site resource hogs will be updated into the main post shortly. The techniques should be particularly helpful for web hosts dealing with clients running poorly coded applications, or websites that receive mad rushes of download traffic. Check back soon!
    Great, I have been getting hammered with many downloads, 100+ apache connections getting big media files. Thanks for everything!

  12. #87
    Join Date
    Jan 2005
    Posts
    2,203
    Quote Originally Posted by IncognitoNetworks
    Here's the latest /etc/my.cnf that we use on our servers.

    [mysqld]
    datadir=/var/lib/mysql
    socket=/var/lib/mysql/mysql.sock
    skip-locking
    skip-innodb
    query_cache_limit=8M
    query_cache_size=256M
    query_cache_type=1
    max_connections=500
    max_user_connections=10
    interactive_timeout=20
    wait_timeout=20
    connect_timeout=6
    thread_cache_size=128
    key_buffer=16M
    join_buffer=1M
    max_allowed_packet=16M
    table_cache=1024
    record_buffer=1M
    sort_buffer_size=2M
    read_buffer_size=2M
    max_connect_errors=10
    # Try number of CPU's*2 for thread_concurrency
    thread_concurrency=4
    myisam_sort_buffer_size=64M
    #log-bin
    server-id=1

    [mysql.server]
    user=mysql
    basedir=/var/lib

    [safe_mysqld]
    err-log=/var/log/mysqld.log
    pid-file=/var/lib/mysql/mysql.pid
    open_files_limit=8192

    [mysqldump]
    quick
    max_allowed_packet=16M

    [mysql]
    no-auto-rehash
    #safe-updates

    [isamchk]
    key_buffer=32M
    sort_buffer=32M
    read_buffer=16M
    write_buffer=16M

    [myisamchk]
    key_buffer=32M
    sort_buffer=32M
    read_buffer=16M
    write_buffer=16M
    What server specs, mysql, php versions, and what kind of site is it tailored for?

  13. #88
    Join Date
    Sep 2003
    Location
    Washington, USA
    Posts
    3,262
    Quote Originally Posted by ANewDay
    What server specs, mysql, php versions, and what kind of site is it tailored for?
    Those settings have been customized for a dual xeon machine handling a general high MySQL load. For single processor machines you'll want to set the thread_concurrency to 2 instead of 4.
    ‹‹SHAW NETWORKS›› Simple. Professional. Reliable. Web Hosting Done Right.
    Low Cost & Award-Winning: cPanel Reseller Plans ›› 24/7/365 Live Technical Support ‹‹
    Website: www.shawnetworks.com Fast Response E-mail: sales @ shawnetworks.com
    Sick of downtime? Fed up with excuses? Drop your host! Switch to Shaw Networks.

  14. #89
    Join Date
    Sep 2003
    Location
    Washington, USA
    Posts
    3,262
    Quote Originally Posted by F430
    My httpd fail after i done that...since yesterday
    I'm certain that wouldn't have been caused by adding in mod_perl to your Apache installation. If it continues to happen, then you can just as easily install mod_perl manually.
    ‹‹SHAW NETWORKS›› Simple. Professional. Reliable. Web Hosting Done Right.
    Low Cost & Award-Winning: cPanel Reseller Plans ›› 24/7/365 Live Technical Support ‹‹
    Website: www.shawnetworks.com Fast Response E-mail: sales @ shawnetworks.com
    Sick of downtime? Fed up with excuses? Drop your host! Switch to Shaw Networks.

  15. #90
    Join Date
    Oct 2003
    Posts
    83
    sweetness of a forum & helpful people like this. stick this please. my bookmark maybe lost when i need this again.

  16. Quote Originally Posted by F430
    My httpd fail after i done that...since yesterday
    I had the exact same problem and had to restore from a backup.

  17. #92
    "mod_perl scripts always run under the user and group IDs of the httpd process. You can’t execute them with the privileges of another user or group using the suEXEC mechanism the way you can with standalone scripts."

    Are you configuring apache to run all cgi scripts under mod_perl or using a different script alias? Having suexec working for scripts is a security setting that I wouldn't want to sacrifice, as php is the main language these days on web servers, is mod_perl really worth it for relaxed security?

  18. #93
    Join Date
    Sep 2003
    Location
    Washington, USA
    Posts
    3,262
    Quote Originally Posted by DigitalN
    Having suexec working for scripts is a security setting that I wouldn't want to sacrifice, as php is the main language these days on web servers, is mod_perl really worth it for relaxed security?
    I do not consider myself a security expert by any means, however, any possible security issues posed by installing mod_perl with Apache and thus disabling suEXEC functionality would be minor. The article you referenced discussing the advantages and disadvantages of mod_perl does not directly concern itself with potential security issues. Since the objective of the guide is to reduce server load, I believe that it is a good choice to enable mod_perl.

    On a sidenote the referenced article can be found at:
    http://www.samspublishing.com/articl...p?p=23010&rl=1
    ‹‹SHAW NETWORKS›› Simple. Professional. Reliable. Web Hosting Done Right.
    Low Cost & Award-Winning: cPanel Reseller Plans ›› 24/7/365 Live Technical Support ‹‹
    Website: www.shawnetworks.com Fast Response E-mail: sales @ shawnetworks.com
    Sick of downtime? Fed up with excuses? Drop your host! Switch to Shaw Networks.

  19. #94
    Quote Originally Posted by IncognitoNetworks
    I do not consider myself a security expert by any means, however, any possible security issues posed by installing mod_perl with Apache and thus disabling suEXEC functionality would be minor. The article you referenced discussing the advantages and disadvantages of mod_perl does not directly concern itself with potential security issues. Since the objective of the guide is to reduce server load, I believe that it is a good choice to enable mod_perl.

    On a sidenote the referenced article can be found at:
    http://www.samspublishing.com/articl...p?p=23010&rl=1
    Indeed, however I did feel it worth mentioning, since most people within this thread, have no idea why they are changing settings and installing what they are installing. Performance tweaks, ok, but changing the operation of how apache is working with scripts, is something that folks need to be aware of.

    Nice post and nicely put together, just short of a few 'why' and 'how's' imho.

  20. #95
    Join Date
    Sep 2003
    Location
    Washington, USA
    Posts
    3,262
    Quote Originally Posted by DigitalN
    Indeed, however I did feel it worth mentioning, since most people within this thread, have no idea why they are changing settings and installing what they are installing. Performance tweaks, ok, but changing the operation of how apache is working with scripts, is something that folks need to be aware of.

    Nice post and nicely put together, just short of a few 'why' and 'how's' imho.
    That's true, thanks for the contribution I think I'll write in some more explanations with the next revision.
    ‹‹SHAW NETWORKS›› Simple. Professional. Reliable. Web Hosting Done Right.
    Low Cost & Award-Winning: cPanel Reseller Plans ›› 24/7/365 Live Technical Support ‹‹
    Website: www.shawnetworks.com Fast Response E-mail: sales @ shawnetworks.com
    Sick of downtime? Fed up with excuses? Drop your host! Switch to Shaw Networks.

  21. #96
    Join Date
    Mar 2003
    Posts
    84
    does anyone knows anything like this post for FreeBSD servers?

  22. #97
    Join Date
    Sep 2003
    Location
    Washington, USA
    Posts
    3,262
    Quote Originally Posted by D4C
    does anyone knows anything like this post for FreeBSD servers?
    I haven't seen a FreeBSD specific server optimization guide before. Though, some of the stuff in this guide will work for FreeBSD servers too.
    ‹‹SHAW NETWORKS›› Simple. Professional. Reliable. Web Hosting Done Right.
    Low Cost & Award-Winning: cPanel Reseller Plans ›› 24/7/365 Live Technical Support ‹‹
    Website: www.shawnetworks.com Fast Response E-mail: sales @ shawnetworks.com
    Sick of downtime? Fed up with excuses? Drop your host! Switch to Shaw Networks.

  23. #98
    Join Date
    Mar 2003
    Posts
    84
    Quote Originally Posted by IncognitoNetworks
    I haven't seen a FreeBSD specific server optimization guide before. Though, some of the stuff in this guide will work for FreeBSD servers too.
    which parts if you care to highlight please?

    thanks

  24. #99
    Join Date
    Sep 2003
    Location
    Washington, USA
    Posts
    3,262
    Quote Originally Posted by D4C
    which parts if you care to highlight please?

    thanks
    I believe that everything except for the sysctl.conf tuning would be possible. I have virtually no experience in administrating FreeBSD servers though, so someone with the proper experience please correct me if I'm mistaken.
    ‹‹SHAW NETWORKS›› Simple. Professional. Reliable. Web Hosting Done Right.
    Low Cost & Award-Winning: cPanel Reseller Plans ›› 24/7/365 Live Technical Support ‹‹
    Website: www.shawnetworks.com Fast Response E-mail: sales @ shawnetworks.com
    Sick of downtime? Fed up with excuses? Drop your host! Switch to Shaw Networks.

  25. #100
    Join Date
    Sep 2003
    Location
    Washington, USA
    Posts
    3,262
    Quote Originally Posted by IncognitoNetworks
    I believe that everything except for the sysctl.conf tuning would be possible. I have virtually no experience in administrating FreeBSD servers though, so someone with the proper experience please correct me if I'm mistaken.
    D4C -
    I just had this verified by a FreeBSD server admin, you should be able to use the tutorial just fine.
    ‹‹SHAW NETWORKS›› Simple. Professional. Reliable. Web Hosting Done Right.
    Low Cost & Award-Winning: cPanel Reseller Plans ›› 24/7/365 Live Technical Support ‹‹
    Website: www.shawnetworks.com Fast Response E-mail: sales @ shawnetworks.com
    Sick of downtime? Fed up with excuses? Drop your host! Switch to Shaw Networks.

Page 4 of 7 FirstFirst 1234567 LastLast

Posting Permissions

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