Support / KnowledgeBase

 
Search the KnowledgeBase Search

Optimizing your (dv) server

  • Applies to: (dpv) Nitro, All (dv)

  • Difficulty: Medium

  • Time needed: 5 minutes

  • Tools needed: root, ssh, vi knowledge

 

This article will summarize ways to optimize your (dv) to run with less memory / resources, increase stability, and to ensure higher availability under heavier loads. All newly provisioned (dv) 3.5 servers should already have the settings configured as described in this article.

NOTE:

(dv) 2.0 & (dv) 3.0 customers may get many of the same performance increases just by migrating to a (dv) 3.5 server.


Symptoms:

  • Frequent Apache (httpd) crashes
  • Slow server response
  • "Server unreachable" errors
  • kmemsize warnings in your QoS Alerts (Plesk Control Panel under Virtuozzo)
  • privvmpages warnings in your QoS Alerts (Plesk Control Panel under Virtuozzo)

DETAILS:

NOTE:

The following articles are in order of difficulty and potential gain in performance. It is recommended that you do these articles in the given order and test your server for stability and functionality before continuing to the next article in this series.

We intend to write more performance tuning articles in the future. Once published they will be added to this article. 



Part 1 - (dv) HOWTO: Basic Apache performance tuning (httpd)
This article will have you lower the Timeout and MaxClients settings in Apache's httpd.conf file. These settings are designed to decrease memory consumption and increase availability of your Apache web server.
  • Approximate time to complete this article: 5-20 minutes
  • Difficulty level (1-5, 5 being the hardest): 2
  • Potential memory freed by this article: 20 MBs to 60 MBs

Part 2 - (dv) HOWTO: Basic MySQL performance tuning (MySQLd)
This article will help you enable query caching in your my.cnf configuration file for MySQL. Although this article will actually increase the memory used by MySQL the performance gain can be dramatic depending on your queries and database usage.
  • Approximate time to complete this article: 5-15 minutes
  • Difficulty level (1-5, 5 being the hardest): 2
  • Memory increase by this article: 16 MBs to 32 MBs

Part 3 - (dv) HOWTO: Misc. performance tuning
This article will have you limit or shutdown services that are running on your server that may not be needed. You may only want to do certain sections of this article as your usage may differ from the article's example.
  • Approximate time to complete this article: 5-15 minutes
  • Difficulty level (1-5, 5 being the hardest): 3
  • Potential memory freed by this article: 60 MBs to 130 MBs

Revisions:

02-16-2009: Added note about Migration


User Comments

No visitor comments posted. Post a comment

Fields marked with an asterisk(*) are required. Comment on this article

Fill out the form below if you would like to comment on this article.
 
 
 

(code is not case-sensitive)
 
Submit
 
 

Continue