RE: [JCS] the data becomes zero

2011-09-18 Thread NM, Vijayakumar
Hi Thomas,

Thanks for the response.

Yes, the reset happens during normal operations, but I don't see any error 
messages either in the application log or the server log (we use weblogic 9.2).

Yes, I will try download the code from trunk and update you on the impact.

Regards,
Vijay


-Original Message-
From: Thomas Vandahl [mailto:t...@apache.org] 
Sent: 17 September 2011 18:27
To: Commons Users List
Subject: Re: [JCS] the data becomes zero

On 15.09.11 07:27, NM, Vijayakumar wrote:
 Thanks for the reply, I have seen this problem many times, sometimes during 
 server restart but most of the time it is during usage of JCS, for example I 
 access data from JCS and next moment the entire cache file is empty and I 
 don't get any data.

Could I ask you for some more investigations? If the reset happens
during normal operation, you should see a log message at warning level
containing The file is corrupt. Do you see this?

I modified the responsible class IndexedDisk recently to use NIO for the
disk operations. Would you be able to test with the current trunk of JCS?

Bye, Thomas.

-
To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
For additional commands, e-mail: user-h...@commons.apache.org







This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is 
intended only for the person to whom it is addressed. If you are not the 
intended recipient, you are not authorized to 
read, print, retain, copy, disseminate, distribute, or use this message or any 
part thereof. If you receive this message 
in error, please notify the sender immediately and delete all copies of this 
message.


-
To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
For additional commands, e-mail: user-h...@commons.apache.org



Re: [JCS] the data becomes zero

2011-09-17 Thread Thomas Vandahl
On 15.09.11 07:27, NM, Vijayakumar wrote:
 Thanks for the reply, I have seen this problem many times, sometimes during 
 server restart but most of the time it is during usage of JCS, for example I 
 access data from JCS and next moment the entire cache file is empty and I 
 don't get any data.

Could I ask you for some more investigations? If the reset happens
during normal operation, you should see a log message at warning level
containing The file is corrupt. Do you see this?

I modified the responsible class IndexedDisk recently to use NIO for the
disk operations. Would you be able to test with the current trunk of JCS?

Bye, Thomas.

-
To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
For additional commands, e-mail: user-h...@commons.apache.org



[JCS] the data becomes zero

2011-09-14 Thread NM, Vijayakumar
Hi All,

I have been using JCS for some time now, I think I have encountered a major 
problem, i.e...

We are using IndexedDiskCache, the size of the data file in disk is about 
250MB, the problem is sometimes, the data gets erased from the disk (the data 
file size becomes zero) without any error message any where?

Snippet of the configuration file is placed below, does any anybody faced this 
problem or is it a known issue or is there any work around, please let me know


### Indexed Disk Cache ###
jcs.auxiliary.indexedDiskCache=org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheFactory
jcs.auxiliary.indexedDiskCache.attributes=org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheAttributes
jcs.auxiliary.indexedDiskCache.attributes.DiskPath=/mydata
jcs.auxiliary.indexedDiskCache.attributes.MaxPurgatorySize=-1
jcs.auxiliary.indexedDiskCache.attributes.MaxKeySize=50
jcs.auxiliary.indexedDiskCache.attributes.MaxRecycleBinSize=5
jcs.auxiliary.indexedDiskCache.attributes.OptimizeAtRemoveCount=30
jcs.auxiliary.indexedDiskCache.attributes.EventQueueType=POOLED
jcs.auxiliary.indexedDiskCache.attributes.EventQueuePoolName=indexedDiskCacheQueuePool
jcs.auxiliary.indexedDiskCache.attributes.OptimizeOnShutdown=true

### CACHE REGION - myRegion ###
jcs.region.myRegion=indexedDiskCache,failOverCache
jcs.region.myRegion.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
jcs.region.myRegion.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
jcs.region.myRegion.cacheattributes.MaxObjects=500
jcs.region.myRegion.cacheattributes.UseMemoryShrinker=true
jcs.region.myRegion.cacheattributes.ShrinkerIntervalSeconds=5
jcs.region.myRegion.cacheattributes.MaxMemoryIdleTimeSeconds=5
jcs.region.myRegion.cacheattributes.DiskUsagePatternName=UPDATE

Regards,
Vijay







This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is 
intended only for the person to whom it is addressed. If you are not the 
intended recipient, you are not authorized to 
read, print, retain, copy, disseminate, distribute, or use this message or any 
part thereof. If you receive this message 
in error, please notify the sender immediately and delete all copies of this 
message.


Re: [JCS] the data becomes zero

2011-09-14 Thread Thomas Vandahl
On 14.09.11 15:31, NM, Vijayakumar wrote:
 We are using IndexedDiskCache, the size of the data file in disk is about 
 250MB, the problem is sometimes, the data gets erased from the disk (the data 
 file size becomes zero) without any error message any where?

Does this happen during normal use or only at restart? The restart
mechanism is somewhat picky concerning problems in the file and tends to
reset the data file then.

Bye, Thomas.

-
To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
For additional commands, e-mail: user-h...@commons.apache.org