You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2021/10/27 08:36:35 UTC

[GitHub] [pulsar] xiaobing0508 opened a new issue #12509: Bookies oom

xiaobing0508 opened a new issue #12509:
URL: https://github.com/apache/pulsar/issues/12509


   ### In PULSAR_HOME/logs/pulsar-bookie.log :
   16:00:28.189 [BookieReadThreadPool-OrderedExecutor-6-0] ERROR org.apache.bookkeeper.proto.BookieServer - Unable to allocate memory, exiting bookie
   io.netty.util.internal.OutOfDirectMemoryError: failed to allocate 16777216 byte(s) of direct memory (used: 246960619520, max: 246960619520)
           at io.netty.util.internal.PlatformDependent.incrementMemoryCounter(PlatformDependent.java:802) ~[io.netty-netty-common-4.1.66.Final.jar:4.1.66.Final]
           at io.netty.util.internal.PlatformDependent.allocateDirectNoCleaner(PlatformDependent.java:731) ~[io.netty-netty-common-4.1.66.Final.jar:4.1.66.Final]
           at io.netty.buffer.PoolArena$DirectArena.allocateDirect(PoolArena.java:632) ~[io.netty-netty-buffer-4.1.66.Final.jar:4.1.66.Final]
           at io.netty.buffer.PoolArena.allocate(PoolArena.java:126) ~[io.netty-netty-buffer-4.1.66.Final.jar:4.1.66.Final]
           at io.netty.buffer.PooledByteBufAllocator.newDirectBuffer(PooledByteBufAllocator.java:395) ~[io.netty-netty-buffer-4.1.66.Final.jar:4.1.66.Final]
           at io.netty.buffer.AbstractByteBufAllocator.directBuffer(AbstractByteBufAllocator.java:187) [io.netty-netty-buffer-4.1.66.Final.jar:4.1.66.Final]
           at org.apache.bookkeeper.bookie.storage.ldb.ReadCache.get(ReadCache.java:145) [org.apache.bookkeeper-bookkeeper-server-4.14.2.jar:4.14.2]
           at org.apache.bookkeeper.bookie.storage.ldb.DbLedgerStorage.getEntry(DbLedgerStorage.java:200) [org.apache.bookkeeper-bookkeeper-server-4.14.2.jar:4.14.2]
           at org.apache.bookkeeper.bookie.LedgerDescriptorImpl.readEntry(LedgerDescriptorImpl.java:160) [org.apache.bookkeeper-bookkeeper-server-4.14.2.jar:4.14.2]
           at org.apache.bookkeeper.bookie.Bookie.readEntry(Bookie.java:1500) [org.apache.bookkeeper-bookkeeper-server-4.14.2.jar:4.14.2]
           at org.apache.bookkeeper.proto.ReadEntryProcessor.processPacket(ReadEntryProcessor.java:83) [org.apache.bookkeeper-bookkeeper-server-4.14.2.jar:4.14.2]
           at org.apache.bookkeeper.proto.PacketProcessorBase.safeRun(PacketProcessorBase.java:106) [org.apache.bookkeeper-bookkeeper-server-4.14.2.jar:4.14.2]
           at org.apache.bookkeeper.common.util.SafeRunnable.run(SafeRunnable.java:36) [org.apache.bookkeeper-bookkeeper-common-4.14.2.jar:4.14.2]
           at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_181]
           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_181]
           at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) [io.netty-netty-common-4.1.66.Final.jar:4.1.66.Final]
   io.netty.util.internal.OutOfDirectMemoryError: failed to allocate 16777216 byte(s) of direct memory (used: 42949672960, max: 42949672960)
           at io.netty.util.internal.PlatformDependent.incrementMemoryCounter(PlatformDependent.java:802) ~[io.netty-netty-common-4.1.66.Final.jar:4.1.66.Final]
           at io.netty.util.internal.PlatformDependent.allocateDirectNoCleaner(PlatformDependent.java:731) ~[io.netty-netty-common-4.1.66.Final.jar:4.1.66.Final]
           at io.netty.buffer.PoolArena.allocateNormal(PoolArena.java:202) ~[io.netty-netty-buffer-4.1.66.Final.jar:4.1.66.Final]
           at io.netty.buffer.PoolArena.tcacheAllocateNormal(PoolArena.java:186) ~[io.netty-netty-buffer-4.1.66.Final.jar:4.1.66.Final]
           at io.netty.buffer.PoolArena.allocate(PoolArena.java:136) ~[io.netty-netty-buffer-4.1.66.Final.jar:4.1.66.Final]
           at io.netty.buffer.PoolArena.allocate(PoolArena.java:126) ~[io.netty-netty-buffer-4.1.66.Final.jar:4.1.66.Final]
           at io.netty.buffer.PooledByteBufAllocator.newDirectBuffer(PooledByteBufAllocator.java:395) ~[io.netty-netty-buffer-4.1.66.Final.jar:4.1.66.Final]
           at io.netty.buffer.AbstractByteBufAllocator.directBuffer(AbstractByteBufAllocator.java:187) ~[io.netty-netty-buffer-4.1.66.Final.jar:4.1.66.Final]
           at io.netty.buffer.AbstractByteBufAllocator.directBuffer(AbstractByteBufAllocator.java:187) [io.netty-netty-buffer-4.1.66.Final.jar:4.1.66.Final]
           at org.apache.bookkeeper.bookie.storage.ldb.ReadCache.get(ReadCache.java:145) [org.apache.bookkeeper-bookkeeper-server-4.14.2.jar:4.14.2]
           at org.apache.bookkeeper.bookie.storage.ldb.DbLedgerStorage.getEntry(DbLedgerStorage.java:200) [org.apache.bookkeeper-bookkeeper-server-4.14.2.jar:4.14.2]
           at org.apache.bookkeeper.bookie.LedgerDescriptorImpl.readEntry(LedgerDescriptorImpl.java:160) [org.apache.bookkeeper-bookkeeper-server-4.14.2.jar:4.14.2]
           at org.apache.bookkeeper.bookie.Bookie.readEntry(Bookie.java:1500) [org.apache.bookkeeper-bookkeeper-server-4.14.2.jar:4.14.2]
           at org.apache.bookkeeper.proto.ReadEntryProcessor.processPacket(ReadEntryProcessor.java:83) [org.apache.bookkeeper-bookkeeper-server-4.14.2.jar:4.14.2]
           at org.apache.bookkeeper.proto.PacketProcessorBase.safeRun(PacketProcessorBase.java:106) [org.apache.bookkeeper-bookkeeper-server-4.14.2.jar:4.14.2]
           at org.apache.bookkeeper.common.util.SafeRunnable.run(SafeRunnable.java:36) [org.apache.bookkeeper-bookkeeper-common-4.14.2.jar:4.14.2]
           at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_181]
           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_181]
           at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) [io.netty-netty-common-4.1.66.Final.jar:4.1.66.Final]
           at java.lang.Thread.run(Thread.java:748) [?:1.8.0_181]
   16:00:28.190 [main-EventThread] INFO  org.apache.zookeeper.ClientCnxn - EventThread shut down for session: 0x200192f8cf60058
   16:00:28.190 [BookieReadThreadPool-OrderedExecutor-6-0] ERROR org.apache.bookkeeper.proto.ReadEntryProcessor - Unexpected exception reading at 342:45964 : null
   java.lang.IllegalThreadStateException: null
           at java.lang.Thread.start(Thread.java:708) ~[?:1.8.0_181]
           at org.apache.bookkeeper.common.component.ComponentStarter.lambda$startComponent$0(ComponentStarter.java:79) ~[org.apache.bookkeeper-bookkeeper-common-4.14.2.jar:4.14.2]
           at org.apache.bookkeeper.proto.BookieServer.lambda$getAllocator$1(BookieServer.java:322) ~[org.apache.bookkeeper-bookkeeper-server-4.14.2.jar:4.14.2]
           at org.apache.bookkeeper.common.allocator.impl.ByteBufAllocatorImpl.newDirectBuffer(ByteBufAllocatorImpl.java:174) ~[org.apache.bookkeeper-bookkeeper-common-allocator-4.14.2.jar:4.14.2]
           at org.apache.bookkeeper.common.allocator.impl.ByteBufAllocatorImpl.newDirectBuffer(ByteBufAllocatorImpl.java:157) ~[org.apache.bookkeeper-bookkeeper-common-allocator-4.14.2.jar:4.14.2]
           at io.netty.buffer.AbstractByteBufAllocator.directBuffer(AbstractByteBufAllocator.java:187) ~[io.netty-netty-buffer-4.1.66.Final.jar:4.1.66.Final]
           at org.apache.bookkeeper.bookie.storage.ldb.ReadCache.get(ReadCache.java:145) ~[org.apache.bookkeeper-bookkeeper-server-4.14.2.jar:4.14.2]
           at org.apache.bookkeeper.bookie.storage.ldb.SingleDirectoryDbLedgerStorage.getEntry(SingleDirectoryDbLedgerStorage.java:438) ~[org.apache.bookkeeper-bookkeeper-server-4.14.2.jar:4.14.2]
           at org.apache.bookkeeper.bookie.storage.ldb.DbLedgerStorage.getEntry(DbLedgerStorage.java:200) ~[org.apache.bookkeeper-bookkeeper-server-4.14.2.jar:4.14.2]
           at org.apache.bookkeeper.bookie.LedgerDescriptorImpl.readEntry(LedgerDescriptorImpl.java:160) ~[org.apache.bookkeeper-bookkeeper-server-4.14.2.jar:4.14.2]
           at org.apache.bookkeeper.bookie.Bookie.readEntry(Bookie.java:1500) ~[org.apache.bookkeeper-bookkeeper-server-4.14.2.jar:4.14.2]
           at org.apache.bookkeeper.proto.ReadEntryProcessor.processPacket(ReadEntryProcessor.java:83) [org.apache.bookkeeper-bookkeeper-server-4.14.2.jar:4.14.2]
           at org.apache.bookkeeper.proto.PacketProcessorBase.safeRun(PacketProcessorBase.java:106) [org.apache.bookkeeper-bookkeeper-server-4.14.2.jar:4.14.2]
           at org.apache.bookkeeper.common.util.SafeRunnable.run(SafeRunnable.java:36) [org.apache.bookkeeper-bookkeeper-common-4.14.2.jar:4.14.2]
           at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_181]
           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_181]
           at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) [io.netty-netty-common-4.1.66.Final.jar:4.1.66.Final]
           at java.lang.Thread.run(Thread.java:748) [?:1.8.0_181]
   
   BOOKIE_MEM MaxDirectMemorySize is 230GB.
   
   can't set it to any number.
   
   I don't know what happened.
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] lhotari commented on issue #12509: Bookies oom

