You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Vamsee Yarlagadda (JIRA)" <ji...@apache.org> on 2015/02/25 12:47:04 UTC

[jira] [Updated] (SOLR-7159) Add httpclient connection stats to JMX report

     [ https://issues.apache.org/jira/browse/SOLR-7159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vamsee Yarlagadda updated SOLR-7159:
------------------------------------
    Attachment: Screen Shot 2015-02-25 at 3.37.06 AM.png
                SOLR-7159.patch

Here is the first draft of the patch.

As per the latest 4.10 release, we have two separate http connection pools - UpdateShardHandler (handles all the updates) and HttpShardHandler/HttpShardHandlerFactory (handles all queries). And these two classes are created for every core setup. So i ended up adding the logic to the existing MBean of every core to display the httpclient connection stats. (Screenshot attached).

Kindly let me know with any suggestions or comments. I will refine the patch accordingly.

> Add httpclient connection stats to JMX report
> ---------------------------------------------
>
>                 Key: SOLR-7159
>                 URL: https://issues.apache.org/jira/browse/SOLR-7159
>             Project: Solr
>          Issue Type: Improvement
>    Affects Versions: 4.10.3
>            Reporter: Vamsee Yarlagadda
>            Priority: Minor
>         Attachments: SOLR-7159.patch, Screen Shot 2015-02-25 at 3.37.06 AM.png
>
>
> Currently, we are logging the stats of httpclient as part of debug level.
> bq. 2015-01-20 13:47:48,640 DEBUG org.apache.http.impl.conn.PoolingClientConnectionManager: Connection request: [route: {}->http://plh04.wil.csc.local:8983][total kept alive: 254; route allocated: 100 of 100; total allocated: 462 of 10000]
> Instead, it would be good to expose these metrics via JMX for easy checking.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org