git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1752920 13f79535-47bb-0310-9956-ffa450edef68
57 lines
2.3 KiB
Plaintext
57 lines
2.3 KiB
Plaintext
<#--
|
|
Licensed to the Apache Software Foundation (ASF) under one
|
|
or more contributor license agreements. See the NOTICE file
|
|
distributed with this work for additional information
|
|
regarding copyright ownership. The ASF licenses this file
|
|
to you under the Apache License, Version 2.0 (the
|
|
"License"); you may not use this file except in compliance
|
|
with the License. You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing,
|
|
software distributed under the License is distributed on an
|
|
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
KIND, either express or implied. See the License for the
|
|
specific language governing permissions and limitations
|
|
under the License.
|
|
-->
|
|
<h1>Connection Pool Status</h1>
|
|
|
|
<#assign groups = delegator.getModelGroupReader().getGroupNames(delegator.getDelegatorName())!/>
|
|
<table class="basic-table light-grid hover-bar">
|
|
<tr class="header-row">
|
|
<td>Helper Name</td>
|
|
<td>Num Active</td>
|
|
<td>Num Idle</td>
|
|
<td>Num Total</td>
|
|
<td>Max Active</td>
|
|
<td>Max Idle</td>
|
|
<td>Min Idle</td>
|
|
<td>Min Evictable Idle Time</td>
|
|
<td>Max Wait</td>
|
|
</tr>
|
|
<#assign alt_row = false>
|
|
<#if (groups?has_content)>
|
|
<#list groups as group>
|
|
<#assign helper = delegator.getGroupHelperName(group)!/>
|
|
<#if (helper?has_content)>
|
|
<#assign dataSourceInfo = Static["org.apache.ofbiz.entity.connection.DBCPConnectionFactory"].getDataSourceInfo(helper)!/>
|
|
<#if (dataSourceInfo?has_content)>
|
|
<tr>
|
|
<td>${helper}</td>
|
|
<td>${dataSourceInfo.poolNumActive!}</td>
|
|
<td>${dataSourceInfo.poolNumIdle!}</td>
|
|
<td>${dataSourceInfo.poolNumTotal!}</td>
|
|
<td>${dataSourceInfo.poolMaxActive!}</td>
|
|
<td>${dataSourceInfo.poolMaxIdle!}</td>
|
|
<td>${dataSourceInfo.poolMinIdle!}</td>
|
|
<td>${dataSourceInfo.poolMinEvictableIdleTimeMillis!}</td>
|
|
<td>${dataSourceInfo.poolMaxWait!}</td>
|
|
</tr>
|
|
</#if>
|
|
</#if>
|
|
</#list>
|
|
</#if>
|
|
</table>
|