【问题标题】:setting up memcache windows running tomcat设置运行 tomcat 的 memcache windows
【发布时间】:2012-12-10 18:19:58
【问题描述】:

我们有一个运行 tomcat 的应用程序服务器 - 应用程序本身是 Java/Hibernate/SQL。我们想将 memcache 引入应用程序。我做了一些研究并提出了以下步骤。只是想知道我是否在正确的轨道上。

  1. 为 windows 安装 memcache 服务器。这会创建一个在服务器上运行的 memcache 服务。
  2. 配置 tomcat 以使用 memcache?
  3. 将我们的应用配置为使用 memcache - 使用 memcache 客户端(例如 spymemcached)在应用中包含对 memcache 的调用。

配置 tomcat 以使用 memcache 是我需要更多指导的地方。我什至应该看一下tomcat memcache session manager之类的东西吗?对于第一步,我们可以只做第 1 步和第 3 步吗?任何澄清将不胜感激

【问题讨论】:

  • 我虽然 memcache 是在集群环境中管理/缓存会话的东西......如果你放弃这些部分 memcache 成为经典缓存。在这种情况下,为什么不使用集成良好的 ehache 之类的东西呢?你的需求是什么?顺便说一句,tc server 的 memcache 安装在文档code.google.com/p/memcached-session-manager/wiki/… 中很清楚
  • 如果您愿意,您可以配置 tomcat 以使用 code.google.com/p/memcached-session-manager 将会话写入 memcached

标签: java tomcat memcached


【解决方案1】:

不需要第 2 步。一切都可以由您的应用程序处理。您还可以创建一个单独的实用程序来监控 memcache 而不是 telnet。

【讨论】:

    猜你喜欢
    • 2021-11-02
    • 1970-01-01
    • 2016-10-02
    • 2018-02-10
    • 2021-07-16
    • 2016-10-28
    • 2013-01-21
    • 1970-01-01
    • 2012-06-21
    相关资源
    最近更新 更多