duhenglucky commented on issue #1609: URL: https://github.com/apache/rocketmq/issues/1609#issuecomment-855313623
> 一模一样的问题。4.8.0也是。主要是上次关闭broker时无法正常关闭导致的。 > 可以查看store.log日志,大概率是启动时加载日志文件异常了。目前也没找到解决办法,除非删除这个问题。哎。。。 > > `2021-02-23 12:48:53 ERROR AllocateMappedFileService - Failed to map file /app/rocketmq/store/commitlog-am/00000000001073741824 java.io.IOException: Map failed at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:940) ~[na:1.8.0_162] at org.apache.rocketmq.store.MappedFile.init(MappedFile.java:162) [rocketmq-store-4.8.0.jar:4.8.0] at org.apache.rocketmq.store.MappedFile.<init>(MappedFile.java:72) [rocketmq-store-4.8.0.jar:4.8.0] at org.apache.rocketmq.store.AllocateMappedFileService.mmapOperation(AllocateMappedFileService.java:176) [rocketmq-store-4.8.0.jar:4.8.0] at org.apache.rocketmq.store.AllocateMappedFileService.run(AllocateMappedFileService.java:137) [rocketmq-store-4.8.0.jar:4.8.0] at java.lang.Thread.run(Thread.java:748) [na:1.8.0_162] Caused by: java.lang.OutOfMemoryError: Map failed at sun.nio.ch.FileChannelImpl.map0(Native Method) ~[na:1.8.0_162] at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:937) ~[na:1.8.0_162] ... 5 common frames omitted` 先执行下bin 下面的os.sh 文件,然后重新加载试下,启动的时候在日志里面搜一下abnormal 启动还是nornal 启动,另外看下ulimit -v 的设置 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
