mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
Updated FAQ (markdown)
+29
-28
@@ -24,50 +24,51 @@ since 0.1.18, druid deploy to maven central repository, so you only need to add
|
||||
<version>${druid-version}</version>
|
||||
</dependency>
|
||||
|
||||
# 5. 怎么打开Druid的监控统计功能
|
||||
Druid的监控统计功能是通过filter-chain扩展实现,如果你要打开监控统计功能,配置StatFilter,具体看这里:https://github.com/AlibabaTech/druid/wiki/%E9%85%8D%E7%BD%AE_StatFilter
|
||||
# 5. how to use Druid's monitoring feature?
|
||||
Druid monitoring feature is implementation by filter-chain, if you want turn on, config StatFilter, look here : https://github.com/AlibabaTech/druid/wiki/%E9%85%8D%E7%BD%AE_StatFilter
|
||||
|
||||
# 6. 怎样使用Druid的内置监控页面
|
||||
内置监控页面是一个Servlet,具体配置看这里:https://github.com/AlibabaTech/druid/wiki/%E9%85%8D%E7%BD%AE_StatViewServlet%E9%85%8D%E7%BD%AE
|
||||
# 6. how to use Druid buit-in monitoring page
|
||||
built-in monitoring page is a Servlet, configuration see here : https://github.com/AlibabaTech/druid/wiki/%E9%85%8D%E7%BD%AE_StatViewServlet%E9%85%8D%E7%BD%AE
|
||||
|
||||
# 7. 内置监控中的Web和Spring关联监控怎么配置?
|
||||
* Web关联监控配置 <br/>
|
||||
# 7. how to configure Web and Spring related monitoring?
|
||||
* Web related monitoring config <br/>
|
||||
https://github.com/AlibabaTech/druid/wiki/%E9%85%8D%E7%BD%AE_%E9%85%8D%E7%BD%AEWebStatFilter
|
||||
* Spring关联监控配置 <br/>
|
||||
* Spring related monitoring config <br/>
|
||||
https://github.com/AlibabaTech/druid/wiki/%E9%85%8D%E7%BD%AE_Druid%E5%92%8CSpring%E5%85%B3%E8%81%94%E7%9B%91%E6%8E%A7%E9%85%8D%E7%BD%AE
|
||||
|
||||
# 8. 怎么配置防御SQL注入攻击
|
||||
Druid提供了WallFilter,它是基于SQL语义分析来实现防御SQL注入攻击的。具体配置看这里:http://code.alibabatech.com/wiki/display/Druid/WallFilterConfig
|
||||
# 8. how to configure the defense against SQL injection attacks
|
||||
Druid provides WallFilter, it is based on the SQL semantic analysis to defense SQL injection attacks, see here : http://code.alibabatech.com/wiki/display/Druid/WallFilterConfig
|
||||
|
||||
# 9. DruidDataSource reference configuration
|
||||
different needs of different business scenarios, you can use our reference configuration, but it recommended that you carefully read the documentation to understand clearly do custom configuration.
|
||||
|
||||
# 9. Druid有没有参考配置
|
||||
不同的业务场景需求不同,你可以使用我们的参考配置,但建议你仔细阅读相关文档,了解清楚之后做定制配置。
|
||||
https://github.com/AlibabaTech/druid/wiki/%E9%85%8D%E7%BD%AE_DruidDataSource%E5%8F%82%E8%80%83%E9%85%8D%E7%BD%AE
|
||||
|
||||
# 10. 我想日志记录JDBC执行的SQL,如何配置
|
||||
Druid提供了Log4jFilter、CommonsLogFilter和Slf4jFilter,具体配置看这里 https://github.com/AlibabaTech/druid/wiki/%E9%85%8D%E7%BD%AE_LogFilter
|
||||
# 10. I would like to logging SQL execution, how to config?
|
||||
Druid provides Log4jFilter/CommonsLogFilter/Slf4jFilter, see here : https://github.com/AlibabaTech/druid/wiki/%E9%85%8D%E7%BD%AE_LogFilter
|
||||
|
||||
# 11. 我的程序可能产生连接泄漏了,有什么办法?
|
||||
Druid提供了多种监测连接泄漏的手段,具体看这里:https://github.com/AlibabaTech/druid/wiki/%E8%BF%9E%E6%8E%A5%E6%B3%84%E6%BC%8F%E7%9B%91%E6%B5%8B
|
||||
# 11. my program may be have connection leaks, how to do?
|
||||
Druid offers a variety of means to monitoring connection leaks, see here : https://github.com/AlibabaTech/druid/wiki/%E8%BF%9E%E6%8E%A5%E6%B3%84%E6%BC%8F%E7%9B%91%E6%B5%8B
|
||||
|
||||
# 12. 在Druid中使用PSCache会有内存占用过大问题么?
|
||||
连接Oracle数据库,打开PSCache,在其他的数据库连接池都会存在内存占用过多的问题,Druid是唯一解决这个问题的连接池。具体看这里:http://code.alibabatech.com/wiki/pages/viewpage.action?pageId=6951277
|
||||
# 12. Solve the problem of excessive memory footprint Oracle PSCache
|
||||
Connect to an Oracle database, other connection pool will exist the problem of excessive memory usage, Druid is the only connection pool to solve this problem. see here : http://code.alibabatech.com/wiki/pages/viewpage.action?pageId=6951277
|
||||
|
||||
# 13. 有没有和其他数据库连接池的对比?
|
||||
* 各种数据库连接池对比 http://code.alibabatech.com/wiki/pages/viewpage.action?pageId=6951797
|
||||
# 13. Druid and other connection pool comparison?
|
||||
* A variety of connection pool against : http://code.alibabatech.com/wiki/pages/viewpage.action?pageId=6951797
|
||||
|
||||
# 14. 从其他连接池迁移要注意什么?
|
||||
* 不同连接池的参数参照对比:
|
||||
# 14. what to pay attention to migration from other connection pool?
|
||||
* comparison of various connection pool parameters:
|
||||
http://code.alibabatech.com/wiki/pages/viewpage.action?pageId=6947005
|
||||
* DBCP迁移 http://code.alibabatech.com/wiki/pages/viewpage.action?pageId=6950500
|
||||
* migration from DBCP : http://code.alibabatech.com/wiki/pages/viewpage.action?pageId=6950500
|
||||
|
||||
# 15. Druid中有没有类似Jboss DataSource中的ExceptionSorter
|
||||
ExceptionSorter是JBoss DataSource中的优秀特性,Druid也有一样功能的ExceptionSorter,但不用手动配置,自动识别生效的。具体看这里:http://code.alibabatech.com/wiki/display/Druid/ExceptionSorter
|
||||
# 15. Similar Jboss DataSource ExceptionSorter in Druid
|
||||
ExceptionSorter is one of the outstanding features of JBoss DataSource, Druid has the same funtion of ExceptionSorter, but do not have to manually configure it take effect automatically. see here : http://code.alibabatech.com/wiki/display/Druid/ExceptionSorter
|
||||
|
||||
# 16. Druid中的maxIdle为什么是没用的?
|
||||
maxIdle是Druid为了方便DBCP用户迁移而增加的,maxIdle是一个混乱的概念。连接池只应该有maxPoolSize和minPoolSize,druid只保留了maxActive和minIdle,分别相当于maxPoolSize和minPoolSize。
|
||||
# 16. why maxIdle properties is useless?
|
||||
the maxIdle property for Druid compatible with DBCP, maxIdle is a confusing concept. the connection pool should only maxPoolSize and minPoolSize,druid retain only maxActive and minIdle, respectively the equivalent maxPoolSize and minPoolSize.
|
||||
|
||||
# 17. 我的应用配置的是JNDI数据源,可以用DruidDataSource么?
|
||||
DruidDataSource支持JNDI配置,具体看这里:http://code.alibabatech.com/wiki/pages/viewpage.action?pageId=2916633 <br/>
|
||||
# 17. To use DruidDataSource in JNDI?
|
||||
DruidDataSource support JNDI, see here : http://code.alibabatech.com/wiki/pages/viewpage.action?pageId=2916633 <br/>
|
||||
具体实现的类是这个:com.alibaba.druid.pool.DruidDataSourceFactory,你可以阅读代码加深理解。
|
||||
|
||||
# 18. 我的应用已使用DBCP,是代码中写死的,怎样更换为Druid?
|
||||
|
||||
Reference in New Issue
Block a user