JVM参数解析: http://xxfox.perfma.com/
jstack分析1: https://spotify.github.io/threaddump-analyzer/
jstack分析2: https://fastthread.io/index.jsp
gc分析: https://gceasy.io[......]
JVM参数解析: http://xxfox.perfma.com/
jstack分析1: https://spotify.github.io/threaddump-analyzer/
jstack分析2: https://fastthread.io/index.jsp
gc分析: https://gceasy.io[......]
https://www.freeformatter.com/java-regex-tester.html
[......]
0. 测试环境
阿里云,内存型R5,2核16G内存,5台机器。
RocketMq部署采用Docker,自己定制了镜像,参见:docker-rocketmq
1. 单机测试
单机: NameServer、Broker、Test程序都部署在一台机器上。
1.1 单机 发送线程与TPS
此时默认msgLen=100,主要看线程数的增加,对于同步发消息性能的影响。
可以看到12个线程后,TPS ~= 12K/s,之后线程数再增加,也不会有很大增长了。
我选用的R5机器,只有2[......]
转载自:《理解Spring的事务传播机制》
Spring的事务传播类型
Spring的事务传播机制类型定义在了Propagation枚举类中。主要有以下几种类型。
public enum Propagation {
REQUIRED(TransactionDefinition.PROPAGATION_REQUIRED),
SUPPORTS(TransactionDefinition.PROPAGATION_SUPPORTS),
MANDATORY(TransactionDefinit[......]
sudo add-apt-repository ppa:webupd8team/java
sudo apt update
sudo apt install oracle-java8-installer
sudo apt install oracle-java8-set-default
[......]