[jboss-user] [JBossCache] - Re: Cache startup problem on highloaded web application

screeny do-not-reply at jboss.com
Tue Apr 3 13:35:13 EDT 2007


I'm on one node (one server, one jvm without clustering) 

My application flow is this:
1. request to my servlet
2. if content is in cache put it in response and send it to the client (end)
3. if not cached generate content
4. store generated content in cache
5. put content in response and send it to the client (end)

The problem is that with 20-30 request/sec (all request starts at same time or within 1 sec like a production system) every request skip 2. because the first time the cache is empty and goes to step 3. to generate content. Because step 3. is a relalatively slow process because of sql commands the 20-30 thread generate high load and can't serve requests. 
If I start one thread first and wait for the first response the next threads can use cached data and everything works fine, but it isn't a real case.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4034223#4034223

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4034223



More information about the jboss-user mailing list