You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "tuister (Jira)" <se...@james.apache.org> on 2021/07/28 02:30:00 UTC

[jira] [Updated] (JAMES-3620) Memory leak at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler

     [ https://issues.apache.org/jira/browse/JAMES-3620?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

tuister updated JAMES-3620:
---------------------------
    Description: 
For each command, the command handler will use a timer record the rt. So, if someone input error commands, the command handler will create a new timer to count, this will cause memory leak.
{code:java}
//AbstractHookableCmdHandler#onCommand
//see also org.apache.james.protocols.smtp.core.UnknownCmdHandler
TimeMetric timeMetric = metricFactory.timer("SMTP-" + request.getCommand().toLowerCase(Locale.US));{code}
 

 

  was:
For each command, the command handler will use a timer count the rt. So, if someone input error commands, the command handler will create a new timer to count, this will cause memory leak.
{code:java}
//AbstractHookableCmdHandler#onCommand
//see also org.apache.james.protocols.smtp.core.UnknownCmdHandler
TimeMetric timeMetric = metricFactory.timer("SMTP-" + request.getCommand().toLowerCase(Locale.US));{code}
 

 


> Memory leak at org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler
> ------------------------------------------------------------------------------
>
>                 Key: JAMES-3620
>                 URL: https://issues.apache.org/jira/browse/JAMES-3620
>             Project: James Server
>          Issue Type: Improvement
>          Components: protocols, SMTPServer
>            Reporter: tuister
>            Priority: Blocker
>   Original Estimate: 168h
>  Remaining Estimate: 168h
>
> For each command, the command handler will use a timer record the rt. So, if someone input error commands, the command handler will create a new timer to count, this will cause memory leak.
> {code:java}
> //AbstractHookableCmdHandler#onCommand
> //see also org.apache.james.protocols.smtp.core.UnknownCmdHandler
> TimeMetric timeMetric = metricFactory.timer("SMTP-" + request.getCommand().toLowerCase(Locale.US));{code}
>  
>  



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

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org