You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Pierre De Rop (JIRA)" <ji...@apache.org> on 2014/10/07 22:29:34 UTC
[jira] [Created] (FELIX-4667) "top" command for the Dependency
Manager Shell
Pierre De Rop created FELIX-4667:
------------------------------------
Summary: "top" command for the Dependency Manager Shell
Key: FELIX-4667
URL: https://issues.apache.org/jira/browse/FELIX-4667
Project: Felix
Issue Type: Improvement
Components: Dependency Manager
Reporter: Pierre De Rop
Assignee: Pierre De Rop
Priority: Minor
Fix For: dependencymanager-4.0.0
This issues proposes to add a new simple "top" option to the Dependency Manager Shell in order to list all the "top components", sorted by their "start" lifecycle callback duration time.
This command would then be very helpful in order to figure out what are the most expensive components, taking some long time in their start method.
For example, the following gogo command allows to dump the top 2 components class name having the most expensive start duration time. The list is sorted by the start duration time, and the init/start time are displayed in nano seconds:
{code}
dm top 2
g! dm top 2
Top components (sorted by start duration time) [init time] [start time]
-------------------------------------------------------------------------------------------------------
foo.bar.BigComponent 91371 109579361
foo.bar.AnotherBigComponent 156563 4493985
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)