gpt4 book ai didi

Cassandra java.io.IOException : Map failed for COMMIT-LOG-ALLOCATOR

转载 作者:行者123 更新时间:2023-12-05 00:33:55 28 4
gpt4 key购买 nike

当提交日志目录的总大小超过 680 Mb 时,它会抛出此异常

ERROR [COMMIT-LOG-ALLOCATOR] 2012-07-04 15:04:57,070 AbstractCassandraDaemon.java (line 134) Exception in thread Thread[COMMIT-LOG-ALLOCATOR,5,main]
java.io.IOError: java.io.IOException: Map failed
at org.apache.cassandra.db.commitlog.CommitLogSegment.<init>(CommitLogSegment.java:127)
at org.apache.cassandra.db.commitlog.CommitLogAllocator$3.run(CommitLogAllocator.java:203)
at org.apache.cassandra.db.commitlog.CommitLogAllocator$1.runMayThrow(CommitLogAllocator.java:95)
at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:30)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: Map failed
at sun.nio.ch.FileChannelImpl.map(Unknown Source)
at org.apache.cassandra.db.commitlog.CommitLogSegment.<init>(CommitLogSegment.java:119)
... 4 more
Caused by: java.lang.OutOfMemoryError: Map failed
at sun.nio.ch.FileChannelImpl.map0(Native Method)
... 6 more
ERROR [StorageServiceShutdownHook] 2012-07-04 15:04:57,075 AbstractCassandraDaemon.java (line 134) Exception in thread Thread[StorageServiceShutdownHook,5,main]
java.lang.NullPointerException
at org.apache.cassandra.gms.Gossiper.stop(Gossiper.java:1132)
at org.apache.cassandra.service.StorageService$2.runMayThrow(StorageService.java:489)
at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:30)
at java.lang.Thread.run(Unknown Source)

最佳答案

根据您的操作系统,您应该更改 -Xmx-Xms Java VM 的参数。

我个人在 Windows 上运行 cassandra 所以我改变了 %CASSANDRA_HOME%/bin/cassandra.bat第 34 行和第 35 行来自 1G100M .

关于 Cassandra java.io.IOException : Map failed for COMMIT-LOG-ALLOCATOR,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11339037/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com