Posted by GitBox <gi...@apache.org>.
lhotari commented on issue #12509:
URL: https://github.com/apache/pulsar/issues/12509#issuecomment-952847256


   After enabling Netty leak detector, run your workload and grep the logs for "LEAK:".


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] lhotari commented on issue #12509: Bookies oom

Posted by GitBox <gi...@apache.org>.
lhotari commented on issue #12509:
URL: https://github.com/apache/pulsar/issues/12509#issuecomment-952849395


   > apache-pulsar-2.8.1
   
   @xiaobing0508 just to clarify: does your use case run fine on some Pulsar version?


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] xiaobing0508 commented on issue #12509: Bookies oom

Posted by GitBox <gi...@apache.org>.
xiaobing0508 commented on issue #12509:
URL: https://github.com/apache/pulsar/issues/12509#issuecomment-952843741


   ### Debug log level enable.
   19:39:24.176 [qtp1137989065-219] DEBUG org.eclipse.jetty.server.HttpOutput - write(array HeapByteBuffer@269e75f9[p=0,l=1,c=512,r=1]={<<<\n>>>eplicatio...\x00\x00\x00\x00\x00\x00\x00})
   19:39:24.181 [BookieReadThreadPool-OrderedExecutor-6-0] DEBUG org.apache.bookkeeper.proto.ReadEntryProcessor - Received new read request: Op(2)[Ledger:342,Entry:45965]
   19:39:24.181 [BookieReadThreadPool-OrderedExecutor-6-0] DEBUG org.apache.bookkeeper.bookie.storage.ldb.SingleDirectoryDbLedgerStorage - Get Entry: 342@45965
   19:39:24.181 [BookieReadThreadPool-OrderedExecutor-6-0] DEBUG org.apache.bookkeeper.proto.ReadEntryProcessor - ##### Read entry ##### 1537 -- ref-count: 1
   19:39:24.176 [BookieReadThreadPool-OrderedExecutor-1-0] DEBUG org.apache.bookkeeper.proto.ReadEntryProcessor - Received new read request: Op(2)[Ledger:641,Entry:1474236]
   19:39:24.182 [BookieReadThreadPool-OrderedExecutor-1-0] DEBUG org.apache.bookkeeper.bookie.storage.ldb.SingleDirectoryDbLedgerStorage - Get Entry: 641@1474236
   19:39:24.182 [BookieReadThreadPool-OrderedExecutor-1-0] DEBUG org.apache.bookkeeper.proto.ReadEntryProcessor - ##### Read entry ##### 2150 -- ref-count: 1
   19:39:24.182 [qtp1137989065-219] DEBUG org.eclipse.jetty.server.HttpOutput - write(array) s=OPEN,api=BLOCKING,sc=false,e=null aggregated !flush DirectByteBuffer@63674888[p=0,l=20639,c=32768,r=20639]={<<<jvm_memory_direct_bytes_u...ClientWorker_queue_0 0\n>>>mmary\nrep...ER{succ}
   19:39:24.182 [qtp1137989065-219] DEBUG org.eclipse.jetty.server.HttpOutput - write(array HeapByteBuffer@762467e7[p=0,l=7,c=512,r=7]={<<<# TYPE >>>tion_book...\x00\x00\x00\x00\x00\x00\x00})
   19:39:24.182 [qtp1137989065-219] DEBUG org.eclipse.jetty.server.HttpOutput - write(array) s=OPEN,api=BLOCKING,sc=false,e=null aggregated !flush DirectByteBuffer@63674888[p=0,l=20646,c=32768,r=20646]={<<<jvm_memory_direct_bytes_u...orker_queue_0 0\n# TYPE >>>eplicatio...ER{succ}
   19:39:24.182 [qtp1137989065-219] DEBUG org.eclipse.jetty.server.HttpOutput - write(array HeapByteBuffer@7f5b0186[p=0,l=67,c=512,r=67]={<<<replication_bookkeeper_cl...ntWorker_total_tasks_44>>>ACE_PERIO...\x00\x00\x00\x00\x00\x00\x00})
   19:39:24.182 [qtp1137989065-219] DEBUG org.eclipse.jetty.server.HttpOutput - write(array) s=OPEN,api=BLOCKING,sc=false,e=null aggregated !flush DirectByteBuffer@63674888[p=0,l=20713,c=32768,r=20713]={<<<jvm_memory_direct_bytes_u...ntWorker_total_tasks_44>>>ENTRIES{s...ER{succ}
   19:39:24.182 [qtp1137989065-219] DEBUG org.eclipse.jetty.server.HttpOutput - write(array HeapByteBuffer@2a3f8229[p=0,l=7,c=512,r=7]={<<< gauge\n>>>tion_book...\x00\x00\x00\x00\x00\x00\x00})
   19:39:24.182 [qtp1137989065-219] DEBUG org.eclipse.jetty.server.HttpOutput - write(array) s=OPEN,api=BLOCKING,sc=false,e=null aggregated !flush DirectByteBuffer@63674888[p=0,l=20720,c=32768,r=20720]={<<<jvm_memory_direct_bytes_u...r_total_tasks_44 gauge\n>>>{success=...ER{succ}
   19:39:24.182 [qtp1137989065-219] DEBUG org.eclipse.jetty.server.HttpOutput - write(array HeapByteBuffer@1e10828d[p=0,l=67,c=512,r=67]={<<<replication_bookkeeper_cl...ntWorker_total_tasks_44>>>ACE_PERIO...\x00\x00\x00\x00\x00\x00\x00})
   19:39:24.182 [qtp1137989065-219] DEBUG org.eclipse.jetty.server.HttpOutput - write(array) s=OPEN,api=BLOCKING,sc=false,e=null aggregated !flush DirectByteBuffer@63674888[p=0,l=20787,c=32768,r=20787]={<<<jvm_memory_direct_bytes_u...ntWorker_total_tasks_44>>>bookkeepe...ER{succ}
   19:39:24.182 [qtp1137989065-219] DEBUG org.eclipse.jetty.server.HttpOutput - write(array HeapByteBuffer@4bded5f7[p=0,l=1,c=512,r=1]={<<< >>>eplicatio...\x00\x00\x00\x00\x00\x00\x00})
   19:39:24.182 [qtp1137989065-219] DEBUG org.eclipse.jetty.server.HttpOutput - write(array) s=OPEN,api=BLOCKING,sc=false,e=null aggregated !flush DirectByteBuffer@63674888[p=0,l=20788,c=32768,r=20788]={<<<jvm_memory_direct_bytes_u...tWorker_total_tasks_44 >>>ookkeeper...ER{succ}
   19:39:24.182 [BookieReadThreadPool-OrderedExecutor-1-0] DEBUG org.apache.bookkeeper.proto.ReadEntryProcessor - Received new read request: Op(2)[Ledger:641,Entry:1474238]
   19:39:24.182 [qtp1137989065-219] DEBUG org.eclipse.jetty.server.HttpOutput - write(array HeapByteBuffer@6c2eba3b[p=0,l=1,c=512,r=1]={<<<1>>>eplicatio...\x00\x00\x00\x00\x00\x00\x00})
   19:39:24.182 [BookieReadThreadPool-OrderedExecutor-1-0] DEBUG org.apache.bookkeeper.bookie.storage.ldb.SingleDirectoryDbLedgerStorage - Get Entry: 641@1474238
   19:39:24.182 [qtp1137989065-219] DEBUG org.eclipse.jetty.server.HttpOutput - write(array) s=OPEN,api=BLOCKING,sc=false,e=null aggregated !flush DirectByteBuffer@63674888[p=0,l=20789,c=32768,r=20789]={<<<jvm_memory_direct_bytes_u...Worker_total_tasks_44 1>>>okkeeper_...ER{succ}
   19:39:24.182 [qtp1137989065-219] DEBUG org.eclipse.jetty.server.HttpOutput - write(array HeapByteBuffer@3ad6435d[p=0,l=1,c=512,r=1]={<<<\n>>>eplicatio...\x00\x00\x00\x00\x00\x00\x00})
   19:39:24.182 [qtp1137989065-219] DEBUG org.eclipse.jetty.server.HttpOutput - write(array) s=OPEN,api=BLOCKING,sc=false,e=null aggregated !flush DirectByteBuffer@63674888[p=0,l=20790,c=32768,r=20790]={<<<jvm_memory_direct_bytes_u...orker_total_tasks_44 1\n>>>kkeeper_c...ER{succ}
   19:39:24.182 [BookieReadThreadPool-OrderedExecutor-1-0] DEBUG org.apache.bookkeeper.proto.ReadEntryProcessor - ##### Read entry ##### 2558 -- ref-count: 1
   19:39:24.182 [qtp1137989065-219] DEBUG org.eclipse.jetty.server.HttpOutput - write(array HeapByteBuffer@20c8aa60[p=0,l=7,c=512,r=7]={<<<# TYPE >>>tion_book...\x00\x00\x00\x00\x00\x00\x00})
   19:39:24.182 [qtp1137989065-219] DEBUG org.eclipse.jetty.server.HttpOutput - write(array) s=OPEN,api=BLOCKING,sc=false,e=null aggregated !flush DirectByteBuffer@63674888[p=0,l=20797,c=32768,r=20797]={<<<jvm_memory_direct_bytes_u...otal_tasks_44 1\n# TYPE >>>_client_L...ER{succ}


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] xiaobing0508 commented on issue #12509: Bookies oom

Posted by GitBox <gi...@apache.org>.
xiaobing0508 commented on issue #12509:
URL: https://github.com/apache/pulsar/issues/12509#issuecomment-952839077


   Because java version? @lhotari 


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] xiaobing0508 commented on issue #12509: Bookies oom

Posted by GitBox <gi...@apache.org>.
xiaobing0508 commented on issue #12509:
URL: https://github.com/apache/pulsar/issues/12509#issuecomment-952853690


   What can I do now ? I just want bookies is run. @lhotari 


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] xiaobing0508 commented on issue #12509: Bookies oom

Posted by GitBox <gi...@apache.org>.
xiaobing0508 commented on issue #12509:
URL: https://github.com/apache/pulsar/issues/12509#issuecomment-952884880


   I don't know server backpressure by default.What can I do?


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] xiaobing0508 commented on issue #12509: Bookies oom

Posted by GitBox <gi...@apache.org>.
xiaobing0508 commented on issue #12509:
URL: https://github.com/apache/pulsar/issues/12509#issuecomment-952839364


   CentOS Linux release 7.9.2009 (Core)
   3.10.0-1127.el7.x86_64


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] lhotari commented on issue #12509: Bookies oom

Posted by GitBox <gi...@apache.org>.
lhotari commented on issue #12509:
URL: https://github.com/apache/pulsar/issues/12509#issuecomment-953041932


   > Have already been solved,Thank you @lhotari .
   
   Would you mind sharing the resolution?


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] xiaobing0508 commented on issue #12509: Bookies oom

Posted by GitBox <gi...@apache.org>.
xiaobing0508 commented on issue #12509:
URL: https://github.com/apache/pulsar/issues/12509#issuecomment-952864493


   Before starting broker,`export PULSAR_EXTRA_OPTS=-Dpulsar.allocator.leak_detection=Advanced -Dio.netty.leakDetectionLevel=advanced -Dio.netty.leakDetection.targetRecords=40` ?
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] lhotari commented on issue #12509: Bookies oom

Posted by GitBox <gi...@apache.org>.
lhotari commented on issue #12509:
URL: https://github.com/apache/pulsar/issues/12509#issuecomment-952838269


   Could you share some other details about the environment, OS and installation type?


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] lhotari commented on issue #12509: Bookies oom

Posted by GitBox <gi...@apache.org>.
lhotari commented on issue #12509:
URL: https://github.com/apache/pulsar/issues/12509#issuecomment-952880346


   > Before starting broker,`export PULSAR_EXTRA_OPTS=-Dpulsar.allocator.leak_detection=Advanced -Dio.netty.leakDetectionLevel=advanced -Dio.netty.leakDetection.targetRecords=40` ?
   
   Only if you had OutOfDirectMemoryError on the broker. I just mentioned that as a sidenote that the configuration for enabling Netty leakdetector is different for the broker.
    


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] lhotari commented on issue #12509: Bookies oom

Posted by GitBox <gi...@apache.org>.
lhotari commented on issue #12509:
URL: https://github.com/apache/pulsar/issues/12509#issuecomment-952848749


   If it's not a leak, then #10439 might be helpful.


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] lhotari commented on issue #12509: Bookies oom

Posted by GitBox <gi...@apache.org>.
lhotari commented on issue #12509:
URL: https://github.com/apache/pulsar/issues/12509#issuecomment-952855026


   > What can I do now ? I just want bookies is run. @lhotari
   
   please check https://github.com/apache/pulsar/issues/12509#issuecomment-952846690 as a recommendation for investigating the problem.
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] lhotari commented on issue #12509: Bookies oom

Posted by GitBox <gi...@apache.org>.
lhotari commented on issue #12509:
URL: https://github.com/apache/pulsar/issues/12509#issuecomment-952837026


   @xiaobing0508  Well it might not really make a difference, but it appear that you are running Java 1.8.0_181 . That is over 3 years old release. Is there a specific reason to run an outdated Java 8 version 1.8.0_181 ?


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] xiaobing0508 commented on issue #12509: Bookies oom

Posted by GitBox <gi...@apache.org>.
xiaobing0508 commented on issue #12509:
URL: https://github.com/apache/pulsar/issues/12509#issuecomment-952841385


   251G
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] xiaobing0508 commented on issue #12509: Bookies oom

Posted by GitBox <gi...@apache.org>.
xiaobing0508 commented on issue #12509:
URL: https://github.com/apache/pulsar/issues/12509#issuecomment-952856189


   `-Dio.netty.leakDetectionLevel=advanced -Dio.netty.leakDetection.targetRecords=40`
   I should put it there?


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] lhotari commented on issue #12509: Bookies oom

Posted by GitBox <gi...@apache.org>.
lhotari commented on issue #12509:
URL: https://github.com/apache/pulsar/issues/12509#issuecomment-952846690


   I'd recommend running with normal log level and [enabling Netty leak detector](https://netty.io/wiki/reference-counted-objects.html#troubleshooting-buffer-leaks) by adding 
   ```-Dio.netty.leakDetectionLevel=advanced -Dio.netty.leakDetection.targetRecords=40``` to `BOOKIE_EXTRA_OPTS`. 
   
   (A sidenote: to enable Netty leak detector in Pulsar, it is necessary to set `-Dpulsar.allocator.leak_detection=Advanced -Dio.netty.leakDetectionLevel=advanced -Dio.netty.leakDetection.targetRecords=40` in `PULSAR_EXTRA_OPTS`. ) 
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] xiaobing0508 commented on issue #12509: Bookies oom

