How to optimize performance of Nginx server in high concurrency

If you use google-perftools developed by googler to optimize the memory management of Nginx and MySQL, the performance will be improved to a certain extent. Especially for servers under high concurrency, the effect is more obvious! Note: This tutorial is for Linux only. The following is an introduction to the installation of google-perftools, and configuration of Nginx and MySQL to support google-perftools. First, how to optimize Nginx: 1, first download and install google-perftools: Note, if it is a 64-bit system: Then you need to do: 1) Install libunwind first or 2) Add –enable-frame-pointers when configure. So first talk about how to install libunwind: wget http://download.savannah.gnu.org/releases/libunwind/libunwind-0.99.tar.gz tar zxvf libunwind-0.99.tar.gz cd libunwind-0.99/ CFLAGS=-fPIC ./configure –prefix=/usr make CFLAGS=-fPIC make CFLAGS=-fPIC install Go here and install libunwind to complete. If you use the method of adding –enable-frame-pointers, don’t worry about it, let’s go down. Download and install google-perftools: wget http://google-perftools.googlecode.com/files/google-perftools-1.7.tar.gz tar xzvf google-perftools-1.7.tar.gz cd google-perftools-1.7 Then start configuration: ./configure –prefix=/usr –enable-frame-pointers Pay attention to this step here, if it is a 32-bit system, you can not add –enable-frame-pointers, if it is a 64-bit system, and you have not installed libunwind before, then you must add this: –enable-frame-pointers Compile and install: make make install The…

Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: [email protected]

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top
首页
微信
电话
搜索