当前位置:网站首页>activemq--可持久化机制之AMQ
activemq--可持久化机制之AMQ
2022-07-25 09:12:00 【你怎么不笑了】
AMQ (了解)
AMQ是一种文件存储 的形式,它具有写入速度快和易恢复的特点。消息存储在一个文件中,文件默认大小为32M,当一个文件里面的消息都被消费后,这个文件就会被标志为可删除,在下一个清除阶段,这个文件删除。
AMQ适用于activemq 5.3之前的版本
<broker brokerName="broker" persistent="true" useShutdownHook="false">
<persistenceAdapter>
<amqPersistenceAdapter directory="${activemq.base}/activemq-data" maxFileLength="32mb"/>
</persistenceAdapter>
<transportConnectors>
<transportConnector uri="tcp://localhost:61616"/>
</transportConnectors>
</broker>
AMQ Store Properties
| property name | default value | Comments |
|---|---|---|
directory | activemq-data | 存储数据路径 |
useNIO | true | 使用nio将消息写入数据日志 |
syncOnWrite | false | 同步写入 |
maxFileLength | 32mb | 消息数据日志最大值 |
persistentIndex | true | 使用持久化索引,false表示使用内存结构 |
maxCheckpointMessageAddSize | 4kb | 自动提交之前保持事务中最大的消息数 |
cleanupInterval | 30000 | 检测丢弃或者移动消息数据之前的时间(ms) |
indexBinSize | 1024 | 索引默认容器数,容器越大索引性能相对越好 |
indexKeySize | 96 | 索引键的大小,key默认是消息id |
indexPageSize | 16kb | 索引页的大小,页面越大,索引写入性能越好 |
directoryArchive | archive | 存储丢弃的数据日志路径 |
archiveDataLogs | false | 真实的数据移动到存档目录,而不是删除 |
边栏推荐
- [machine learning] Finally, the important steps of machine learning modeling have been clarified
- Read and write models and organize notes
- Asp. Net core CMD common instructions
- The operation cannot be completed because a folder or file in it is already open in another program
- Neural network learning (1) Introduction
- 51 MCU peripherals: Motor
- A picture to quickly understand envoyfilter in istio
- [buuctf-n1book][Chapter 2 advanced web]ssrf training
- Cool canvas animation shock wave JS special effect
- The development of art NFT
猜你喜欢
随机推荐
Wechat reservation of small program completion works (5) assignment book of small program graduation project
51单片机外设篇:蜂鸣器
How to choose a low code software development platform?
What version of Oracle10g single instance database is better to upgrade to? Ask for suggestions
附加:中半部分sql语句 区/县(数据表)
CIR industrial automation radar
艺术 NFT 的发展之路
51 MCU internal peripherals: timer and counter
防抖与节流
Additional: SQL statement area / county in the lower half (data table)
超赞的yolo目标检测训练所用垃圾分类数据集共享——标注好的约3000张
C语言实现二叉平衡树
Yolov5 environment configuration
LabVIEW experiment - temperature detection system (experimental learning version)
Wechat sports ground reservation applet graduation design of applet completion works (2) applet function
What is steel grating?
js触屏小游戏源码冰雪之旅
Illustration leetcode - 919. Complete binary tree inserter (difficulty: medium)
Why use MQ message oriented middleware? These questions must be taken down!
Anti shake and throttling







