Some points to note:
-
Try to use the cache, including user cache, information cache, etc., spend more memory to do the cache, can reduce the interaction with the database, improve performance.
-
Use tools such as Jprofiler to identify performance bottlenecks and reduce additional overhead.
-
Optimize database query statements to reduce direct generation statements using tools such as hibernate (only long-time queries are optimized).
-
Optimize the database structure, do more indexing, improve query efficiency.
-
Statistical functions as far as possible cache, or according to a daily statistical or timing statistics related reports, to avoid the need for statistical functions.
-
Use static pages wherever possible, reducing the parsing of containers (as much as possible to generate static HTML for dynamic content display).
-
After solving the above problems, use the server cluster to solve the bottleneck problem of single station.
Basically solves the above problem, achieves the system optimal.
First, web acceleration related technology
1. Mirror site
2.DNS Load Balancing
3.CDN Content Distribution
Second, the Network acceleration technology
1. Load balancing (software load balancing, hardware load balancing)
2. Web cache server
3. web/Application Server Distributed File system
4. Distributed Database (database master-slave distribution, database segmentation, Database Cache)
How to solve the problem of high traffic concurrency in Java?