Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO/Net4j] OutOfMemoryError: Direct buffer memory
[CDO/Net4j] OutOfMemoryError: Direct buffer memory [message #1708868] Tue, 22 September 2015 05:50 Go to next message
Samuel Leisering is currently offline Samuel LeiseringFriend
Messages: 34
Registered: July 2014
Member
Hi there
After running a cdo server for nearly 5 Month we got a strange exception today:

Exception in thread "net4j-Thread-1958" java.lang.OutOfMemoryError: Direct buffer memory
	at java.nio.Bits.reserveMemory(Bits.java:658)
	at java.nio.DirectByteBuffer.<init>(DirectByteBuffer.java:123)
	at java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:311)
	at org.eclipse.internal.net4j.buffer.Buffer.<init>(Buffer.java:63)
	at org.eclipse.internal.net4j.buffer.BufferFactory.doProvideBuffer(BufferFactory.java:37)
	at org.eclipse.internal.net4j.buffer.BufferProvider.provideBuffer(BufferProvider.java:51)
	at org.eclipse.internal.net4j.buffer.BufferPool.doProvideBuffer(BufferPool.java:137)
	at org.eclipse.internal.net4j.buffer.BufferProvider.provideBuffer(BufferProvider.java:51)
	at org.eclipse.spi.net4j.Connector.provideBuffer(Connector.java:296)
	at org.eclipse.spi.net4j.Channel.provideBuffer(Channel.java:243)
	at org.eclipse.net4j.signal.SignalProtocol$SignalOutputStream$1.provideBuffer(SignalProtocol.java:635)
	at org.eclipse.net4j.buffer.BufferOutputStream.ensureBufferPrivate(BufferOutputStream.java:209)
	at org.eclipse.net4j.buffer.BufferOutputStream.write(BufferOutputStream.java:105)
	at java.io.DataOutputStream.writeInt(DataOutputStream.java:197)
	at org.eclipse.net4j.util.io.ExtendedDataOutput$Delegating.writeInt(ExtendedDataOutput.java:115)
	at org.eclipse.emf.cdo.common.protocol.CDOProtocol$CommitNotificationInfo.write(CDOProtocol.java:96)
	at org.eclipse.emf.cdo.server.internal.net4j.protocol.CommitNotificationRequest.requesting(CommitNotificationRequest.java:37)
	at org.eclipse.emf.cdo.server.internal.net4j.protocol.CDOServerRequest.requesting(CDOServerRequest.java:50)
	at org.eclipse.net4j.signal.Request.doExtendedOutput(Request.java:67)
	at org.eclipse.net4j.signal.Signal.doOutput(Signal.java:301)
	at org.eclipse.net4j.signal.Request.doExecute(Request.java:59)
	at org.eclipse.net4j.signal.SignalActor.execute(SignalActor.java:53)
	at org.eclipse.net4j.signal.Signal.runSync(Signal.java:256)
	at org.eclipse.net4j.signal.SignalProtocol.startSignal(SignalProtocol.java:442)
	at org.eclipse.net4j.signal.Request.sendAsync(Request.java:53)
	at org.eclipse.emf.cdo.server.internal.net4j.protocol.CDOServerProtocol.sendCommitNotification(CDOServerProtocol.java:177)
	at org.eclipse.emf.cdo.internal.server.Session.sendCommitNotification(Session.java:462)
	at org.eclipse.emf.cdo.internal.server.SessionManager.sendCommitNotification(SessionManager.java:317)
	at org.eclipse.emf.cdo.internal.server.Repository.sendCommitNotification(Repository.java:913)
	at org.eclipse.emf.cdo.internal.server.TransactionCommitContext.sendCommitNotifications(TransactionCommitContext.java:839)
	at org.eclipse.emf.cdo.internal.server.TransactionCommitContext.postCommit(TransactionCommitContext.java:804)
	at org.eclipse.emf.cdo.server.internal.net4j.protocol.CommitTransactionIndication.responding(CommitTransactionIndication.java:345)
	at org.eclipse.emf.cdo.server.internal.net4j.protocol.CDOServerIndicationWithMonitoring.responding(CDOServerIndicationWithMonitoring.java:170)
	at org.eclipse.net4j.signal.IndicationWithMonitoring.responding(IndicationWithMonitoring.java:93)
	at org.eclipse.net4j.signal.IndicationWithResponse.doExtendedOutput(IndicationWithResponse.java:98)
	at org.eclipse.net4j.signal.Signal.doOutput(Signal.java:301)
	at org.eclipse.net4j.signal.IndicationWithResponse.execute(IndicationWithResponse.java:67)
	at org.eclipse.net4j.signal.IndicationWithMonitoring.execute(IndicationWithMonitoring.java:66)
	at org.eclipse.net4j.signal.Signal.runSync(Signal.java:256)
	at org.eclipse.net4j.signal.Signal.run(Signal.java:149)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
