Taobao's Tprofiler use diary _tprofiler

Source: Internet
Author: User

Because of the recent project migration, the migration has found that some places have slowed down. Need a good profiler tool to locate the most time-consuming place. In the Taobao Middleware team blog http://rdc.taobao.com/team/jm/found a tprofiler, so try a bit.

The overall use is fairly simple, and the documentation, though not exhaustive, can still be used.

More important is the configuration file, there are several points to note:

The configuration file requires the integrity of all attributes, or it will report "illegalargumentexception source can ' t be null."

Profile.properties has a sample, in the Man/resources directory.

Eachprofusetime = 5 #表示每次profiler的时间, written to Tprofiler.log file once profiler is finished
Eachprofintervaltime = #profiler的间隔

Tprofiler is an online profile tool, the reason why profiler spacing is very large, is to not affect online business. Recommended in the test environment, the Eachprofintervaltime set to 1 or 0,eachprofusetime as much as possible, so that better looking results.

There is also a client, can do Flushmethod and other operations. If you do not actively flush, you will wait until the end of the time period to write Tmethod.log files.

Topmethod and Topobject are more useful and are generated using the following command:

<!--Lang:shell-->
./tprofiler-log-analysis/data/tprofiler/logs/tprofiler.log/data/tprofiler/logs/ Tmethod.log/data/tprofiler/logs/topmethod.log/data/tprofiler/logs/topobject.log
Related Article

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.