[jcs] Re: Is there any method to save .key file other than dispose()/shutdown()

2011-08-28 Thread Thomas Vandahl
On 27.08.11 14:12, gurunath wrote: I am trying to use jcs indexeddiskcache in my web application. Here i need to save the cached data in disk whenever i change cached data, data file is updating but key dose't update untill we call dispose()/shutdown(). After calling

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

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.

Re: JCS LFU Implementation

2011-12-10 Thread Thomas Vandahl
Am 09.12.2011 22:06, schrieb Mir Tanvir Hossain: Hi, from the documentation it seems that JCS does support LFU. However, I could not find the LFU implementation on the JCS code. I might be missing something very obvious. Could anyone please point out the class on JCS that implements the LFU

Re: [JCS] - Remote store recovery

2011-12-23 Thread Thomas Vandahl
On 20.12.11 08:57, NM, Vijayakumar wrote: Hi All, One of the JCS feature mentioned in the website is Remote store recovery, can somebody point me the documentation or example of how this is achieved. Thanks in advance. Maybe this?

Re: Need Help on JCS Remote Cache

2011-12-28 Thread Thomas Vandahl
On 26.12.11 09:11, Narendra Verma wrote: Hi All, I have made setup of JCS in my Linux environment and trying to make a POC using Remote Cache. I cannot help you much with this problem. Just a hint that the users list for JCS changed to user@commons.apache.org. I redirected your message to

[JCS] Re: JCS Key Length Issue -- limited to 256 characters long?

2012-01-05 Thread Thomas Vandahl
First of all: Please use user@commons.apache.org for questions regarding JCS. On 04.01.12 18:12, Chopin hu wrote: I have a program to download files from remote sites. Once downloaded a data file, I use the URL as a key and put it to the cache so that I don't have to download it again if

Re: [JCS]--How to get a list of Keys in a region

2012-01-14 Thread Thomas Vandahl
On 13.01.12 15:59, Chopin hu wrote: Vijayakumar, Thanks for your response. The method cache.putInGroup() does not seem to really work in my case. I am working a simple commandline utility, which will extract all keys from a cache region. No key/value can be known in advance.

Re: [JCS]--How to get a list of Keys in a region

2012-01-16 Thread Thomas Vandahl
On 16.01.12 18:06, Chopin hu wrote: java.lang.UnsupportedOperationException at org.apache.jcs.auxiliary.disk.file.FileDiskCache.getGroupKeys(FileDiskCache.java:143) at org.apache.jcs.engine.control.CompositeCache.getGroupKeys(CompositeCache.java:1110) at

Re: [JCS]--How to get a list of Keys in a region

2012-01-17 Thread Thomas Vandahl
On 17.01.12 03:35, Chopin hu wrote: Thank you so much, Thomas. Unfortunately, due to the customer requirements, the disk cache instead of indexed disk cache is what they want. is there any plan JCS will add this support to the disk cache? I think it is really useful to have it in Disk

Re: [dbutils] Mapping from JPA annotations

2012-01-19 Thread Thomas Vandahl
On 19.01.12 21:37, Moandji Ezana wrote: Interesting. I've never used MyBatis, but U've read the docs and it didn't really seem to help write less SQL. Do you all only use DbUtils for smaller projects, then? I prefer Torque (db.apache.org/torque). Nice, fast and simple. And no SQL to write.

Re: [JCS] Performance of invalidating a group in LRUMemoryCache

2012-06-21 Thread Thomas Vandahl
On 20.06.12 23:51, Joseph A Calzaretta wrote: Are we doing something wrong? Is the behavior we're seeing intended or is it a bug? If it is by design, should it perhaps be documented somewhere that the performance of invalidateGroup is O(n) and not O(1)? Obviously, the feature was not

Re: [JCS] Mystery in Purgatory size

2012-09-30 Thread Thomas Vandahl
On 26.09.12 17:16, Chopin hu wrote: I set the Purgatory size to 1000 in the default region. I use file disk cache auxiliary (not indexed) so that I have one cache item per data (binary data file).I need to do periodic batch cache using JCS.If the cache items are less than 1000,

Re: [JCS] Remote Cache Server Help

2012-11-14 Thread Thomas Vandahl
On 12.11.12 16:28, Drew Leamon wrote: registry.host=localhost registry.port=1103 remote.cache.service.port=1103 Shouldn't these ports be different? Bye, Thomas. - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org

Re: [JCS] Remote Cache Server Help

