Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 5EC8B200C3E for ; Tue, 21 Mar 2017 18:32:40 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 5D2B5160B81; Tue, 21 Mar 2017 17:32:40 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id A3E46160B6E for ; Tue, 21 Mar 2017 18:32:39 +0100 (CET) Received: (qmail 7339 invoked by uid 500); 21 Mar 2017 17:32:38 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 7326 invoked by uid 99); 21 Mar 2017 17:32:38 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Mar 2017 17:32:38 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 918A018131D for ; Tue, 21 Mar 2017 17:32:37 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -2.397 X-Spam-Level: X-Spam-Status: No, score=-2.397 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-2.796, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id aSR3JlWflpjT for ; Tue, 21 Mar 2017 17:32:36 +0000 (UTC) Received: from mail-oi0-f48.google.com (mail-oi0-f48.google.com [209.85.218.48]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 0D37360CEB for ; Tue, 21 Mar 2017 17:32:36 +0000 (UTC) Received: by mail-oi0-f48.google.com with SMTP id a94so40260296oic.2 for ; Tue, 21 Mar 2017 10:32:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=/D4hfcwCYCAk3VOdXQ6DJ6VvN7+YcXYLMT6/o70+pVI=; b=bLVsckQkVzvw7w/dlsgvc78zgNiBS9cJldmCOxqIfdQQG1Q+KO3vtN5csIOt/eV6yW wF4SmNyR2g56z3mPI2rglgleyayE8XkI1TV95MIwi0q61/AURRql3jD31SS30zPyE9Fd 3bG7wK22+u4Mf3NCgR6PYwbj4OmI1e5yX8gZeiab7KVTdiWut+6gDLuoT+Ews7GuLW8+ g8K3dB3Jlpu8iP0VEU5CnsyF93krsERAO1xzLKkJX2jZ4LUwJ84l3cRpmYYBibaqGyyZ epwQWJxbs8/Rv5dmlc84uZ4fS/UlDa/snPpOTVk+6EmgvXEdVXcIqfGgMGJyKo7rTsFL RW2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=/D4hfcwCYCAk3VOdXQ6DJ6VvN7+YcXYLMT6/o70+pVI=; b=kj2UTFaP1yqynOroIZAf1U0VZo6PUEqPsYCEMu4/tcWnxwQYL1HrC0D2G4N6HpipAc FVu3X/PFY7AJL5idPy2wmkmX07u4x/zR+Ai9i3ozb9920yyzWgxvbIMyK8dEkIM5miji k5YCWdyXIPUyidiA2YbkbuyiMkB7RFDMSc1D8BUO3VuBjjlUSero4raXnVA79Aq5K3/Y bMngSyQSGleqsgyqL8oQrA7wd8kpvO5/9B/p1rLwQiAI6IddXnwZY/1kV8XwF4g7J3ED HrwfXAFdEfo0h9onAdgLmyYw2PHJYH22i1o9pIpgsS8uhGEau/T7oxgy4yfcUGvn9wX/ n8Kg== X-Gm-Message-State: AFeK/H0/fOBcBtARen/UfzTIhf6Sss1+tIO2dG5GU8LqpERRBZPWK8CYwrRH1py1tvV8G4jqZ7RVr/23LmkyIw== X-Received: by 10.202.205.135 with SMTP id d129mr270780oig.104.1490107835905; Tue, 21 Mar 2017 07:50:35 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.40.225 with HTTP; Tue, 21 Mar 2017 07:50:35 -0700 (PDT) From: "robertlazarski ." Date: Tue, 21 Mar 2017 11:50:35 -0300 Message-ID: Subject: Migrating from Ehcache to JCS, need help getting the right config To: user@commons.apache.org Content-Type: text/plain; charset=UTF-8 archived-at: Tue, 21 Mar 2017 17:32:40 -0000 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 problem for us. Currently using LRU. 2) Store Objects from memory to disk on JVM shutdown, or at least periodically flush to disk - while keeping the entire cache in memory. 3) Most importantly, on server startup we need the entire disk persisted cache loaded into memory, i.e. "cache warming" . I am wondering if the CacheLoaderAdapter is the right class for this? Currently we use a class that Ehcache calls on startup that just uses an Iterator over all the cache Elements, effectively loading everything into memory. I could post our Ehcache config if that'd be helpful. Anyways I am trying to figure out the right config for these requirements, particularly the cache warming setup. Any help appreciated. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org