How to disable Session Metrics logs

3,459 views
Skip to first unread message

nar...@sathguru.com

unread,
Jun 1, 2016, 2:57:31 AM6/1/16
to OpenOLAT
Dear All,

As Session Metrics logs were occupying lot of space in log files, how can i disable them?
Is there any parameter or settings to configure.
Note: Sometimes it is difficult trace errors by examining logs.

Find below session metrics for reference:
04:59:01,004  INFO StatisticalLoggingSessionEventListener:275 - Session Metrics {
    357404 nanoseconds spent acquiring 1 JDBC connections;
    0 nanoseconds spent releasing 0 JDBC connections;
    69578 nanoseconds spent preparing 1 JDBC statements;
    710358 nanoseconds spent executing 1 JDBC statements;
    0 nanoseconds spent executing 0 JDBC batches;
    0 nanoseconds spent performing 0 L2C puts;
    0 nanoseconds spent performing 0 L2C hits;
    0 nanoseconds spent performing 0 L2C misses;
    0 nanoseconds spent executing 0 flushes (flushing a total of 0 entities and 0 collections);
    2125 nanoseconds spent executing 1 partial-flushes (flushing a total of 0 entities and 0 collections)


Thank you.

Regards,
Naresh

Stéphane Rossé

unread,
Jun 1, 2016, 4:38:41 AM6/1/16
to OpenOLAT, nar...@sathguru.com
Hello

In your log4j.xml add this logger:

<logger

name="org.hibernate.engine.internal.StatisticalLoggingSessionEventListener">

<level value="FATAL" />

<appender-ref ref="stdout" />

</logger>


Best regards
Stéphane Rossé

nar...@sathguru.com

unread,
Jun 1, 2016, 5:15:32 AM6/1/16
to OpenOLAT, nar...@sathguru.com
Hi,

Thank you for sharing information.It worked for me.

Regards,
Naresh
Reply all
Reply to author
Forward
0 new messages