# Bad Performance when load test

**URL:** <https://forum.keycloak.org/t/bad-performance-when-load-test/17148>\
**Category:** Configuring the server\
**Created:** [August 30, 2022, 4:28am UTC](https://forum.keycloak.org/t/bad-performance-when-load-test/17148 "2022-08-30T04:28:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hnhai](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/hnhai/32/6463_2.png) [@hnhai](https://forum.keycloak.org/u/hnhai)\
**Post date:** [August 30, 2022, 4:28am UTC](https://forum.keycloak.org/t/bad-performance-when-load-test/17148/1 "2022-08-30T04:28:21Z")

</div>

- Enviroment: Kubernetes using Helm [chart](https://github.com/bitnami/charts/tree/master/bitnami/keycloak) 3 pod, 2 core, 4gb ram limit each pod
- External PostgresDB.
- Load test: Login 500 diffrerence accounts. 3000 ccu by Jmeter  
=\> Response very slow about 20 second, pod restart. Some log in container bellow:
- Cache ‘realms’ is in ‘TERMINATED’ state and so it does not accept new invocations. Either restart it or recreate the cache container
- Caught exception when handling command ClusteredGetCommand{key=b39e9a31-ea55-46f3-ad01-7ba8ed2dacff, flags=, topologyId=185, isWrite=false}: java.lang.IllegalStateException: Read commands must ignore leavers
- WARN [io.netty.bootstrap.ServerBootstrap] (vert.x-acceptor-thread-0) Failed to register an accepted channel: [id: 0x668e622d, L:0.0.0.0/0.0.0.0:8080]: java.lang.IllegalStateException
- Uncaught server error: org.hibernate.exception.GenericJDBCException: Unable to acquire JDBC Connection

Any one faced same issue ? Thanks
