-
Notifications
You must be signed in to change notification settings - Fork 8.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
seata-server throw java.lang.OutOfMemoryError: Direct buffer memory #1368
Comments
seata-server throw java.lang.OutOfMemoryError: Direct buffer memory
Ⅰ. Issue DescriptionIn idea debug,springcloud-jpa-seata/order-service @Transactional(rollbackFor = Exception.class)
public void create(String userId, String commodityCode, Integer count) {
BigDecimal orderMoney = new BigDecimal(count).multiply(new BigDecimal(5));
Order order = new Order();
order.setUserId(userId);
order.setCommodityCode(commodityCode);
order.setCount(count);
order.setMoney(orderMoney);
orderDAO.save(order);
/**Deduction inventory debug breakpoint */
storageFeignClient.deduct(commodityCode, count);
} "seata-server java.lang.OutOfMemoryError: Direct buffer memory" appears during debugging. Ⅱ. Describe what happened2019-07-30 14:26:48.874 ERROR[NettyServerNIOWorker_8_8]io.seata.core.rpc.netty.AbstractRpcRemoting.exceptionCaught:424 -0318
java.lang.OutOfMemoryError: Direct buffer memory
at java.base/java.nio.Bits.reserveMemory(Bits.java:175)
at java.base/java.nio.DirectByteBuffer.<init>(DirectByteBuffer.java:118)
at java.base/java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:317)
at io.netty.buffer.PoolArena$DirectArena.allocateDirect(PoolArena.java:764)
at io.netty.buffer.PoolArena$DirectArena.newChunk(PoolArena.java:740)
at io.netty.buffer.PoolArena.allocateNormal(PoolArena.java:244)
at io.netty.buffer.PoolArena.allocate(PoolArena.java:214)
at io.netty.buffer.PoolArena.allocate(PoolArena.java:146)
at io.netty.buffer.PooledByteBufAllocator.newDirectBuffer(PooledByteBufAllocator.java:324)
at io.netty.buffer.AbstractByteBufAllocator.directBuffer(AbstractByteBufAllocator.java:185)
at io.netty.buffer.AbstractByteBufAllocator.directBuffer(AbstractByteBufAllocator.java:176)
at io.netty.buffer.AbstractByteBufAllocator.ioBuffer(AbstractByteBufAllocator.java:137)
at io.netty.channel.DefaultMaxMessagesRecvByteBufAllocator$MaxMessageHandle.allocate(DefaultMaxMessagesRecvByteBufAllocator.java:114)
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:147)
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:645)
at io.netty.channel.nio.NioEventLoop.processSelectedKeysPlain(NioEventLoop.java:545)
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:499)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:459)
at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:884)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.base/java.lang.Thread.run(Thread.java:835)
Ⅲ. Describe what you expected to happenⅣ. How to reproduce it (as minimally and precisely as possible)Ⅴ. Anything else we need to know?Seata now support Debug? Ⅵ. Environment:
|
which seata server version you used |
@hermeshephaestus seata-server version: v0.7.1 |
Can you attach seata's log file? |
file seata-server.log
|
@runcoding has fixed in develop branch #1333 #1313 |
Ⅰ. Issue Description
In idea debug,springcloud-jpa-seata/order-service
"seata-server java.lang.OutOfMemoryError: Direct buffer memory" appears during debugging.
Ⅱ. Describe what happened
seata-server console OOM
Ⅲ. Describe what you expected to happen
Ⅳ. How to reproduce it (as minimally and precisely as possible)
Ⅴ. Anything else we need to know?
Seata now support Debug?
Ⅵ. Environment:
VM Flags:
-Xmx1G
-Xms1G
-Xmn256M
-XX:MaxMetaspaceSize=256M
-XX:MaxDirectMemorySize=1G
-XX:MetaspaceSize=256M
-XX:+UseParallelGC
-XX:+UseAdaptiveSizePolicy
-XX:MaxGCPauseMillis=100
The text was updated successfully, but these errors were encountered: