Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Small case study of performance testing

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

Many people find performance analysis difficult, but it's not difficult after you master the skills.

Mentality, thinking, layering, conjecture, etc. play a great role in analysis. On the contrary, technology only ranks second or even third. Unfortunately, too few people understand it.

=============================

Monitoring found phenomena:

Tps jitter is large

A lot of timeouts in log.

There are 500 errors.

Next, use jconsole to look at the memory (Java's east and east first think of memory), as shown below

Found that memory usage is not normal, FGC is very frequent, almost once every 5 minutes, and memory recycling is not thorough, probably guess may be memory problems, resulting in a series of unstable phenomena.

So the question is, who's taking up so much memory?

Then jstat command to check the system GC situation, as shown in the following figure

Sure enough, memory recycling is not complete, fgc lasted nearly 5s, verified our guess, then we have to find which bastard caused it.

Continue, jmap search, as shown below

See these three bastards? Maybe they caused it.

Finally, with the help of mat to analyze, as shown in the following figure

See, that's the three of them. Hurry up and find developers to take a look together and analyze the code.

So, isn't it hard? The key is thinking.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report