Introduction: Without the core system source code, the time-consuming method of modifying the source code printing cannot be used. Through tcpdump, wireshark, gdb, 010 editor, flame diagram, ida, database sql time-consuming statement, oracle ash report, loadrunner and other tools, the problems that the server tps cannot go up and the C program process hangs randomly ..
Starting from the demand: In the actual project development, I met a demand like this: a page module has a lot of list data display, each data has pictures, and the first display only needs less than 10 pictures, so should we load all the pictures at once? Obviously, this is wrong, not only affecting ..
1. Principles Use more memory, cache, or other methods Reduce CPU computation and network requests Reduce IO Operations (Hard Disk Read and Write) 2. Load resource optimization Consolidation and compression of static resources. Static resource caching (browser caching policy). Use CDN to load static resources faster. 3. Rendering Optimization CSS in head, JS in body ..
The Role of nginx in Applications Solve cross-domain problems Request filtering Configure gzip load balancing Static resource server Nginx is a high-performance HTTP and reverse proxy server as well as a general TCP/UDP proxy server, originally written by Russian Igor Sysoev. Nginx is now almost the necessary technology for many large websites. In most cases, ..