Posted by GitBox <gi...@apache.org>.
xiaobing0508 commented on issue #12509:
URL: https://github.com/apache/pulsar/issues/12509#issuecomment-953424214


   Because presto,I killed it,Bookkeeper is runing.


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] xiaobing0508 commented on issue #12509: Bookies oom

Posted by GitBox <gi...@apache.org>.
xiaobing0508 commented on issue #12509:
URL: https://github.com/apache/pulsar/issues/12509#issuecomment-952700842


   Suddenly shutdown.


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] lhotari closed issue #12509: Bookies oom

Posted by GitBox <gi...@apache.org>.
lhotari closed issue #12509:
URL: https://github.com/apache/pulsar/issues/12509


   


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] lhotari edited a comment on issue #12509: Bookies oom

Posted by GitBox <gi...@apache.org>.
lhotari edited a comment on issue #12509:
URL: https://github.com/apache/pulsar/issues/12509#issuecomment-952880346


   > Before starting broker,`export PULSAR_EXTRA_OPTS=-Dpulsar.allocator.leak_detection=Advanced -Dio.netty.leakDetectionLevel=advanced -Dio.netty.leakDetection.targetRecords=40` ?
   
   Only if you had OutOfDirectMemoryError on the broker. I just mentioned that as a sidenote since the configuration for enabling Netty leakdetector is different for the broker.
    


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] lhotari commented on issue #12509: Bookies oom

