Skip to content
This repository has been archived by the owner on Aug 25, 2020. It is now read-only.

EventStore fills up memory with memory mapped files #387

Open
danbim opened this issue Jan 7, 2015 · 0 comments
Open

EventStore fills up memory with memory mapped files #387

danbim opened this issue Jan 7, 2015 · 0 comments
Assignees
Milestone

Comments

@danbim
Copy link
Member

danbim commented Jan 7, 2015

From the logs:

2015-04-14 08:54:24,772 | New I/O  worker #5             | ReservationEventStoreImpl      | ERROR | Failed to store event
java.io.IOException: Map failed
    at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:889)
    at net.openhft.lang.io.VanillaMappedFile.map(VanillaMappedFile.java:84)
    at net.openhft.lang.io.VanillaMappedFile.bytes(VanillaMappedFile.java:55)
    at net.openhft.lang.io.VanillaMappedBlocks.acquire0(VanillaMappedBlocks.java:66)
    at net.openhft.lang.io.VanillaMappedBlocks.acquire(VanillaMappedBlocks.java:55)
    at net.openhft.chronicle.IndexedChronicle$AbstractIndexedExcerpt.setDataBuffer(IndexedChronicle.java:477)
    at net.openhft.chronicle.IndexedChronicle$AbstractIndexedExcerpt.loadDataBuffer(IndexedChronicle.java:518)
    at net.openhft.chronicle.IndexedChronicle$AbstractIndexedExcerpt.<init>(IndexedChronicle.java:346)
    at net.openhft.chronicle.IndexedChronicle$IndexedExcerptAppender.<init>(IndexedChronicle.java:760)
    at net.openhft.chronicle.IndexedChronicle.createAppender(IndexedChronicle.java:276)
    at de.uniluebeck.itm.eventstore.adapter.IndexedChronicleAdapterImpl.createAppender(IndexedChronicleAdapterImpl.java:38)
    at de.uniluebeck.itm.eventstore.ChronicleBasedEventStoreImpl.storeEvent(ChronicleBasedEventStoreImpl.java:88)
    at de.uniluebeck.itm.tr.iwsn.portal.eventstore.ReservationEventStoreImpl.storeEvent(ReservationEventStoreImpl.java:171)
    at de.uniluebeck.itm.tr.iwsn.portal.eventstore.ReservationEventStoreImpl.storeEvent(ReservationEventStoreImpl.java:140)
    at de.uniluebeck.itm.tr.iwsn.portal.eventstore.ReservationEventStoreImpl.onEvent(ReservationEventStoreImpl.java:86)
    at sun.reflect.GeneratedMethodAccessor114.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
    at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
    at com.google.common.eventbus.EventBus.post(EventBus.java:275)
    at de.uniluebeck.itm.tr.iwsn.portal.ReservationEventBusImpl.post(ReservationEventBusImpl.java:90)
    at de.uniluebeck.itm.tr.iwsn.portal.PortalEventDispatcherImpl.onUpstreamMessageEventFromPortalEventBus(PortalEventDispatcherImpl.java:105)
    at sun.reflect.GeneratedMethodAccessor38.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
    at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
    at com.google.common.eventbus.EventBus.post(EventBus.java:275)
    at de.uniluebeck.itm.tr.iwsn.portal.PortalEventBusImpl.post(PortalEventBusImpl.java:88)
    at sun.reflect.GeneratedMethodAccessor37.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at com.google.inject.internal.DelegatingInvocationHandler.invoke(DelegatingInvocationHandler.java:37)
    at com.sun.proxy.$Proxy75.post(Unknown Source)
    at de.uniluebeck.itm.tr.iwsn.portal.PortalChannelHandler.messageReceived(PortalChannelHandler.java:442)
    at org.jboss.netty.channel.SimpleChannelHandler.handleUpstream(SimpleChannelHandler.java:95)
    at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:565)
    at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:793)
    at org.jboss.netty.channel.SimpleChannelHandler.messageReceived(SimpleChannelHandler.java:149)
    at org.jboss.netty.channel.SimpleChannelHandler.handleUpstream(SimpleChannelHandler.java:95)
    at org.jboss.netty.handler.timeout.IdleStateAwareChannelHandler.handleUpstream(IdleStateAwareChannelHandler.java:43)
    at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:565)
    at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:793)
    at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296)
    at org.jboss.netty.handler.codec.oneone.OneToOneDecoder.handleUpstream(OneToOneDecoder.java:71)
    at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:565)
    at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:793)
    at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296)
    at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:458)
    at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:439)
    at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303)
    at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:75)
    at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:565)
    at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:793)
    at org.jboss.netty.handler.timeout.IdleStateHandler.messageReceived(IdleStateHandler.java:294)
    at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:75)
    at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:565)
    at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:793)
    at org.jboss.netty.channel.SimpleChannelHandler.messageReceived(SimpleChannelHandler.java:149)
    at org.jboss.netty.channel.SimpleChannelHandler.handleUpstream(SimpleChannelHandler.java:95)
    at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:565)
    at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:793)
    at de.uniluebeck.itm.tr.iwsn.portal.netty.NettyServer$2.handleUpstream(NettyServer.java:65)
    at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:565)
    at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:560)
    at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268)
    at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255)
    at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:84)
    at org.jboss.netty.channel.socket.nio.AbstractNioWorker.processSelectedKeys(AbstractNioWorker.java:471)
    at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:332)
    at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:35)
    at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:102)
    at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.OutOfMemoryError: Map failed
    at sun.nio.ch.FileChannelImpl.map0(Native Method)
    at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:886)
    ... 80 more
@danbim danbim self-assigned this Jan 7, 2015
@danbim danbim added this to the 0.9.1 milestone Jan 7, 2015
@danbim danbim modified the milestones: 0.9.1, 0.9.2 Feb 18, 2015
@danbim danbim modified the milestones: 0.9.2, 0.10 Jun 12, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant