51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 1268|回复: 2
打印 上一主题 下一主题

[原创] LoadRunner多用户测试总是报打开文件过多

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2009-8-22 18:53:38 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
我用LoadRunner进行多用户测试的时候 系统日志总是爆出以下错误 大侠们知道是怎么回事吗?
下面是错误代码:
java.sql.SQLException: JZ006: 捕获到 IO 例外:java.net.SocketException: 打开的文件过多
        at com.sybase.jdbc3.jdbc.ErrorMessage.raiseError(Unknown Source)
        at com.sybase.jdbc3.jdbc.ErrorMessage.raiseErrorCheckDead(Unknown Source)
        at com.sybase.jdbc3.tds.Tds.a(Unknown Source)
        at com.sybase.jdbc3.tds.Tds.a(Unknown Source)
        at com.sybase.jdbc3.tds.Tds.login(Unknown Source)
        at com.sybase.jdbc3.jdbc.SybConnection.a(Unknown Source)
        at com.sybase.jdbc3.jdbc.SybConnection.a(Unknown Source)
        at com.sybase.jdbc3.jdbc.SybConnection.<init>(Unknown Source)
        at com.sybase.jdbc3.jdbc.SybConnection.<init>(Unknown Source)
        at com.sybase.jdbc3.jdbc.SybDriver.connect(Unknown Source)
        at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:37)
        at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)
        at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:771)
        at org.apache.commons.dbcp.AbandonedObjectPool.borrowObject(AbandonedObjectPool.java:74)
        at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:95)
        at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
        at base.baseBean.forLogin(baseBean.java:1445)
        at sun.reflect.GeneratedMethodAccessor490.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
        at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
        at org.directwebremoting.impl.ExecuteAjaxFilter.doFilter(ExecuteAjaxFilter.java:34)
        at org.directwebremoting.impl.DefaultRemoter$1.doFilter(DefaultRemoter.java:423)
        at org.directwebremoting.impl.DefaultRemoter.execute(DefaultRemoter.java:426)
        at org.directwebremoting.impl.DefaultRemoter.execute(DefaultRemoter.java:280)
        at org.directwebremoting.servlet.PlainCallHandler.handle(PlainCallHandler.java:52)
        at org.directwebremoting.servlet.UrlProcessor.handle(UrlProcessor.java(Compiled Code))
        at org.directwebremoting.servlet.DwrServlet.doPost(DwrServlet.java:120)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
        at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
        at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java(Compiled Code))
        at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java(Compiled Code))
        at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java(Compiled Code))
        at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java(Compiled Code))
        at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java(Compiled Code))
        at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java(Compiled Code))
        at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java(Compiled Code))
        at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java(Compiled Code))
        at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java(Compiled Code))
        at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java(Compiled Code))
        at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java(Compiled Code))
        at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java(Compiled Code))
        at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))

[09-8-22 15:01:54:300 CST] 000014a8 SystemErr     R     at com.sybase.jdbc3.jdbc.ErrorMessage.raiseError(Unknown Source)
[09-8-22 15:01:54:300 CST] 000014a8 SystemErr     R     at com.sybase.jdbc3.jdbc.ErrorMessage.raiseErrorCheckDead(Unknown Source)
[09-8-22 15:01:54:300 CST] 000014a8 SystemErr     R     at com.sybase.jdbc3.tds.Tds.a(Unknown Source)
[09-8-22 15:01:54:300 CST] 000014a8 SystemErr     R     at com.sybase.jdbc3.tds.Tds.a(Unknown Source)
[09-8-22 15:01:54:300 CST] 000014a8 SystemErr     R     at com.sybase.jdbc3.tds.Tds.login(Unknown Source)
[09-8-22 15:01:54:300 CST] 000014a8 SystemErr     R     at com.sybase.jdbc3.jdbc.SybConnection.a(Unknown Source)
[09-8-22 15:01:54:300 CST] 000014a8 SystemErr     R     at com.sybase.jdbc3.jdbc.SybConnection.a(Unknown Source)
[09-8-22 15:01:54:300 CST] 000014a8 SystemErr     R     at com.sybase.jdbc3.jdbc.SybConnection.<init>(Unknown Source)
[09-8-22 15:01:54:301 CST] 000014a8 SystemErr     R     at com.sybase.jdbc3.jdbc.SybConnection.<init>(Unknown Source)
[09-8-22 15:01:54:301 CST] 000014a8 SystemErr     R     at com.sybase.jdbc3.jdbc.SybDriver.connect(Unknown Source)
[09-8-22 15:01:54:301 CST] 000014ae DefaultRemote W   Method execution failed:
[09-8-22 15:01:54:301 CST] 000014a8 SystemErr     R     at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:37)
[09-8-22 15:01:54:301 CST] 000014a8 SystemErr     R     at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)
[09-8-22 15:01:54:301 CST] 000014a8 SystemErr     R     at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:771)
[09-8-22 15:01:54:301 CST] 000014a8 SystemErr     R     at org.apache.commons.dbcp.AbandonedObjectPool.borrowObject(AbandonedObjectPool.java:74)
[09-8-22 15:01:54:302 CST] 000014a8 SystemErr     R     at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:95)
[09-8-22 15:01:54:301 CST] 000014ae DefaultRemote W   TRAS0014I: 下列异常已记录 java.lang.NullPointerException
        at base.baseBean.forLogin(baseBean.java:1736)
        at sun.reflect.GeneratedMethodAccessor490.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
        at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
        at org.directwebremoting.impl.ExecuteAjaxFilter.doFilter(ExecuteAjaxFilter.java:34)
        at org.directwebremoting.impl.DefaultRemoter$1.doFilter(DefaultRemoter.java:423)
        at org.directwebremoting.impl.DefaultRemoter.execute(DefaultRemoter.java:426)
        at org.directwebremoting.impl.DefaultRemoter.execute(DefaultRemoter.java:280)
        at org.directwebremoting.servlet.PlainCallHandler.handle(PlainCallHandler.java:52)
        at org.directwebremoting.servlet.UrlProcessor.handle(UrlProcessor.java(Compiled Code))
        at org.directwebremoting.servlet.DwrServlet.doPost(DwrServlet.java:120)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
        at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
        at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java(Compiled Code))
        at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java(Compiled Code))
        at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java(Compiled Code))
        at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java(Compiled Code))
        at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java(Compiled Code))
        at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java(Compiled Code))
        at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java(Compiled Code))
        at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java(Compiled Code))
        at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java(Compiled Code))
        at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java(Compiled Code))
        at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java(Compiled Code))
        at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java(Compiled Code))
        at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
发表于 2009-9-3 16:31:30 | 只看该作者
建议你找找代码本身或者是被测试对象相关的参数设置,估计是你的web服务器相关的参数设置出了问题
回复 支持 反对

使用道具 举报

该用户从未签到

3#
发表于 2009-9-3 18:49:17 | 只看该作者
回复 支持 反对

使用道具 举报

本版积分规则

关闭

站长推荐上一条 /1 下一条

小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

GMT+8, 2024-11-11 19:43 , Processed in 0.071262 second(s), 28 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

快速回复 返回顶部 返回列表