Posted by GitBox <gi...@apache.org>.
lhotari commented on issue #12509:
URL: https://github.com/apache/pulsar/issues/12509#issuecomment-952858276


   @xiaobing0508 You also might want to try setting `autoRecoveryDaemonEnabled=false` in `conf/bookkeeper.conf` file. See https://github.com/apache/bookkeeper/issues/2729#issuecomment-856921213 for more details.


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] xiaobing0508 commented on issue #12509: Bookies oom

Posted by GitBox <gi...@apache.org>.
xiaobing0508 commented on issue #12509:
URL: https://github.com/apache/pulsar/issues/12509#issuecomment-952710418


   apache-pulsar-2.8.1


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] xiaobing0508 commented on issue #12509: Bookies oom

Posted by GitBox <gi...@apache.org>.
xiaobing0508 commented on issue #12509:
URL: https://github.com/apache/pulsar/issues/12509#issuecomment-952704935


   I don't use pulsar-perl.


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] lhotari commented on issue #12509: Bookies oom

Posted by GitBox <gi...@apache.org>.
lhotari commented on issue #12509:
URL: https://github.com/apache/pulsar/issues/12509#issuecomment-952840580


   > Because java version? @lhotari
   
   It might not be the root cause, but it's always worth running most recent Java version since plenty of bugs have been fixed over the years. Pulsar 2.8.1 will also run smoothly on Java 11.


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] xiaobing0508 commented on issue #12509: Bookies oom

