# High response times of first few hits

**URL:** <https://discuss.aerospike.com/t/high-response-times-of-first-few-hits/278>\
**Category:** Tuning\
**Created:** [August 16, 2014, 12:58am UTC](https://discuss.aerospike.com/t/high-response-times-of-first-few-hits/278 "2014-08-16T00:58:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joe](https://avatars.discourse-cdn.com/v4/letter/j/b9e5f3/32.png) [@Joe](https://discuss.aerospike.com/u/Joe)\
**Post date:** [August 16, 2014, 12:58am UTC](https://discuss.aerospike.com/t/high-response-times-of-first-few-hits/278/1 "2014-08-16T00:58:29Z")

</div>

Original postby amdalal » Wed Dec 18, 2013 12:29 am

Hi all,

We are using Aerospike in our production environment which has below setup:

WebContainer=Apache-tomcat Environment=AmazonEC2 Language=JAVA fail.if.not.connected=true max.socket.idle=20 max.threads=3000 timeout=1000 Aerospike setup=2 nodes (One in each availability zone) . Community edition. We connect to both the nodes at start-up using Code: Select allnew AerospikeClient(ClientPolicy, Host);

There is one observation: As soon as the tomcat starts taking traffic (around 200 hits per sec), the response times of first few hits is very very high. In the order of 3-4 sec. Eventually the same response time comes down to 25ms. Also, there’s a very heavy load on the server (order of 50-60), which eventually remains stable at 2-3.

Is there anything we are doing wrong?
