本站首页    管理页面    写新日志    退出


«August 2025»
12
3456789
10111213141516
17181920212223
24252627282930
31


公告

关注电子政务、大型企业应用开发、Web、Workflow、MOM、MDA、RCP、GEF

email:gmluyang@gmail.com


链接

好友
bluedavy-林昊
刑红瑞
SixSun-翻译
Birt中文指南
SixSun-OpenDoc
Eclipse RCP and Web in action(编写中)

我的分类(专题)

日志更新

最新评论

留言板


Blog信息
blog名称:SixSun的Blog
日志总数:152
评论数量:372
留言数量:13
访问次数:2380935
建立时间:2004年12月13日




[软件测试]MySQL/Proxool/Protomatter/JDBC 性能测试
心得体会

SixSun 发表于 2005/12/3 14:16:25

MySQL/Proxool/Protomatter/JDBC 性能测试 测试背景 :使用 MySQL/Proxool/Protomatter/JDBC 进行性能测试比较 1. 测试环境: 1.1 操作系统 500)this.width=500'> 1.2 数据库 500)this.width=500'>   2. 测试数据: 进行20万次的DAO操作。 3. 连接池 3.1 Proxool【数据库连接池】(http://proxool.sourceforge.net/) 这是一个Java SQL Driver驱动程序,提供了对你选择的其它类型的驱动程序的连接池封装。可以非常简单的移植到现存的代码中。完全可配置。快速,成熟,健壮。可以透明地为你现存的JDBC驱动程序增加连接池功能。 测试时间:2900.938秒 CUP数据:(每10分钟取一次数据) (图1) 500)this.width=500'> (图2) 500)this.width=500'> (图3) 500)this.width=500'> (图4) 500)this.width=500'> MySQL数据:(每10分钟取一次数据) (图1) 500)this.width=500'> (图2) 500)this.width=500'> (图3) 500)this.width=500'> (图4) 500)this.width=500'> (图5) 500)this.width=500'> 3.2 Protomatter(http://protomatter.sourceforge.net) Protomatter集合包含许多有用的开源Java类。这个包提供了以下的功能:Syslog:一个健壮的日记系统.JDBC连接池.PAS:一个轻量级的应用服务器框架.Object Pooling Framework:对象池框架.还有许多Utility类:Base64(编码与解码器),blocking queues, work queues, mutex locks等 测试时间:2826.297秒 CUP数据:(每10分钟取一次数据)  (图1) 500)this.width=500'> (图2) 500)this.width=500'> (图3) 500)this.width=500'> (图4) 500)this.width=500'> (图5) 500)this.width=500'>   MySQL数据:(每10分钟取一次数据) (图1) 500)this.width=500'> (图2) 500)this.width=500'> (图3) 500)this.width=500'> (图4) 500)this.width=500'> (图5)  500)this.width=500'> 3.3 JDBC 测试时间:4~5分钟 备注:进行三次测试都没有顺利完成,时间在4~5分钟左右便抛异常 CUP数据: 500)this.width=500'> MySQL数据: 500)this.width=500'> 异常: (图1) 500)this.width=500'> (图2) 500)this.width=500'> 4. 测试结论 。。。


阅读全文(7435) | 回复(1) | 编辑 | 精华
 


回复:MySQL/Proxool/Protomatter/JDBC 性能测试
心得体会

SixSun发表评论于2005/12/11 1:29:11

关于【NESTED BEGIN EXCEPTION】http://forums.mysql.com/read.php?39,34091,34091#msg-34091 java.net.SocketException MESSAGE: java.net.BindException: Address already in use: connect     MySQL Connectors » JDBC » NESTED BEGIN EXCEPTIOn Goto Thread: Previous • Next--> NESTED BEGIN EXCEPTIOn Posted by: Rakesh BK (IP Logged) Date: July 13, 2005 02:24AM While connecting to Mysql DB from JBOSS server i am getting the following exception.. Please suggest some solution . Details of the exception ** BEGIN NESTED EXCEPTION ** java.net.SocketException MESSAGE: java.net.BindException: Address already in use: connect STACKTRACE: java.net.SocketException: java.net.BindException: Address already in use: connect at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:151) at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:281) at com.mysql.jdbc.Connection.createNewIO(Connection.java:1696) at com.mysql.jdbc.Connection.<init>(Connection.java:408) at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:270) at java.sql.DriverManager.getConnection(DriverManager.java:512) ** END NESTED EXCEPTION ** 11:22:10,628 ERROR [STDERR] at com.mysql.jdbc.Connection.createNewIO(Connection.java:1 759) 11:22:10,628 ERROR [STDERR] at com.mysql.jdbc.Connection.<init>(Connection.java:408) 11:22:10,628 ERROR [STDERR] at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegister ingDriver.java:270) Thanks Rakesh.B.K        Re: NESTED BEGIN EXCEPTIOn Rakesh, You're creating more TCP/IP connections than your OS is configured to handle. Are you using a connection pool? Is there some other process which creates many TCP/IP connections on your system? -Mark-- Mark Matthews MySQL AB, Software Development Manager - Client Connectivity www.mysql.com   David, You're creating connections faster than your OS can recycle sockets out of TIME_WAIT status. That is why you get the exception you posted. Connections should be relatively long-lived objects, maybe you should investigate re-using them within your application or via a connection pool? -Mark-- Mark Matthews MySQL AB, Software Development Manager - Client Connectivity www.mysql.com   Yes Mark, you are right!!! In addition I would like to warn developers using Win XP with SP 2 that SP 2 introduces a new TCP/IP feature: the number of possible TCP connection attempts is limited to 10 per second. I think that’s why getting an exception related with TCP connections it’s so easy. Thanks for your help and time, Best regards, David Benaderet.


个人主页 | 引用回复 | 主人回复 | 返回 | 编辑 | 删除
 


» 1 »

发表评论:
昵称:
密码:
主页:
标题:
验证码:  (不区分大小写,请仔细填写,输错需重写评论内容!)



站点首页 | 联系我们 | 博客注册 | 博客登陆

Sponsored By W3CHINA
W3CHINA Blog 0.8 Processed in 0.048 second(s), page refreshed 144759013 times.
《全国人大常委会关于维护互联网安全的决定》  《计算机信息网络国际联网安全保护管理办法》
苏ICP备05006046号