我正试图对我的简单crudspring启动应用程序进行压力测试,但我遇到了hikari超时错误。我试图增加最大池大小,但我仍然有相同的问题。如果池大小大于或等于并发请求,则没有例外,但速度太慢。你知道吗?
app_1 | 2020-11-14 17:20:01.723 DEBUG 1 --- [nio-80-exec-150] o.s.orm.jpa.JpaTransactionManager : Participating transaction failed - marking existing transaction as rollback-only
app_1 | 2020-11-14 17:20:01.723 DEBUG 1 --- [nio-80-exec-150] o.s.orm.jpa.JpaTransactionManager : Setting JPA transaction on EntityManager [SessionImpl(988067110<open>)] rollback-only
app_1 | 2020-11-14 17:20:01.724 DEBUG 1 --- [nio-80-exec-150] o.a.c.loader.WebappClassLoaderBase : findClass(jdk.internal.reflect.GeneratedMethodAccessor80)
app_1 | 2020-11-14 17:20:01.725 DEBUG 1 --- [nio-80-exec-150] o.a.c.loader.WebappClassLoaderBase : --> Returning ClassNotFoundException
app_1 | 2020-11-14 17:20:01.715 DEBUG 1 --- [nio-80-exec-102] o.a.c.loader.WebappClassLoaderBase : findClass(jdk.internal.reflect.GeneratedMethodAccessor76)
app_1 | 2020-11-14 17:20:01.727 DEBUG 1 --- [nio-80-exec-102] o.a.c.loader.WebappClassLoaderBase : --> Returning ClassNotFoundException
app_1 | 2020-11-14 17:20:01.727 DEBUG 1 --- [nio-80-exec-153] o.a.c.loader.WebappClassLoaderBase : findClass(jdk.internal.reflect.GeneratedMethodAccessor75)
app_1 | 2020-11-14 17:20:01.728 DEBUG 1 --- [nio-80-exec-153] o.a.c.loader.WebappClassLoaderBase : --> Returning ClassNotFoundException
app_1 | 2020-11-14 17:20:01.728 DEBUG 1 --- [nio-80-exec-102] o.a.c.loader.WebappClassLoaderBase : findClass(jdk.internal.reflect.GeneratedMethodAccessor82)
app_1 | 2020-11-14 17:20:01.729 DEBUG 1 --- [nio-80-exec-102] o.a.c.loader.WebappClassLoaderBase : --> Returning ClassNotFoundException
app_1 | 2020-11-14 17:20:01.729 DEBUG 1 --- [nio-80-exec-153] o.h.engine.jdbc.spi.SqlExceptionHelper : unable to obtain isolated JDBC connection [n/a]
app_1 |
app_1 | java.sql.SQLTransientConnectionException: HikariPool-1 - Connection is not available, request timed out after 30004ms.
编辑:
https://github.com/wlp2s0/basic-java-web-services
这是我简单积垢的回购。查询非常简单,数据库是空的,所以这个错误看起来很奇怪。
暂无答案!
目前还没有任何答案,快来回答吧!