2012-12-02 Thread Thomas Vandahl
On 27.11.12 16:28, Drew Leamon wrote: I'm embarrassed! I just figured out the issue. My server was using 2.0.0-SNAPSHOT and my client was using 1.4.0. Sorry to waste your time. Not at all. Thanks for telling us. Bye, Thomas

Re: JCS Lateral Cache

2013-02-08 Thread Thomas Vandahl
On 08.02.13 14:06, Jean-Marc Spaggiari wrote: Thanks for jumping in. JCS became my playground by accident, after all. :-) props.put(jcs.region.robotCache, DC, LTCP); I'm not sure if it makes sense to have two auxiliaries for the region. I'd try to get the lateral thing

Re: JCS Lateral Cache

2013-02-26 Thread Thomas Vandahl
Hi Jean-Marc, On 25.02.13 04:18, Jean-Marc Spaggiari wrote: Regarding DC + LTCP vs LTCP, is that an issue? Becaue if I stop all the nodes, I don't want them to have to re-query everything. No, actually, it should not be an issue. However, if you want to clarify the behavior of the LTCP cache

Re: [JCS] Remote Cache

2013-06-27 Thread Thomas Vandahl
On 25.06.2013 14:03, Sunil Kumar P wrote: Hi , i'm new to JCS ! i was trying out Remote Cache ! In Failover Server i have confiured two Server . When primary Server is down . Data in cache is not empty secondary Server . Please Find Below Configuration Primary Server is 10.44.71.15 9000 and

[jcs] Re: JCS disk only and expiration config question

2013-09-25 Thread Thomas Vandahl
Hi JavaWebDev, first of all, the usage of clear names of real persons would be very much appreciated. On 24.09.13 21:27, JavaWebDev wrote: First. The user and dev mailing lists haven't been active lately and the wiki seemed outdated in some sections. (ex: no longer a .commons package). Is JCS

Re: [jcs] Re: JCS disk only and expiration config question

2013-09-26 Thread Thomas Vandahl
On 25.09.13 19:25, JavaWebDev wrote: There doesn't seem to be a a DiskShrinker like there is a memory shrinker so it looks like the objects stored on disk will only be removed passively when retrieved and identified as expired? I'll look into the Recycle bin more. See the method

Re: [JCS] Version 2 release

2014-02-08 Thread Thomas Vandahl
On 04.02.14 16:52, Gary Gregory wrote: I think the biggest hurdle to releasing [JCS] 2.0 is finding a [Commons] committer willing to put in the time to go over the component and act as the release manager. Well, I'm actually doing what I can. My hesitation partly comes from the fact that the

Re: [JCS] Version 2 release

2014-02-08 Thread Thomas Vandahl
Gary, On 08.02.14 17:34, Gary Gregory wrote: Mat, I would suggest getting familiar with the code base in trunk. Can the code be released as is or are there problems? Should some issues in Jira be fixed for this release? Major releases like a 2.0 from 1.x are the only time APIs can break

Re: [JCS] event handler callback not getting called

2014-03-20 Thread Thomas Vandahl
On 19.03.14 18:25, sebb wrote: But when an element is evicted from JCS cache im not getting any callback though i know cache eviction has happened for element for sure. Is there anything else that i need to do apart from what is mentioned in the example. Would you please open an issue in

Re: [math] Curve fitting ...

2014-08-14 Thread Thomas Vandahl
I take it, you ask for help for doing your homework? Bye, Thomas Am 14.08.2014 um 15:56 schrieb South Light southligh...@gmail.com: Hi Ted, Thanks a lot for your suggestion but I need to add it using java. Thanks ​again​ .​ 2014-08-14 2:22 GMT-03:00 Ted Dunning

Re: correct estimate of the disk cache size

2014-10-14 Thread Thomas Vandahl
On 09.10.14 17:43, arnout cator wrote: jcs.auxiliary.DC.attributes.OptimizeAtRemoveCount=250 That's the key here. In general, you would expect the cache size that you calculated. However, considering the way the disk cache works, this is only true if your data objects are of exactly the same

Re: JCS cache benchmarking for performance

2014-10-14 Thread Thomas Vandahl
On 09.10.14 16:02, arnout cator wrote: What would be the best practice in monitoring JCS caching performance for production web applications? I am looking for a way to collect data and then give advice on sizing of web applications that heavily use JCS for caching of java objects. Which

Re: [JCS] Remote Cache causes Tomcat Windows Service to hang on shutdown.

2014-10-15 Thread Thomas Vandahl
On 06.10.14 15:55, Art Thursland wrote: Here is the part of the log written during shutdown: 09:42:18,899 INFO [RemoteCacheStartupServlet] Shutting down remote cache 09:42:18,903 INFO [CompositeCache] In DISPOSE, [tokenCache] fromRemote [false] Region Name = tokenCache HitCountRam = 0

Re: JCS Cache behaviour question

2014-10-26 Thread Thomas Vandahl
On 24.10.14 00:48, arnout cator wrote: Can someone tell me how JCS works to show Auxiliary hits and no data file size nor key size, considering my setup? JCS keeps the disk cache files open during operation. So depending on your operating system, you may not see updates of the directory

Re: [JCS] disk persistence - same conf file, different results

2014-11-14 Thread Thomas Vandahl
On 14.11.14 13:47, joao tiago a. m. viegas wrote: I'll probably reformat this question in a simpler way. The goal is to persist an element and retrieve it after restart of a new vm. The disk caches persist the keys when the cache is shut down. So you should call

Re: [JCS] disk persistence - same conf file, different results

2014-11-14 Thread Thomas Vandahl
On 14.11.14 18:03, Thomas Vandahl wrote: On 14.11.14 13:47, joao tiago a. m. viegas wrote: I'll probably reformat this question in a simpler way. The goal is to persist an element and retrieve it after restart of a new vm. The disk caches persist the keys when the cache is shut down. So you

Re: [JCS] disk persistence - same conf file, different results

2014-11-17 Thread Thomas Vandahl
On 17.11.14 14:49, Tim Cronin wrote: Any ETA on when JCS 2.0 will be released? There is a vote running currently for 2.0 alpha 1. Bye, Thomas. - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional

Re: JSC 1.3 thread cleanup

2015-01-25 Thread Thomas Vandahl
On 23.01.15 15:16, Tim Cronin wrote: ok, thanks how different is 2 vs. 1.3? First of all it is unreleased as of yet. The main change is the use of the class CacheAccess instead of JCS when using caches. Due to the move to Apache Commons, the package has changed from org.apache.jcs to

Re: JSC 1.3 thread cleanup

2015-01-22 Thread Thomas Vandahl
On 22.01.15 17:42, Tim Cronin wrote: I'm getting tomcat errors on shutdown: 2015-01-22 16:41:51,186 [localhost-startStop-2] ERROR org.apache.catalina.loader.WebappClassLoader- The web application [/api] appears to have started a thread named [ElementEventQueue.QProcessor-1] but has failed

Re: [JCS] Dynamic Cache Expiration on get

2015-01-22 Thread Thomas Vandahl
Hi Jan, On 16.01.15 17:12, Jan Swaelens wrote: Hello, I have a region set up to expire its data lets say after 60 seconds. There's also a shrink thread running every 100 seconds. We add an event handler when storing certain items, in this handler we implement some logic to re-insert the

Re: can # sometimes be ignored by JCS

2015-03-13 Thread Thomas Vandahl
On 10.03.15 23:12, arnout cator wrote: Hi, I have the situation that I have 10+ web apps using JCS. I have this in cache.ccf: ### # Stylesheet settings ###

Re: [JCS] Error starting web service with JCS on WAS 8.5.5 (Linux only)

2015-06-06 Thread Thomas Vandahl
Hi Barry, On 01.06.15 02:09, Barry Lulas wrote: Hello, I have created a web service for WebSphere that uses a basic JCS configuration. When I package and deploy for WAS under Windows on my local machine I have no issues. When I deploy that same .ear file to my WAS running on Linux I

Re: [JCS] Region No longer alive so returning false for key

2015-07-05 Thread Thomas Vandahl
On 02.07.15 15:13, Tim Cronin wrote: JCS 1.3 i periodically get the above error. what do i need to do to recover from this? First of all I'd suggest to try out commons-jcs 2.0-beta1. It contains numerous fixes and cleans up the lifecycle of most of the JCS manager classes. If that

Re: [configuration] How to read an INI Configuration with brackets as list separator

2015-08-25 Thread Thomas Vandahl
On 25.08.15 07:55, Patrick Brunmayr wrote: Hello How can i read a configuration like that ? [RESPONSE] code = 200 description = Command completed successfully queuetime = 0 runtime = 0.006 property[count][0] = 164 property[domain][0] = xxx property[domain][1] = xxx

Re: [JCS] Region No longer alive so returning false for key

