[JBossCache] - Re: Problem using FileCacheLoader
by bruce_zhang
genman:
Sorry, I missed the trace in the log file:
main org.jboss.cache.loader.jdbm.JdbmCacheLoader - JDBM database /tmp/cacheStore/TreeCache-Cluster opened with 11134 entries.
Does that mean all the 11134 entries had been Physically loaded in memory? It seemed only take 7 seconds -- was the time reasonable ?
The reason for the doubt was also because the GET performance SLOWED down pretty much after I restart the Cache. The test case was as following:
1. In a for loop, right after I PUT an entry, I call a GET on the same node with same key to make sure the entry saved successfully.
2. In step 1 each GET took average time about 5-10 ms.
3. After PUT about 11K entries (diff key/value under one node). I stop the service and restart the Cache (currently it hosted on Weblogic AS so I acturally restarted the Weblogic AS). And I hope the cache would pre-load the 11K entries in memory from the persistent file in the startup.
4. Then I GET the entry again. But this time it was much slower -- each took about 70-100ms. So it seemed to me the object may not really found in the memory.
Could you please take a look for the setting and log, and check whether I missed anything ?
Besides, in our current business requirement, we actually need to write/read a lot data to cache in a Burst mode, so we pretty concern about the cache write/read performance but not care too much how it persist. When write to cache most of the data are new, and when read from the cache if the data not in Cache memory it won't be in the file either (We prefer cache all data in mem without expiration). Could you please suggest the best configuration for it ?
Also considering the tree structure, if I store the data under multiple node instead one, will that improve the read/write performance ?
Thank you very much !
-Bruce
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3957970#3957970
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3957970
19 years, 9 months
[JBoss Seam] - Re: How to redirect to the start page in a conversation when
by gfzhang
Thanks for your quick reply. But it does not work.
I add some pages in the numberGuess sample. The followng is the page flow xml file:
| <pageflow-definition name="numberGuess">
|
| <start-page name="displayGuess" view-id="/numberGuess.jsp">
| ....
| <transition name="interval" to="toInterval">
| <action expression="#{numberGuess.show}" />
| </transition>
| </start-page>
|
| <page name="toInterval" view-id="/interval.jsp">
| <redirect/>
| <transition name="back" to="displayGuess"/>
| <transition name="done" to="toDone">
| <action expression="#{numberGuess.show}" />
| </transition>
| </page>
|
| <page name="toDone" view-id="/done.jsp">
| <redirect/>
| <transition name="back" to="displayGuess">
| <action expression="#{numberGuess.show}" />
| </transition>
| <end-conversation />
| </page>
|
| </pageflow-definition>
In "toInterval" page, I restart JBoss server, then click Done button. I hope this would cause the numberGuess page to be displayed, but not. The toInterval page is redisplayed.
The following is the show method:
| @Conversational(ifNotBegunOutcome="back")
| public void show()
| {
| System.out.println( "i am called" ) ;
| }
|
|
even if i use
@Conversational(ifNotBegunOutcome="/numberGuess.jsp")
it still won't work.
What is wrong in my code?
Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3957969#3957969
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3957969
19 years, 9 months