rocketmq / rocketmq-spring-boot-starter

Help developers quickly integrate RocketMQ in Spring Boot. Support the Spring Message specification to facilitate developers to quickly switch from other MQ to RocketMQ.
https://www.rocketmq.org
Apache License 2.0
77 stars 22 forks source link

the store file increase very fast #5

Closed qgwwm closed 5 years ago

qgwwm commented 5 years ago

when I started the rocketmq starter the store file increase very fast. and at the same time,I just start an producer sending message at one message per three second.no customer.I find the file rocketme/store/index/***,every file has about 400M.Just a few seconds,the disk full.please help me,thanks.

he-jialin commented 5 years ago

你好,这是消息索引存储过多,其核心产生的点是IndexService#buildIndex类 可自行去看下源码,可以在配置文件重新配置改变储存位置

消息索引存储路径

storePathIndex=/usr/local/rocketmq/store/index

qgwwm commented 5 years ago

谢谢回复,已经找到原因了。装broker的那台机器的jdk不知道什么时候换成32位的了。换到64位的就好了。谢谢