Apache Lucene open-source search software
SOLR-5226: add lucene index heap usage to the solr admin UI
Robert Muir49e4b64c0d34
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txtindex b699467ce5d..a234ebea8bf 100644--- a/solr/CHANGES.txt+++ b/solr/CHANGES.txt@@ -89,6 +89,9 @@ New Features* SOLR-5300: Shards can be split by specifying arbitrary number of hash rangeswithin the shard's hash range. (shalin)+* SOLR-5226: Add Lucene index heap usage to the Solr admin UI.+ (Areek Zillur via Robert Muir)+Bug Fixes----------------------* SOLR-4590: Collections API should return a nice error when not in SolrCloud mode.diff --git a/solr/webapp/web/js/scripts/dashboard.js b/solr/webapp/web/js/scripts/dashboard.jsindex 263d67e933e..8686ec9e866 100644--- a/solr/webapp/web/js/scripts/dashboard.js+++ b/solr/webapp/web/js/scripts/dashboard.js@@ -112,6 +112,7 @@ sammy.getvar data = {'index_num-docs' : response['index']['numDocs'],+ 'index_heap-usage-bytes' : response['index']['indexHeapUsageBytes'],'index_max-doc' : response['index']['maxDoc'],'index_deleted-docs' : response['index']['deletedDocs'],'index_version' : response['index']['version'],diff --git a/solr/webapp/web/tpl/dashboard.html b/solr/webapp/web/tpl/dashboard.htmlindex e1b0848d699..4064ecd5440 100644--- a/solr/webapp/web/tpl/dashboard.html+++ b/solr/webapp/web/tpl/dashboard.html@@ -39,6 +39,9 @@ limitations under the License.<dt class="index_max-doc">Max Doc:</dt><dd class="index_max-doc value"></dd>+ <dt class="index_heap-usage-bytes">Heap Memory Usage:</dt>+ <dd class="index_heap-usage-bytes value"></dd>+<dt class="index_deleted-docs">Deleted Docs:</dt><dd class="index_deleted-docs value"></dd>