Allows you to search a variety of questions and answers
These are just some general tips on what you can do/setup to optimize your server, whether it's with databases, apache or something else. These are in no particular order, so use whatever you think is necessary in your case.
1. Try installing memcached/memcache to help with dynamic content and to take the load off of your database server. http://www.danga.com/memcached/and http://www.sohailriaz.com/how-to-ins...-on-centos-5x/
Don't forget to configure /etc/sysconfig/memcached. Should look something like this:
PORT="11211"
USER="nobody" (this should be the same as your webserver user (apache, etc..))
MAXCONN="2048"
CACHESIZE="4096"
OPTIONS=""
To start memcached, use the following syntax, where 'm' is the memory it will use and -d means it will run as a daemon on port 11211 locally:
memcached -d -u root -m 2048 -l 127.0.0.1 -p 11211
You can use the following init script to stop/start memcached easier: http://www.vbseo.com/blogs/danny-bem...-memcached-44/. Just note the new memcached.conf configuration and path.
Alternatively, it may be easier to simply install it using yum:
yum -y install memcached
- just use the rpmforge repo for this and that will get it setup automatically. Use the aforementioned variables for the /etc/sysconfig/memcached file.
You can also check out the following post on how to get memcached and memcache setup and configured: http://www.sohailriaz.com/how-to-ins...-on-centos-5x/ - This is a good method
2. Try running tuning primer on Mysql and make the necessary adjustments. https://launchpad.net/mysql-tuning-primer
3. Try running mysqltuner to get more details on what can be optimized within your mysql file. http://blog.mysqltuner.com/download/
4. Try installing ELS script from servermonkeys. This will optimize/harden your server in several areas. http://www.servermonkeys.com/els.php
5. Try installing mod_top and iftop. http://www.mod-top.org/ and http://www.ex-parrot.com/pdw/iftop/
6. Install EAccelerator with PHP to cache content and deliver it faster, thus taking load off of the server. http://blog.eukhost.com/webhosting/e...-installation/and http://wiki.asmallorange.com/HOWTOInstallEA
7. Try to run 'mysqlcheck -c -A' as root to fix any corrupted tables you may have. This will only work if you are using MySQL.
8. It's also very possible that you have a large log file somewhere (2GB in size) that is causing this slowdown. To find it, run the following command for the directory you want to check (can just use / to check the whole root): find / -type f -size +1G
There are certainly a lot more things you can do, but the above ones should atleast give you a good start.
Hi Guys and Gals, I'll just say you all are top notch and go above and behind with support. I've tested many other companies none compare to the expertise you all. Previously I would just get a ticked bumped up to a higher level of tier support etc. with AYK everyone is knowledgeable and prompt. Thank you for offering a premium hosting solution. Warm Regards, Johnny
We're Happy with our 1 Gigabit Server AYK Solutions! AYK Solutions provides all our back-end server infrastructure for our video streaming sites which burn up about 200 GB of data every day. I have had nothing less then 1 MB/second downloads from all the servers that I have had from them. Their technical support saved me several times, and their tech support is 24/7 and responsive. I currently have a Quad Xeon on a 1 gigE port for WAY LESS then any other dedicated server provider
Ayksolutions Customer Reviews Prompt, professional, efficient. I am currently using a shared account and plan on upgrading to a dedicated server...eventually when traffic picks up. The Ayk team is quick to reply to any concerns and does the best they can to correct the situation. I strongly recommend them for hosting.