[ERROR] ReportingMonitorTask failed
java.lang.OutOfMemoryError: Direct buffer memory
	at java.nio.Bits.reserveMemory(Bits.java:658)
	at java.nio.DirectByteBuffer.<init>(DirectByteBuffer.java:123)
	at java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:311)
	at org.eclipse.internal.net4j.buffer.Buffer.<init>(Buffer.java:63)
	at org.eclipse.internal.net4j.buffer.BufferFactory.doProvideBuffer(BufferFactory.java:37)
	at org.eclipse.internal.net4j.buffer.BufferProvider.provideBuffer(BufferProvider.java:51)
	at org.eclipse.internal.net4j.buffer.BufferPool.doProvideBuffer(BufferPool.java:137)
	at org.eclipse.internal.net4j.buffer.BufferProvider.provideBuffer(BufferProvider.java:51)
	at org.eclipse.spi.net4j.Connector.provideBuffer(Connector.java:296)
	at org.eclipse.spi.net4j.Channel.provideBuffer(Channel.java:243)
	at org.eclipse.net4j.signal.SignalProtocol$SignalOutputStream$1.provideBuffer(SignalProtocol.java:635)
	at org.eclipse.net4j.buffer.BufferOutputStream.ensureBufferPrivate(BufferOutputStream.java:209)
	at org.eclipse.net4j.buffer.BufferOutputStream.write(BufferOutputStream.java:105)


The server is a 64 bit Application and runs with -Xms4g -Xmx16g

Greetings,
Samuel Leisering
Re: [CDO/Net4j] OutOfMemoryError: Direct buffer memory [message #1708978 is a reply to message #1708868] Wed, 23 September 2015 06:21 Go to previous messageGo to next message
Samuel Leisering is currently offline Samuel LeiseringFriend
Messages: 34
Registered: July 2014
Member
Today the exception happened again. And i forgot to mention that the whole application shuts down after the exception...

After looking through the logs i found a maybe-related exception:
java.lang.IllegalArgumentException
                at java.nio.Buffer.limit(Buffer.java:275)
                at org.eclipse.internal.net4j.buffer.Buffer.startGetting(Buffer.java:189)
                at org.eclipse.net4j.internal.tcp.TCPConnector.handleRead(TCPConnector.java:219)
                at org.eclipse.net4j.internal.tcp.TCPSelector.handleSelection(TCPSelector.java:254)
                at org.eclipse.net4j.internal.tcp.TCPSelector.run(TCPSelector.java:179)
                at java.lang.Thread.run(Thread.java:745)


But i did not see the exception occur yesterday, and yet the OutOfMemory Error still happened
Re: [CDO/Net4j] OutOfMemoryError: Direct buffer memory [message #1708979 is a reply to message #1708978] Wed, 23 September 2015 06:33 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6441
Registered: July 2009
Senior Member
Hi Samuel,

Please submit a bugzilla with all available information (e.g., CDO version, etc...). I'll have a look ASAP, though this
week is still full of Mars.1 preparations...

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper



Am 23.09.2015 um 08:21 schrieb Samuel Leisering:
> Today the exception happened again. And i forgot to mention that the whole application shuts down after the exception...
>
> After looking through the logs i found a maybe-related exception:
>
> java.lang.IllegalArgumentException
> at java.nio.Buffer.limit(Buffer.java:275)
> at org.eclipse.internal.net4j.buffer.Buffer.startGetting(Buffer.java:189)
> at org.eclipse.net4j.internal.tcp.TCPConnector.handleRead(TCPConnector.java:219)
> at org.eclipse.net4j.internal.tcp.TCPSelector.handleSelection(TCPSelector.java:254)
> at org.eclipse.net4j.internal.tcp.TCPSelector.run(TCPSelector.java:179)
> at java.lang.Thread.run(Thread.java:745)
>
>
> But i did not see the exception occur yesterday, and yet the OutOfMemory Error still happened


Re: [CDO/Net4j] OutOfMemoryError: Direct buffer memory [message #1709105 is a reply to message #1708979] Thu, 24 September 2015 06:30 Go to previous message
Samuel Leisering is currently offline Samuel LeiseringFriend
Messages: 34
Registered: July 2014
Member
Ok, here it is: https://bugs.eclipse.org/bugs/show_bug.cgi?id=478253

Greetings,
Samuel
Previous Topic:EMF Forms notification in e4
Next Topic:Loading EMF inside Maven Plugin
Goto Forum:
  


Current Time: Sun Aug 18 11:12:34 GMT 2019

Powered by FUDForum. Page generated in 0.01455 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top