Unused timeout: How long a connection will remain in the free pool before it is closed.
未使用的超时:连接关闭之前在空闲池中保留的时间。
In this situation, the application waits for a connection to become available (to be put back in the free pool).
在这种情况下,应用程序将等待连接重新可用(放回空闲池中)。
When a block of memory is returned to the free pool, the bucket index is calculated just like it is done with allocation.
当把内存块返回给空闲池时,像分配时一样计算bucket索引。
Minimum connections: The minimum number of connections the Connection Manager will keep in a connection factory’s free pool
最小连接数:ConnectionManager在连接工厂的空闲池中保持的最小连接数
If the number of connections equals Minimum connections, the connection will not be closed and will remain in the free pool.
如果连接数等于最小连接数,则该连接将不关闭,并保留在空闲池中。
As the free pool for this factory is empty, the connection Manager creates a new connection, c1, and returns it to the application.
因为此工厂的空闲池为空,所以ConnectionManager会创建新的连接c1,并将其返回给应用程序。
The thread then checks to see how many connections are in the free pool, and compares this to the value of the Minimum connections property.
线程然后进行检查,以确定空闲池中有多少个连接,将此值与最小连接属性的值进行比较。
A block is allocated from the free pool by first converting the requested bytes to an index in the bucket array, using the following equation.
当从空闲池分配块时,首先使用以下公式把请求的字节数转换为bucket数组索引。
If the pool maintenance thread decides that a connection in the free pool needs to be discarded, it physically closes the connection to the JMS provider.
如果池维护线程确定需要丢弃空闲池中的连接,则它物理关闭到JMS提供程序的连接。
You now have a connection c1 in the free pool, so the connection Manager will take this connection out of the pool and make it available to the listener port.
现在,空闲池中含有连接c1,这样ConnectionManager将从该池中取出此连接,并将其提供给侦听器端口。
The max-beans-in-free-pool element defines the maximum size of the free pool of EJBs for a specific entity bean, stateless session bean, or message-driven bean.
max - beans - in -free -pool元素定义了特定实体bean、无状态会话bean或消息驱动bean的ejb空闲池的最大大小。
Populating the free pool with instances improves initial response time, because initial requests for the bean can be satisfied without generating a new instance.
用实例来填充空闲池可以提高初始响应时间,因为对该bean的初始请求不用生成新的实例即可得到满足。
If a connection is put back in the free pool within this 3-minute period, the connection Manager immediately takes it out of the pool again and passes it to the application.
如果在这3分钟内将连接放回空闲池,则ConnectionManager将立即从池中再次取出它,并将其传递给应用程序。
As you can see, the pool maintenance thread does a lot of work when it "wakes up," particularly if there are a large number of connections in the connection factory's free pool.
正如您看到的,池维护线程在“醒来”时会执行许多工作,尤其是在连接工厂的空闲池中存在大量的连接时。
The default value of the Minimum connections property is 1, which means that the connection Manager will always try to keep at least one connection in the free pool, for performance reasons.
最小连接属性的缺省值为1,这意味着ConnectionManager出于性能原因将总是尝试在空闲池中至少保持一个连接。
By default, if a connection is put back in the free pool and not used again for at least 30 minutes, it is closed, provided that closing it will leave at least one connection in the free pool.
在缺省情况下,如果连接放回空闲池中并且至少30分钟没有再使用它,并且关闭该连接后,空闲池中至少还保留一个连接,则将关闭该连接。
By default, if a connection is put back in the free pool and not used again for at least 30 minutes, it is closed, provided that closing it will leave at least one connection in the free pool.
在缺省情况下,如果连接放回空闲池中并且至少30分钟没有再使用它,并且关闭该连接后,空闲池中至少还保留一个连接,则将关闭该连接。
应用推荐