org.eclipse.equinox.http.servlet的连接池配置

时间:2017-06-22 15:08:12

标签: java jetty osgi equinox

我正在使用org.eclipse.equinox.http.servlet处理OSGi容器中的Web服务(felix):

import pandas as pd
import pulp

# Instantiate our problem class
model = pulp.LpProblem("Hotel revenue maximization", pulp.LpMaximize)

#Import demand info
demand= pd.DataFrame.from_csv("demandSAHRO.csv", index_col=
['Check_in_day_i', 'Check_out_day_j'])

#Will optimize for # bookings to accept for any i,j pairing
bookingsaccepted = pulp.LpVariable.dicts("bookingsaccepted",
                                 ((i, j) for i, j in demand.index), lowBound=0, cat='Integer')


# Objective Function - 0.84 is unit revenue per room
model += (
pulp.lpSum([
    0.84 * bookingsaccepted[i, j] for i, j in demand.index])
)

# Constraints
capacity = 400


#Accepted Check in before day k + accepted check in on day k - accepted check out on day k <= capacity
model +=
for i, j in demand.index:
    for k in range(1,10):
    #Day k between check in and check out dates
        while i<k<j:
            #Rooms already occupied during night k
            pulp.lpSum([bookingsaccepted[i, j] for i, j in demand.index]))
            +
            #Rooms checking in on day k

            -

            #Rooms checking out on day k

如何配置/检查连接池的设置(可以在同一时间处理的连接限制)?

我试图在文档中找到一些东西,甚至找到这个捆绑包的源代码,但不费吹灰之力。

我认为连接限制设置得太低,因为我从代理(nginx)获得有关连接超时的错误,但在Java端没有可见的错误,并且处理器/内存利用率远低于机器限制。

0 个答案:

没有答案