1.2 VPC
-agentpath:/opt/jprofiler11.1.2/bin/linux-x64/libjprofilerti.so=port=8849
export PERF_RECORD_SECONDS=5 && export PERF_RECORD_FREQ=999
./perf-java-report-stack <Java进程pid>
| | |
---|
CPU | 43.44%(user:36.78%) | 45.04%(user:40.52%) |
| 5.2ms | 6.1ms |
| 7.5ms | 4.7ms |
| 1.0ms | 1.3ms |
| 18.5 | 25 |
Net | In:11.4M Out:13.7M | In:7.3M Out:12.4M |
Thread | 669(Daemon:554) | 789(Daemon:664) |
| 5132 | 7324 |
| | | |
---|
GET:9 | 3550 | 3825 | |
GET:860 | 4848 | — | |
GET:758 | 1165 | 1365 | |
GET:8 | 1158 | 1280 | |
PREFIX_GETS:688 | 1425 | — | |
GET:688 | 2282 | — | |
GET:100 | 21 | 21 | |
PREFIX_GETS:100 | — | 73 | |
GET:4 | — | 1008 | |
GET:10086 | 2394 | 2580 | |
GET:770 | 100 | — | |
PREFIX_GETS:770 | 92 | — | |
GET:88 | 21 | 21 | |
| | | |
---|
QUERY promotion_detail | 865 | — | |
KV_GET promotion_detail | — | 898 | |
QUERY promotion_detail_sku | 21 | | |
QUERY buyer_coupon | 190 | 160 | |
KV_GET buyer_coupon | -- | 56 | |
UPDATE buyer_coupon | 55 | 60 | |
3.7 DB
update red_envelop set balance = 0 where id in (...);
insert 库存扣减流水;
update /* commit_on_success rollback_on_fail target_affect_row(1) */ inventory
set inv_count = inv_count - 1
where inv_id = 11222 and inv_count - 1 >= 0;
3.8.3 JVM
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。