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

Analysis of memory deadlock in JVM

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

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

Phenomenon:

It was found that applications running on tomcat, no matter how many vusers simulate the request pressure, the cpu will consume 200%, and the tps of the application is very low, nearly 10 times per second.

Analysis:

1. Bottleneck elimination of network

2. Execute jstack -l Thread No.> Thread No. log

Log as follows:

3. It can be seen that one of the memory variables of 0x00000751968760 is locked, and the other is acquiring locks, resulting in deadlock problems. Next, optimize the code

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