2015-07-10 Thread Thomas Vandahl
On 06.07.15 15:37, Tim Cronin wrote: is there any documentation on migrating from 1.3 to 2? Not yet. I started to write something, but I have yet to finish it. the JCSAdmin.jsp the FAQ link is broken. moved due to package change

Re: [JCS] Region No longer alive so returning false for key

2015-07-10 Thread Thomas Vandahl
On 06.07.15 17:06, Tim Cronin wrote: I added the following before calling the composite cache shutdown. this should be called via the composite cache shutdown code i think ThreadPoolManager poolMgr = ThreadPoolManager.getInstance(); for(String poolName :

Re: [JCS] Region No longer alive so returning false for key

2015-07-10 Thread Thomas Vandahl
On 06.07.15 16:33, Tim Cronin wrote: MaxLifeSeconds has been changed to MaxLife, didn't find anything in the docs about this change. See http://commons.apache.org/proper/commons-jcs/RegionProperties.html Bye, Thomas - To

Re: [JCS]

2016-02-06 Thread Thomas Vandahl
Hi Mat, On 03.02.16 17:44, Mat Jaggard wrote: > I have three patches that might be helpful... > > 1. Javadoc changes to make it compile on my machine > 2. Server port changes which may (or may not) fix the continuum unit > test issue > 3. Change to the way existing tables are detected (I think I

Re: [JCS]

2016-02-02 Thread Thomas Vandahl
On 02.02.16 11:22, Mat Jaggard wrote: > I've submitted my pull request. > > https://github.com/apache/commons-jcs/pull/2 > > On Mon, 1 Feb 2016 at 16:32 Gary Gregory wrote: > >> It is, github is just a mirror. You submit a patch with the Jira if you >> prefer. Thanks

Re: JCS : element expires sooner than configured

2017-01-25 Thread Thomas Vandahl
Ouch, that hurt. I'm sorry, this is a problem with ElementAttributes.clone() not updating createTime. I fixed it in trunk. Could you try if it works for you? Bye, Thomas -- tv > Am 23.01.2017 um 10:48 schrieb Sahib Bin Mahboob Ron : > > Hi, > > I am trying to configure a

[ANNOUNCE] Apache Commons JCS 2.1 Released

2017-02-09 Thread Thomas Vandahl
The Apache Commons Team is pleased to announce the availability of: Apache Commons JCS 2.1 Apache Commons JCS is a distributed, versatile caching system. The release notes can be reviewed at: http://www.apache.org/dist/commons/jcs/RELEASE-NOTES.txt Distribution packages can be downloaded from:

Re: Apache JCS 2.0 beta 2?

2016-09-24 Thread Thomas Vandahl
Hi Ryan, On 23.09.16 22:54, Ryan Fong wrote: > G'day, all. I've submitted a couple of patches towards Apache JCS 2.0 beta-2 > a few months back. I've also been seeing some errors like JCS-146 which have > already been fixed but are not available in a download. However, I don't see > any

Re: JCS 2.0-beta-2: ShrinkerThread: Unexpected trouble in shrink cycle

2016-11-26 Thread Thomas Vandahl
On 26.11.16 16:07, Kirys wrote: > [C]2016-11-26 15:56:00,070|JCS-Scheduler-Thread-21|INFO > o.a.c.j.e.m.s.ShrinkerThread: Unexpected trouble in shrink cycle > java.lang.NoClassDefFoundError: > org/apache/commons/jcs/engine/control/group/GroupAttrName This looks like a class-loader issue between

[ANNOUNCE] Apache Commons JCS 2.0-beta-2 Released

2016-11-16 Thread Thomas Vandahl
The Apache Commons Team is pleased to announce the availability of: Apache Commons JCS 2.0-beta-2 Apache Commons JCS is a distributed, versatile caching system. The release notes can be reviewed at: http://www.apache.org/dist/commons/jcs/RELEASE-NOTES.txt Distribution packages can be

Re: [ANNOUNCE] Apache Commons JCS 2.0-beta-2 Released

2016-11-16 Thread Thomas Vandahl
On 16.11.16 14:56, Tim Cronin wrote: > when will it be accessible via maven/ivy repo? It already is: http://repo1.maven.org/maven2/org/apache/commons/commons-jcs-core/2.0-beta-2/ Bye, Thomas. - To unsubscribe, e-mail:

[ANNOUNCE] Apache Commons JCS 2.0 Released

2016-12-30 Thread Thomas Vandahl
The Apache Commons Team is pleased to announce the availability of: Apache Commons JCS 2.0 Apache Commons JCS is a distributed, versatile caching system. The release notes can be reviewed at: http://www.apache.org/dist/commons/jcs/RELEASE-NOTES.txt Distribution packages can be downloaded from:

Re: [jcs] Migrating from Ehcache to JCS, need help getting the right config

2017-03-26 Thread Thomas Vandahl
On 23.03.17 15:01, robertlazarski . wrote: > Thanks for the response! That helped a lot. I am about to start coding > but I am trying to figure out #3. Please see below. The cache warming itself is not a big deal. Just call getKeySet() on the memory cache and call get() for all keys. This will

Re: [jcs] Migrating from Ehcache to JCS, need help getting the right config

2017-03-22 Thread Thomas Vandahl
Hi there, On 21.03.17 15:50, robertlazarski . wrote: > Hello! We have a production system running Ehcache and we'd like to > use JCS instead. What I need to do with JCS is: > > 1) Load all Objects into memory, unlimited with infinite "time to > live". In practice over many years, its not been a

[jcs] Re: Can JCS have update events?

2017-04-09 Thread Thomas Vandahl
On 08.04.17 14:40, robertlazarski . wrote: > We need update events because our code already uses them - we are > replacing our current cache libs (ehcache) with another lib - > preferably JCS. > > More specifically, our local cache is filled with stock prices via a > "HTTP server push" stream and

Re: Can JCS have update events?

2017-04-08 Thread Thomas Vandahl
Please use [jcs] as a prefix to the subject when posting to us...@commons.apache.org. On 06.04.17 18:21, robertlazarski . wrote: > I am coding a simple local "Indexed Disk Auxiliary Cache" and > IsEternal=true using JCS, and I can't figure out how to have an > onUpdate() event. Is there update

[ANNOUNCE] Apache Commons JCS 2.2 Released

2017-08-17 Thread Thomas Vandahl
The Apache Commons Team is pleased to announce the availability of: Apache Commons JCS 2.2 Apache Commons JCS is a distributed, versatile caching system. The release notes can be reviewed at: http://www.apache.org/dist/commons/jcs/RELEASE-NOTES.txt Distribution packages can be downloaded from:

Re: [csv] Slicing through CSVRecords

2019-01-02 Thread Thomas Vandahl
Hi Siegfried, Happy New Year btw.! On 31.12.18 15:34, Siegfried Goeschl wrote: > somehow I’m working a lot with ad-hoc scripting and commons-csv and it would > be helpful to have additional functionality slicing through CSV records, e.g. > > * group CSVRecord by the value of column > * get a

[ANNOUNCE] Apache Commons JCS 3.0 Released

2020-08-22 Thread Thomas Vandahl
The Apache Commons Team is pleased to announce the availability of Apache Commons JCS 3.0 Apache Commons JCS is a distributed, versatile caching system. This has been a major overhaul of JCS with many adjustments for JDK 8+, better concurrency and logging. Commons JCS 3.0 requires Java 8 or

Re: [jcs] Maven - Commons JCS 3

2020-10-31 Thread Thomas Vandahl
On 30.10.20 21:57, tolai...@ups.com.INVALID wrote: Is the Commons JCS 3 library going to be published to Maven? What is wrong with https://repo1.maven.org/maven2/org/apache/commons/commons-jcs3-core/3.0/commons-jcs3-core-3.0.jar ? Bye, Thomas.

Re: [jcs] Invalid Class Exception help needed

2021-01-22 Thread Thomas Vandahl
Hi Stuart, On 22.01.21 08:26, Stuart Maclean wrote: I have a cache region whose key type is say String and whose value type is some class C.  C is Serializable. I use the cache, so objects of class C go into that region. The cache is backed by disk, so objects of class C end up in files. C

[ANNOUNCE] Apache Commons JCS 3.1

2022-02-13 Thread Thomas Vandahl
The Apache Commons project announces the release of Apache Commons JCS 3.1. Apache Commons JCS is a distributed caching system written in Java. It is intended to speed up applications by providing a means to manage cached data of various dynamic natures. JCS 3.0 and onwards require at least

[ANNOUNCEMENT] Apache Commons JCS 3.2 Released

2023-09-18 Thread Thomas Vandahl
the Apache Commons JCS website: https://commons.apache.org/proper/commons-jcs/ Download it from https://commons.apache.org/proper/commons-jcs/download_jcs.cgi Thomas Vandahl Apache Commons Team - To unsubscribe, e-mail: user