Closed GoogleCodeExporter closed 9 years ago
This is not modeling a real world problem. I'm pretty sure you're not testing
what you think you're testing.
Original comment by dsalli...@gmail.com
on 15 Jul 2010 at 5:46
I want to present you one issue happening in a web application. This
application fetch/store data into memcached by spy client. Similarly, I saw the
same symptom when all the data is in memcached server.
1) 200 current users logs on the application and do some common business for
the first time.
2) 200 current users logs on the application and do some common business for
the second time.
Performance team helped me to compare performance between 1) and 2). They got
the same result: 1) is much slower than 2).
I carefully examine memcached stats output and tomcat configuration as follows:
1) Application asymmetrically hits two memcached instances. One instance has
more get hits than another instance. This is because each login needs to access
some common objects.
2) Use executor service to manager thread pool
<Executor name="tomcatThreadPool"
namePrefix="catalina-exec-"
maxThreads="250" minSpareThreads="25"
/>
Because the application is confidential, I have to write this stupid class for
your reference. Could you give me some advice in this situation?
Original comment by smilingai2004@gmail.com
on 15 Jul 2010 at 6:46
Original issue reported on code.google.com by
smilingai2004@gmail.com
on 15 Jul 2010 at 3:26Attachments: