Performance degradation due to zombie log:tail commands

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Performance degradation due to zombie log:tail commands

João Assunção
Hello all,

I'm experiencing a considerable performance degradation as a result of zombie log:tail commands. By zombie, I mean cases where the client session terminates abruptly or due to timeout. 
The performance degradation is caused by logging as a result of the appenders trying to write to a terminal stream that is closed. In this situation, for every character written to the appender, PrintStream will call ensureOpen and thrown an IOException resulting in a considerable performance penalty.
I'm running Karaf 4.1.3

Since the logging is provided by Pax Logging but the terminal is the realm of Karaf I'm not sure where I should open an issue. 
Thanks,

Regards,

João Assunção

Mobile: +351 916968984
Phone: +351 211933149


Reply | Threaded
Open this post in threaded view
|

Re: Performance degradation due to zombie log:tail commands

jbonofre
Hi Joao,

AFAIR, this has been already fixed.

Did you try with 4.1.4 ?

I will take a look anyway.

Regards
JB

On 02/09/2018 11:16 AM, João Assunção wrote:

> Hello all,
>
> I'm experiencing a considerable performance degradation as a result of zombie
> log:tail commands. By zombie, I mean cases where the client session
> terminates abruptly or due to timeout. 
> The performance degradation is caused by logging as a result of the appenders
> trying to write to a terminal stream that is closed. In this situation, for
> every character written to the appender, PrintStream will call ensureOpen and
> thrown an IOException resulting in a considerable performance penalty.
> I'm running Karaf 4.1.3
>
> Since the logging is provided by Pax Logging but the terminal is the realm of
> Karaf I'm not sure where I should open an issue. 
> Thanks,
>
> Regards,
>
> João Assunção
>
> Email: [hidden email] <mailto:[hidden email]>
> Mobile: +351 916968984
> Phone: +351 211933149
> Web: www.exploitsys.com <http://www.exploitsys.com>
>
>

--
Jean-Baptiste Onofré
[hidden email]
http://blog.nanthrax.net
Talend - http://www.talend.com
Reply | Threaded
Open this post in threaded view
|

Re: Performance degradation due to zombie log:tail commands

jbonofre
In reply to this post by João Assunção
By the way, when you say "client", you mean SSH client (like Karaf bin/client) ?

Regards
JB

On 02/09/2018 11:16 AM, João Assunção wrote:

> Hello all,
>
> I'm experiencing a considerable performance degradation as a result of zombie
> log:tail commands. By zombie, I mean cases where the client session
> terminates abruptly or due to timeout. 
> The performance degradation is caused by logging as a result of the appenders
> trying to write to a terminal stream that is closed. In this situation, for
> every character written to the appender, PrintStream will call ensureOpen and
> thrown an IOException resulting in a considerable performance penalty.
> I'm running Karaf 4.1.3
>
> Since the logging is provided by Pax Logging but the terminal is the realm of
> Karaf I'm not sure where I should open an issue. 
> Thanks,
>
> Regards,
>
> João Assunção
>
> Email: [hidden email] <mailto:[hidden email]>
> Mobile: +351 916968984
> Phone: +351 211933149
> Web: www.exploitsys.com <http://www.exploitsys.com>
>
>

--
Jean-Baptiste Onofré
[hidden email]
http://blog.nanthrax.net
Talend - http://www.talend.com
Reply | Threaded
Open this post in threaded view
|

Re: Performance degradation due to zombie log:tail commands

João Assunção
Hello JB,

I haven't tried with Karaf 4.1.4. I was planning to wait for 4.1.5 due to KARAF-5384.
Yes. By client I meant the SSH client.
Thank you.

Regards,

João Assunção

Mobile: +351 916968984
Phone: +351 211933149



On Fri, Feb 9, 2018 at 10:56 AM, Jean-Baptiste Onofré <[hidden email]> wrote:
By the way, when you say "client", you mean SSH client (like Karaf bin/client) ?

Regards
JB

On 02/09/2018 11:16 AM, João Assunção wrote:
> Hello all,
>
> I'm experiencing a considerable performance degradation as a result of zombie
> log:tail commands. By zombie, I mean cases where the client session
> terminates abruptly or due to timeout. 
> The performance degradation is caused by logging as a result of the appenders
> trying to write to a terminal stream that is closed. In this situation, for
> every character written to the appender, PrintStream will call ensureOpen and
> thrown an IOException resulting in a considerable performance penalty.
> I'm running Karaf 4.1.3
>
> Since the logging is provided by Pax Logging but the terminal is the realm of
> Karaf I'm not sure where I should open an issue. 
> Thanks,
>
> Regards,
>
> João Assunção
>
> Email: [hidden email] <mailto:[hidden email]>
> Mobile: <a href="tel:%2B351%20916968984" value="+351916968984">+351 916968984
> Phone: <a href="tel:%2B351%20211933149" value="+351211933149">+351 211933149