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/01/19 21:38:39 UTC

[GitHub] [pulsar] frankjkelly opened a new issue #9241: Proxy got exception OutOfDirectMemoryError (Pulsar 2.6.1)

frankjkelly opened a new issue #9241:
URL: https://github.com/apache/pulsar/issues/9241


   **Describe the bug**
   Under heavy load Pulsar Proxy exhibited `io.netty.util.internal.OutOfDirectMemoryError`  
   
   **To Reproduce**
   Have not yet been able to reproduce (we increased the number of proxies from 2 to 3 to work around this issue)
   
   The Proxy is configured with -Xmx1G and the pod itself has 2G memory (limits == requests)
   
   **Expected behavior**
   A clear and concise description of what you expected to happen.
   
   **Screenshots**
   Saw this in the log file
   ```
   {"timestamp":1610637633834,"log":"15:20:33.834 [pulsar-proxy-io-2-1] WARN org.apache.pulsar.proxy.server.ProxyConnection - 
   [/127.0.0.1:36988] Got exception OutOfDirectMemoryError : failed to allocate 16777216 byte(s) of direct memory (used: 1073741824, max: 
   1073741824) io.netty.util.internal.OutOfDirectMemoryError: failed to allocate 16777216 byte(s) of direct memory (used: 1073741824, max: 
   1073741824)","stream":"stdout","time":"2021-01-14T15:20:33.834842879Z"}
   ```
   
   Noticed this in Grafana Dashboard
   ![image](https://user-images.githubusercontent.com/62910985/105096063-8ccec780-5a74-11eb-8771-5f04f322bede.png)
   
   
   **Additional context**
    - OS: Linux
    - Deployment: Kubernetes
    - Pulsar: 2.6.1
   
   CC: @addisonj 


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

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



[GitHub] [pulsar] frankjkelly commented on issue #9241: Proxy got exception OutOfDirectMemoryError (Pulsar 2.6.1)

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


   Closing - we had 2G assigned but `Xmx` was 1G and `DirectMemory` was also 1G so we needed to have more than `2G` allocated to the pod


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

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



[GitHub] [pulsar] frankjkelly closed issue #9241: Proxy got exception OutOfDirectMemoryError (Pulsar 2.6.1)

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


   


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

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