Hi, I'm looking for the same solution: we would like to prevent PaxLogging from publishing anything to the OSGi Event Admin, is that actually possibile?
Thanks in advance. Il giorno martedì 22 marzo 2016 15:52:35 UTC+1, Guillaume Nodet ha scritto: > > Adding a configuration option to disable that should be easy to do. > Would you mind writing a pull request for that ? > > Though, at the end, I'm not sure there will be much difference in > upgrading pax-logging or eventadmin, and given it's already supported in > eventadmin, why not simply upgrading to a recent version of it ? > > On Tue, Mar 22, 2016 at 3:02 PM, <[email protected] <javascript:>> wrote: > >> Hello, >> >> Is it possible to disable the publishing of LogEntry events to the >> org/osgi/service/log/LogEntry/* topic in the OSGi Event Admin? >> >> I am seeing nasty contention in a log-heavy application due to congestion >> in the EventAdmin threadpools. Increasing the size of the threadpools [1] >> is just a workaround, and ignoring the events via EventAdmin config is not >> an option because we're running on Felix EventAdmin 1.3.2. >> >> Moreover, there are no handlers subscribed to these topics OOTB, so it's >> not like we'd lose functionality by disabling the generation of the event >> in the first place. Is it possible to do so? >> >> qtp1225771956-3286 <--- Frozen for at least 23 sec >> >> EDU.oswego.cs.dl.util.concurrent.PooledExecutor.execute(Runnable) >> >> *org.apache.felix.eventadmin.impl.tasks.DefaultThreadPool.executeTask(Runnable) >> >> DefaultThreadPool.java:101* >> >> org.apache.felix.eventadmin.impl.tasks.AsyncDeliverTasks.execute(Collection, >> Event) AsyncDeliverTasks.java:105 >> >> org.apache.felix.eventadmin.impl.handler.EventAdminImpl.postEvent(Event) >> EventAdminImpl.java:100 >> >> org.apache.felix.eventadmin.impl.adapter.LogEventAdapter$1.logged(LogEntry) >> LogEventAdapter.java:281 >> >> org.ops4j.pax.logging.logback.internal.LogReaderServiceImpl.fire(LogListener, >> >> LogEntry) LogReaderServiceImpl.java:92 >> >> org.ops4j.pax.logging.logback.internal.LogReaderServiceImpl.access$300(LogReaderServiceImpl, >> >> LogListener, LogEntry) LogReaderServiceImpl.java:46 >> >> org.ops4j.pax.logging.logback.internal.LogReaderServiceImpl$1.fireEvent(LogEntry) >> >> LogReaderServiceImpl.java:114 >> >> org.ops4j.pax.logging.logback.internal.PaxLoggingServiceImpl$1.handleEvents(Bundle, >> >> ServiceReference, int, String, Throwable) PaxLoggingServiceImpl.java:138 >> >> org.ops4j.pax.logging.logback.internal.PaxLoggerImpl.inform(String, >> Throwable, String) PaxLoggerImpl.java:198 >> >> org.ops4j.pax.logging.internal.TrackingLogger.inform(String, Throwable, >> String) TrackingLogger.java:116 >> >> org.ops4j.pax.logging.slf4j.Slf4jLogger.log(Marker, String, int, String, >> Object[], Throwable) Slf4jLogger.java:1098 >> >> org.apache.cxf.common.logging.Slf4jLogger.internalLogFormatted(String, >> LogRecord) Slf4jLogger.java:139 >> >> org.apache.cxf.common.logging.AbstractDelegatingLogger.internalLog(LogRecord) >> >> AbstractDelegatingLogger.java:353 >> >> org.apache.cxf.common.logging.AbstractDelegatingLogger.doLog(LogRecord) >> AbstractDelegatingLogger.java:335 >> >> org.apache.cxf.common.logging.AbstractDelegatingLogger.log(LogRecord) >> AbstractDelegatingLogger.java:46 >> >> org.apache.cxf.interceptor.AbstractLoggingInterceptor.log(Logger, String) >> AbstractLoggingInterceptor.java:239 >> >> org.apache.cxf.interceptor.LoggingInInterceptor.logging(Logger, Message) >> LoggingInInterceptor.java:157 >> >> org.apache.cxf.interceptor.LoggingInInterceptor.handleMessage(Message) >> LoggingInInterceptor.java:79 >> >> ... >> >> [1] >> https://felix.apache.org/documentation/subprojects/apache-felix-event-admin.html >> >> Cheers, >> Raúl. >> >> -- >> -- >> ------------------ >> OPS4J - http://www.ops4j.org - [email protected] <javascript:> >> >> --- >> You received this message because you are subscribed to the Google Groups >> "OPS4J" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > > -- -- ------------------ OPS4J - http://www.ops4j.org - [email protected] --- You received this message because you are subscribed to the Google Groups "OPS4J" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
