App performance testing diagnostics and optimization-guessing nature through phenomena

Source: Internet
Author: User

App performance testing diagnostics and optimization-guessing nature through phenomena

This period of time busy to help a city firm in Beijing Mobile performance test, because the mobile IPD, mobile phone, etc. are wireless devices, and the customer is facing the country users to provide mobile app support, in order to more realistic simulation test, I communicate with Project manager of the project directly in Xiamen by borrowing LR tools from the wireless network to simulate the concurrency stress test. Thanks to the technical expert of the mobile architecture group, Hpxiao helped me to build a simulator locally, and followed the project manager with the APK project package for the production environment, and learned the business knowledge based on the business Operations Manual provided by the project team, and then used the LR development script for stress testing.
Because of the geographical distance relationship, but also directly in the production environment pressure test, production environment in Beijing, pressure testing machine in Xiamen, through wireless pressure measurement, so the test process to the server resource use monitoring becomes a major problem, only in each pressure test through the communication, in response time, such as relatively long or the TPS is unstable, Let the project manager assist the monitoring, photo I analysis, fortunately myself this more than 10 years to travel support project to do performance fault analysis optimization, to all kinds of problems through the LR front-end can guess the backend is a database problem or application problem, although no way to do the real knowledge of micro-see, but also through the phenomenon to understand the essence of the problem, and provide optimization This is mainly because the work of the heart, there are things to summarize the effect of accumulation.
At the beginning of the pressure test due to the default configuration after deployment and other issues caused high response time, low TPS, the project manager feedback application CPU is more than 82% such as:

650) this.width=650; "height=" src= "http://a4.qpic.cn/psb?/643794740/ lowiikv6nmv1x3vjaigvrkxztiaoalvik0dlvo1nvco!/b/dhmaaaaaaaaa&ek=1&kp=1&pt=0&bo=hqlcaqaaaaareou! &t=5&su=0237365713&tm=1502355600&sce=0-12-12&rf=2-9 "width=" "style=" margin:0px;padding:0 px;border-width:0px;border-style:none;vertical-align:top; "Alt=" dhmaaaaaaaaa&ek=1&kp=1&pt=0&bo= Hqlcaqaaa "/>
Tested four or five transactions found there are common problems, response time is more than six seconds, mobile phone response time is generally 258 principle, more than 5 seconds users will be irritable directly off, the general recommendations are less than 3 seconds, so the indicators can not be met.
Guess should be the application server configuration unreasonable result, because login exit, page connection, etc. also have common problems, probably measured after, to the project manager to provide relevant configuration optimization advice, unexpectedly really solved, mainly tomcat relatively good optimization, and then through the re-test response time is under 1 seconds.

650) this.width=650; "height=" src= "Http://a3.qpic.cn/psb?/643794740/jnoe. ebs70d5hlh49a5vfz7zbhef3eycgsfxhh34qiy!/b/dd4baaaaaaaa&ek=1&kp=1&pt=0&bo=hwlfagaaaaarep0!& T=5&su=0245261361&tm=1502355600&sce=0-12-12&rf=2-9 "width=" "style=" margin:0px;padding:0px; border-width:0px;border-style:none;vertical-align:top; "Alt=" dd4baaaaaaaa&ek=1&kp=1&pt=0&bo= Hwlfagaaa "/>
General Bank App Mobile application logic is not too complex, code writing problem is relatively small, and is a fat client, data transmission although single-machine business data is small, but concurrency large, in the test process if the performance problem, is generally the network bandwidth problem or back-end processing logic problems. If the test process if most of the problems of the transaction is generally difficult to configure the soft and hard environment mostly, if occasionally one or two query transaction response is slow, generally is the SQL writing problem caused by the proposed first look at the SQL syntax execution path, is to go full table scan, full index scan? Whether it is due to the multi-table association and so on, at this time in accordance with the actual business situation optimization. --Of course, many of the reasons for the problem is more monitoring diagnostic analysis, performance monitoring data to speak more real and authoritative.

650) this.width=650; "height=" 510 "src=" http://a4.qpic.cn/psb?/643794740/7.crvcqgjpzh.*skraj* prvf.3fc9io0hcr2ntur8j4!/b/dimaaaaaaaaa&ek=1&kp=1&pt=0&bo=gajdawaaaaareh0!&t=5&su= 0245906721&tm=1502355600&sce=0-12-12&rf=2-9 "width=" "style=" margin:0px;padding:0px;border-width : 0px;border-style:none;vertical-align:top; "alt=" Dimaaaaaaaaa&ek=1&kp=1&pt=0&bo=gajdawaaa "/>


This article is from the "Bo Ya" blog, please be sure to keep this source http://372550.blog.51cto.com/362550/1955201

App performance testing diagnostics and optimization-guessing nature through phenomena

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.