Please delete my account. I am getting too much mails everyday.

I Am not getting option in use profile.

Username - pratibha.pa...@siemens.com

-----Original Message-----
From: ASF GitHub Bot (Jira) <j...@apache.org> 
Sent: Tuesday, January 5, 2021 10:51 PM
To: iss...@activemq.apache.org
Subject: [jira] [Work logged] (ARTEMIS-3021) OOM due to wrong CORE message 
memory estimation


     [ 
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fissues.apache.org%2Fjira%2Fbrowse%2FARTEMIS-3021%3FfocusedWorklogId%3D531359%26page%3Dcom.atlassian.jira.plugin.system.issuetabpanels%3Aworklog-tabpanel%23worklog-531359&amp;data=04%7C01%7Cpratibha.patil%40siemens.com%7C70c604a6390c4dd8d80b08d8b19e47a2%7C38ae3bcd95794fd4addab42e1495d55a%7C1%7C0%7C637454640700572684%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=ntHKSO8ulEITS1W847MMvNwhHLlH1tRz0dswo4TpDtQ%3D&amp;reserved=0
 ]

ASF GitHub Bot logged work on ARTEMIS-3021:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 05/Jan/21 17:20
            Start Date: 05/Jan/21 17:20
    Worklog Time Spent: 10m 
      Work Description: franz1981 commented on a change in pull request #3370:
URL: 
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Factivemq-artemis%2Fpull%2F3370%23discussion_r552075767&amp;data=04%7C01%7Cpratibha.patil%40siemens.com%7C70c604a6390c4dd8d80b08d8b19e47a2%7C38ae3bcd95794fd4addab42e1495d55a%7C1%7C0%7C637454640700572684%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=xC4amBCRyzCBX9hfAEnLnYlF88dBNIFYqBHsw0W33es%3D&amp;reserved=0



##########
File path: 
artemis-core-client/src/main/java/org/apache/activemq/artemis/core/message/impl/CoreMessage.java
##########
@@ -622,6 +619,12 @@ private RuntimeException onCheckPropertiesError(Throwable 
e) {
    @Override
    public int getMemoryEstimate() {
       if (memoryEstimate == -1) {
+         // durable messages can enlarge buffer::capacity while persisted:
+         // better to encode it to properly account its max capacity
+         if (isDurable()) {
+            checkEncode();

Review comment:
       That means that a durable message would get encoded some time before 
then expected: @clebertsuconic it's something we can tolerate? 
   if not the ideal thing would be to estimate it based on its state, but I'm 
not sure is feasable.




----------------------------------------------------------------
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:
us...@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 531359)
    Time Spent: 1h  (was: 50m)

> OOM due to wrong CORE message memory estimation
> -----------------------------------------------
>
>                 Key: ARTEMIS-3021
>                 URL: 
> https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fissues.apache.org%2Fjira%2Fbrowse%2FARTEMIS-3021&amp;data=04%7C01%7Cpratibha.patil%40siemens.com%7C70c604a6390c4dd8d80b08d8b19e47a2%7C38ae3bcd95794fd4addab42e1495d55a%7C1%7C0%7C637454640700572684%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=R4HvrBc9VqNIit2GjqgfbStwO0xsyUK9BtA4CJ72uFc%3D&amp;reserved=0
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>            Reporter: Francesco Nigro
>            Assignee: Francesco Nigro
>            Priority: Major
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> Durable CORE messages can get their internal buffer enlarged by 
> encodeHeadersAndProperties while being persisted on the journal, but the 
> address size memory estimation using the estimated memory of a message is 
> performed before that, making it less precise. 
> This bad timing estimation, together with Netty ByteBuf auto-sizing mechanism 
> can cause the broker to underestimate the message footprint, causing it to go 
> OOM. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to