You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@brooklyn.apache.org by he...@apache.org on 2022/01/07 12:29:59 UTC

[brooklyn-docs] 02/04: add felix debugging logging configuration

This is an automated email from the ASF dual-hosted git repository.

heneveld pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/brooklyn-docs.git

commit a4b30929c68c35861ca66d0e5a78e7d0b71d9796
Author: Alex Heneveld <al...@cloudsoftcorp.com>
AuthorDate: Tue Jan 4 13:47:33 2022 +0000

    add felix debugging logging configuration
---
 guide/ops/troubleshooting/slow-unresponsive.md | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/guide/ops/troubleshooting/slow-unresponsive.md b/guide/ops/troubleshooting/slow-unresponsive.md
index 93b5e5e..9c77761 100644
--- a/guide/ops/troubleshooting/slow-unresponsive.md
+++ b/guide/ops/troubleshooting/slow-unresponsive.md
@@ -144,6 +144,18 @@ jstack-active $BROOKLYN_PID
 {% endhighlight %}
 
 
+#### OSGi Resolution
+
+The Karaf OSGi subsystem can in some cases spend a lot of energy identifying which bundles should provide packages.
+Often this can be resolved by removing redundant bundles.
+To observe this, add the following to `etc/org.ops4j.pax.logging.cfg` (no restart normally needed):
+
+    log4j2.logger.felix.name = org.apache.felix
+    log4j2.logger.felix.level = DEBUG
+
+To get a unique list of duplicate packages:  `grep chains data/log/*.debug.log | sed 's/.*exposed to //' | sed 's/from .*//' | sort | uniq`
+
+
 #### Profiling
 
 If an in-depth investigation of the CPU usage (and/or object creation) of a Brooklyn Server is