- 1、本文档共8页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
1.5Proxool数据库连接池.doc
PAGE 8/ NUMPAGES 8
Dascom, Inc. Commercial in confidence
Performance Tuning Guide
Dascom?eZiosuite? 性能参数调整指南(管理员)
性能调整
Apache httpd.conf
Windows环境(WinNT MPM)
参数描述默认值推荐值ThreadsPerChild这个指令设置了每个子进程建立的线程数。子进程在启动时建立这些线程后就不再建立新的线程了。641024MaxRequestsPerChildMaxRequestsPerChild指令设置每个子进程在其生存期内允许伺服的最大请求数量。到达MaxRequestsPerChild的限制后,子进程将会结束。如果MaxRequestsPerChild为0,子进程将永远不会结束。
将MaxRequestsPerChild设置成非零值有两个好处:
可以防止(偶然的)内存泄漏无限进行,从而耗尽内存。
给进程一个有限寿命,从而有助于当服务器负载减轻的时候减少活动进程的数量。00ThreadLimit设置了每个子进程可配置的线程数 HYPERLINK /newsoft/ApacheMenual_CN_2.2new/mod/mpm_common.html \l threadsperchild#threadsperchild ThreadsPerChild上限。19201024# WinNT MPM
# ThreadsPerChild: constant number of worker threads in the server process
# MaxRequestsPerChild: maximum number of requests a server process serves
IfModule mpm_winnt.c
#Win32DisableAcceptEx ##add this line
ThreadsPerChild 1024
MaxRequestsPerChild 0
/IfModule
常见问题:
perties
参数描述默认值推荐值socket_timeoutSocket timeout in seconds used for the communication channel between JK and remote host. If the remote host does not respond inside the timeout specified, JK will generate an error, and retry again.0
不限制0socket_
connect_timeoutSocket connect timeout in milliseconds used for the communication channel between JK and remote host. If the remote host does not respond inside the timeout specified, JK will generate an error, and retry again.
0
不限制0connection_pool_size连接池中最大连接数量50connection_pool_minsize连接池中最小连接数量25connection_pool_timeoutCache timeout property should be used with connection_pool_size to specify how many seconds JK should keep an inactive socket in cache before closing it0
不限制60worker.worker2.connection_pool_size=50
worker.worker2.connection_pool_minsize=25
worker.worker2.connection_pool_timeout=60
常见问题:
Unable to get the free endpoint for worker worker1 from 50 slots.
适当调整connection_pool_size的大小,可以支持更多的连接。
JVM设置
Java Heap分为3个区
1.Young
2.Old
3.Permanent
Young保存刚实例化的对象。当该区被填满时,GC会将对象移到Old区
文档评论(0)