Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Won't Fix
-
2.2.5
-
None
-
None
-
None
Description
When running Apache Karaf 2.2.5 then we want to run it with as low overhead as possible. Out of the box it has around 30+ live threads running, which is a fair bit.
We should try to consolidate if applicable. For example there is 2 separate threads for picking up file installer. This can be implemented as a single thread instead.
"fileinstall-/opt/apache-karaf-2.2.5/deploy" daemon prio=5 tid=7fa0cc26d800 nid=0x1104ec000 in Object.wait() [1104eb000] java.lang.Thread.State: TIMED_WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on <7e0690610> (a org.apache.felix.fileinstall.internal.DirectoryWatcher) at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:268) - locked <7e0690610> (a org.apache.felix.fileinstall.internal.DirectoryWatcher) "fileinstall-/opt/apache-karaf-2.2.5/etc" daemon prio=5 tid=7fa0cc26a800 nid=0x1103e9000 in Object.wait() [1103e8000] java.lang.Thread.State: TIMED_WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on <7e068e778> (a org.apache.felix.fileinstall.internal.DirectoryWatcher) at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:268) - locked <7e068e778> (a org.apache.felix.fileinstall.internal.DirectoryWatcher)
Those 2 thread should be a single thread, that just watches the 2 directories.