8

image.png

image.png

image.png

1.2 VPC

image.png

  1. image.png

image.png

-agentpath:/opt/jprofiler11.1.2/bin/linux-x64/libjprofilerti.so=port=8849

image.png

image.png

image.png

export PERF_RECORD_SECONDS=5 && export PERF_RECORD_FREQ=999
./perf-java-report-stack <Java进程pid>
CPU43.44%(user:36.78%)45.04%(user:40.52%)
5.2ms6.1ms
7.5ms4.7ms
1.0ms1.3ms
18.525
NetIn:11.4M Out:13.7MIn:7.3M Out:12.4M
Thread669(Daemon:554)789(Daemon:664)
51327324
GET:935503825
GET:8604848
GET:75811651365
GET:811581280
PREFIX_GETS:6881425
GET:6882282
GET:1002121
PREFIX_GETS:10073
GET:41008
GET:1008623942580
GET:770100
PREFIX_GETS:77092
GET:882121
QUERY promotion_detail865
KV_GET promotion_detail898
QUERY promotion_detail_sku21
QUERY buyer_coupon190160
KV_GET buyer_coupon--56
UPDATE buyer_coupon5560

image.png

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

得物技术
846 声望1.5k 粉丝