Ten ways to increase Linux server performance

Ten ways to increase Linux server performance

1.EAccelerator

 eAccelerator is a free opensource PHP accelerator,optimizer and dynamic content cache. It increases the performance of PHP scripts by caching them in it’s compiled state, so the overhead of compiling is almost completely eliminated. It also optimizes scripts to speed up their execution. eAccelerator reduces server load and increases the speed of your PHP code.


2.Zend optimizer

The Zend Optimizer boosts PHP performance by going over the intermediate code generated by standard Zend run-time compiler and optimizing it for faster execution.

 3.mysql query cache

Query caching is a way to increase the mysql performance by caching database queries.

http://www.thetechnicalstuff.com/how-to-enable-mysql-query-cache/

4.Apache version update

Always update Apachecurrent (latest) version and also stay updated.

5.Tuning MySQL Performance with MySQLTuner

MySQLTuner is a Perl script that analyzes your MySQL performance and based on the statistics, gives recommendations which variables you should adjust in order to increase performance.You can tune your my.cnf file to tease out the last bit of performance from your MySQL server and make it work more efficiently.

6.Disable the unnecessary modules in Apache

You can disable all unneeded modules in Apache to save memory and improve server performance. This may also help to improved security. Different Linux distributions follows different methods for disabling modules.

7.Disable Unnecessary Daemons

Daemons or background services , running on every server that are probably not needed. Disabling the unwanted daemons frees memory, decreases startup time, and decreases the number of processes that the CPU has to handle. A side benefit to this is increased security of the server because fewer daemons mean fewer exploitable processes.

8.Shutdown GUI

There is no requirement for a GUI on a Linux server. It is better to shut down GUI as all administration tasks can be achieved by the command line, redirecting the X display or through a Web browser interface. In order to disable GUI, “init level” should be set to 3(command line login), rather than 5(graphical login). If you want GUI ,  you will start manually with startx command.

9.Disable control panels

In Linux, there are a number of more popular control panels, such as Cpanel, Plesk, Webmin, and phpMyAdmin . However, disabling these software packages can make as much as 100 MB of RAM free! Hence it is advised to disable these control panels until they are actually needed. By doing this, you can decrease the amount of RAM being used by as much as 25-35%.

10.Message queues

To view current settings, run command:

# more /proc/sys/kernel/msgmni

# more /proc/sys/kernel/msgmax

To set it to a new value for this running session, which takes effect immediately, run command:

# echo 2048 > /proc/sys/kernel/msgmni

# echo 64000 > /proc/sys/kernel/msgmax

strong style=”text-align: justify;”