Jmeter 执行20用户(单用户查询)并发有部分失败报错“内部服务错误”

 写给自己的,当个记录吧(学习Jmeter性能测试)

性能测试执行如下:

Jmeter 执行20用户(单用户查询)并发有部分失败报错“内部服务错误”

执行结果如下:

Jmeter 执行20用户(单用户查询)并发有部分失败报错“内部服务错误”

最开始的时候不相信这个服务器能有这么差劲,后来通过日志查看,发现报错:

org.hibernate.util.JDBCExceptionReporter logExceptions
严重: Listener refused the connection with the following error:
ORA-12519, TNS:no appropriate service handler found
The Connection descriptor used by the client was:
127.0.0.1:1521:orcl

org.hibernate.util.JDBCExceptionReporter logExceptions

明白是数据库连接数量的问题,12519错误为监听不能提供服务,通常为数据库进程达到上限导致。