-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Closed
Labels
type/bugThe PR fixed a bug or issue reported a bugThe PR fixed a bug or issue reported a bug
Description
Describe the bug
I install pulsar on kubernetes using official helm chart . All my connector can not created successfully, even the builtin( for example debezium-mysql ).
I found the OutOfDirectMemoryError of direct memory in the log of broker. But the exception still exists after increate direct memory from 256MB to 2GB.
But the connector runs in local mode normally.
To Reproduce
- helm upgrade --install pulsar apache/pulsar --timeout 10m --set initialize=true
2
bin/pulsar-admin source create --tenant iot --namespace pipe \
--name xxxxx --destination-topic-name xxx/xxx/xxx --parallelism 1 --archive builtin://debezium-mysql \
--source-config '{ "database.hostname": "mysql", "database.port": "3306", "database.user": "xxxx", "database.password": "xxxxx","database.server.id": "1","database.server.name": "xxxxx","database.whitelist": "xxxx", "table.whitelist": "xxxxxx","schemas.enable":false,"pulsar.service.url": "pulsar://pulsar-proxy:6650" }'
- the broker log
06:24:14.597 [DL-io-0] ERROR org.apache.bookkeeper.common.allocator.impl.ByteBufAllocatorImpl - Unable to allocate memory
io.netty.util.internal.OutOfDirectMemoryError: failed to allocate 16777216 byte(s) of direct memory (used: 251658247, max: 268435456)
at io.netty.util.internal.PlatformDependent.incrementMemoryCounter(PlatformDependent.java:742) ~[io.netty-netty-common-4.1.48.Final.jar:4.1.48.Final]
at io.netty.util.internal.PlatformDependent.allocateDirectNoCleaner(PlatformDependent.java:697) ~[io.netty-netty-common-4.1.48.Final.jar:4.1.48.Final]
at io.netty.buffer.PoolArena$DirectArena.allocateDirect(PoolArena.java:758) ~[io.netty-netty-buffer-4.1.48.Final.jar:4.1.48.Final]
at io.netty.buffer.PoolArena$DirectArena.newChunk(PoolArena.java:734) ~[io.netty-netty-buffer-4.1.48.Final.jar:4.1.48.Final]
at io.netty.buffer.PoolArena.allocateNormal(PoolArena.java:245) ~[io.netty-netty-buffer-4.1.48.Final.jar:4.1.48.Final]
at io.netty.buffer.PoolArena.allocate(PoolArena.java:227) ~[io.netty-netty-buffer-4.1.48.Final.jar:4.1.48.Final]
at io.netty.buffer.PoolArena.allocate(PoolArena.java:147) ~[io.netty-netty-buffer-4.1.48.Final.jar:4.1.48.Final]
Expected behavior
The source connector created successfully.
Additional context
helm chart version: 2.7.0 and 2.6.3-2
kubernetes:v1.18.10
Metadata
Metadata
Assignees
Labels
type/bugThe PR fixed a bug or issue reported a bugThe PR fixed a bug or issue reported a bug