Posted by GitBox <gi...@apache.org>.
xiaobing0508 commented on issue #12509:
URL: https://github.com/apache/pulsar/issues/12509#issuecomment-952881285


   I don't grep the logs for "LEAK:".


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] xiaobing0508 commented on issue #12509: Bookies oom

Posted by GitBox <gi...@apache.org>.
xiaobing0508 commented on issue #12509:
URL: https://github.com/apache/pulsar/issues/12509#issuecomment-953030967


   Have already been solved,Thank you @lhotari .


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] xiaobing0508 commented on issue #12509: Bookies oom

Posted by GitBox <gi...@apache.org>.
xiaobing0508 commented on issue #12509:
URL: https://github.com/apache/pulsar/issues/12509#issuecomment-952705519


   As usual,read and write.


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] lhotari commented on issue #12509: Bookies oom

Posted by GitBox <gi...@apache.org>.
lhotari commented on issue #12509:
URL: https://github.com/apache/pulsar/issues/12509#issuecomment-952707562


   What Pulsar / Bookkeeper version is this about?


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] lhotari commented on issue #12509: Bookies oom

Posted by GitBox <gi...@apache.org>.
lhotari commented on issue #12509:
URL: https://github.com/apache/pulsar/issues/12509#issuecomment-952857672


   > `-Dio.netty.leakDetectionLevel=advanced -Dio.netty.leakDetection.targetRecords=40` I should put it there?
   
   One way to do this is to 
   ```
   export BOOKIE_EXTRA_OPTS="-Dio.netty.leakDetectionLevel=advanced -Dio.netty.leakDetection.targetRecords=40"
   ```
   before starting the bookies or adding it to a location where it gets picked up.


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] xiaobing0508 commented on issue #12509: Bookies oom

Posted by GitBox <gi...@apache.org>.
xiaobing0508 commented on issue #12509:
URL: https://github.com/apache/pulsar/issues/12509#issuecomment-952851517


   I tried pulsar 2.7.1 version on java 1.8.0_65.


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] lhotari commented on issue #12509: Bookies oom

Posted by GitBox <gi...@apache.org>.
lhotari commented on issue #12509:
URL: https://github.com/apache/pulsar/issues/12509#issuecomment-952841083


   > BOOKIE_MEM MaxDirectMemorySize is 230GB.
   
   That is plenty of memory. How much RAM do you have in the system in total?


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org