I have do many thinks.
In log4j.xml :
<root>
<appender-ref ref="CONSOLE"/>
<!-- appender-ref ref="FILE"/ -->
</root>
So, no more loging in file. (I have look on the file, and there is nothing)
In my class :
try
{
JCS cache = JCS.getInstance("Test");
System.out.println ("Before test");
char suffix = '_';
System.out.println (new Date ());
for (int i = 0; i < 2000; i++)
cache.put("" + Math.random() + suffix, "");
System.out.println (new Date ());
for (int i = 0; i < 100; i++)
cache.get("" + Math.random());
System.out.println (new Date ());
System.out.println ("After test");
}
catch (Exception e)
{
// Handle cache region initialization failure
e.printStackTrace();
}
Output :
18:14:32,805 INFO [STDOUT] Before test
18:14:32,805 INFO [STDOUT] Tue Jan 20 18:14:32 EST 2004
18:14:33,064 INFO [STDOUT] Tue Jan 20 18:14:33 EST 2004
18:15:12,318 INFO [STDOUT] Tue Jan 20 18:15:12 EST 2004
18:15:12,319 INFO [STDOUT] After test
cache.cff
jcs.region.Test=
jcs.region.Test.cacheattributes=org.apache.jcs.engine.CompositeCacheAttribut
es
jcs.region.Test.cacheattributes.MaxObjects=10000
jcs.region.Test.cacheattributes.UseMemoryShrinker=false
So, it take less than 1s for writing 2000 element in the cache, but it take
39s for reading only 100 element ... There is always a problem :(
Any idea again ?
JMS.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]