GemFire Http Module Session using the Client/Server mode

Hello

I have a server of GemFire autonomous 2 and 1 GemFire running separately in the ports index: Locator: 13489, GF-Server1: 13490 and GF - Server2:13491

and below cache.xml in Server GemFire, which also has the configured session area

<?xml version="1.0"?>
<!DOCTYPE cache PUBLIC 
     "-//GemStone Systems, Inc.//GemFire Declarative Caching 7.0//EN"
     "http://www.gemstone.com/dtd/cache7_0.dtd">

<cache lock-lease="120" lock-timeout="60" search-timeout="300" is-server="true" copy-on-read="false">
     <cache-server bind-address="${address}" port="${port}"></cache-server>
     <disk-store name="insuranceOFDS" allow-force-compaction="true" auto-compact="true" 
                    compaction-threshold="40" max-oplog-size="2048" queue-size="1000" time-interval="1000" write-buffer-size="65536">
          <disk-dirs>
               <disk-dir dir-size="3072">${GF_SERVER_DS_FOLDER}\insurance_ds</disk-dir>
          </disk-dirs>
     </disk-store>
     <disk-store name="httpSessionDS" allow-force-compaction="true" auto-compact="true" 
                    compaction-threshold="40" max-oplog-size="2048" queue-size="1000" time-interval="1000" write-buffer-size="65536">
          <disk-dirs>
               <disk-dir dir-size="3072">${GF_SERVER_DS_FOLDER}\httpSession_ds</disk-dir>
          </disk-dirs>
     </disk-store>
     <region-attributes id="defaultRegionAttr" refid="PARTITION_REDUNDANT_OVERFLOW" data-policy="partition" statistics-enabled="true" multicast-enabled="false" disk-store-name="insuranceOFDS" disk-synchronous="false">
          <entry-time-to-live>
               <expiration-attributes timeout="900" action="destroy"/>
          </entry-time-to-live>
          <partition-attributes redundant-copies="1" recovery-delay="10000" startup-recovery-delay="5000" total-num-buckets="113"></partition-attributes>
          <subscription-attributes interest-policy="cache-content"/>
          <eviction-attributes>
               <lru-memory-size maximum="100" action="overflow-to-disk"/>
          </eviction-attributes>
     </region-attributes>

      <region-attributes id="sessionAttr" refid="PARTITION_REDUNDANT_OVERFLOW" data-policy="partition" statistics-enabled="true" 
          multicast-enabled="false" disk-store-name="httpSessionDS" disk-synchronous="false">
          <entry-time-to-live>
               <expiration-attributes timeout="1800" action="destroy">
                    <custom-expiry>
                         <class-name>com.gemstone.gemfire.modules.util.SessionCustomExpiry</class-name>
                    </custom-expiry>
               </expiration-attributes>
          </entry-time-to-live>
          <partition-attributes redundant-copies="1" recovery-delay="10000" startup-recovery-delay="5000" total-num-buckets="113"></partition-attributes>
          <subscription-attributes interest-policy="cache-content"/>
          <eviction-attributes>
               <lru-memory-size maximum="100" action="overflow-to-disk"/>
          </eviction-attributes>
     </region-attributes>

     <!-- Customer region -->
     <region name="customers" refid="defaultRegionAttr"/>
     
        <!-- Policy region  -->
     <region name="policies" refid="defaultRegionAttr"/>
     
        <!-- Claims region  -->
     <region name="claims" refid="defaultRegionAttr"/>
     
        <!-- Payment region  -->
     <region name="payments" refid="defaultRegionAttr"/>
     
        <!-- http session object distributed region -->
     <region name="gemfire_modules_sessions" refid="sessionAttr"/>
     <resource-manager critical-heap-percentage="90" eviction-heap-percentage="80"/>
</cache>     

 

and I created an instance of tcServer with module gemfire-cs:

tcruntime-instance.bat create Server4 --version 6.0.35.A.RELEASE --layout separate 
--property base.shutdown.port=-1 --property base.jmx.port=6972 --property bio.http.port=8087 --property bio.https.port=8446 
--template base --template gemfire-cs --interactive

Catalina.properties, I have disabled local cache
------------------------------------------------
gemfire-cs.enable.debug.listener=false
gemfire-cs.enable.gateway.replication=false
gemfire-cs.enable.local.cache=false
gemfire-cs.region.attributes.id=sessionAttr
gemfire-cs.region.name=gemfire_modules_sessions
gemfire-cs.cache.configuration.file=cache-client.xml
gemfire-cs.critical.heap.percentage=0.0
gemfire-cs.eviction.heap.percentage=80.0
gemfire-cs.log.file=gemfire_modules.log
gemfire-cs.statistic.archive.file=gemfire_modules.gfs
gemfire-cs.statistic.sampling.enabled=false

and in CONF\client - cache.xml inside CATALINA_BASE, I have below the syntax pointing to standalone locator

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE client-cache PUBLIC
"-//GemStone Systems, Inc.//GemFire Declarative Caching 7.0//EN"
"http://www.gemstone.com/dtd/cache7_0.dtd">
<client-cache>
     <pool name="sessions" subscription-enabled="true">
          <locator host="localhost" port="13489"/>
     </pool>
</client-cache>

I started locator both gemfire server and when I run tcServer, tcServer throws an error that "'gemfire_modules_sessions ' region cannot be found. "

I believed that tcServer will connect to standalone GemFire locator and search for the session to the server area. I understand OK if not, can someone explain how gemfire-cs module, code examples if we can post will also be useful for everyone.


Hi Mathieu,

Glad you got things sorted. Here are some answers to your questions:

1 were the same for the ClientCacheFactoryBean and the pool defined in client - cache.xml the names of your pool?

2 - if all your host names are resolvable on all systems in your cluster so you should not use IP addresses.

4 - this property snuck in the config that I sent you. It is no longer valid to go to 7.0.0.2. Previously, we have defined a valve optional commit in context.xml. This valve valid changes of the session at the end of the request/response http instead immediately when each session attribute is changed. It is allowed to improve performance. Since version 7.0.0.2 definition of the valve is removed from context.xml is configured programmatically and is enabled using this property.

-Jens

Tags: VMware

Similar Questions

  • Error message: your browser must have Java enabled to use the Client for Java when you try to access the Citrix server.

    Original title: java question.

    I'm trying to access the Citrix server to access my work server.  When I click on an application, I get an error message: your browser must have Java enabled to use the Client for Java.  I checked and the right version of Java installed and removed the old Java applications but still this message when trying to access Citrix.  Please meet w / directions for a fix.

    Start by seeing if Java has been installed correctly:

    http://www.Java.com/en/download/testjava.jsp

    or
    http://javatester.org/

  • Now, I am unable to use the Terminal Server service to connect to one of my Windows XP machines.

    Hello

    I used the Terminal Server service to connect to a remote Windows XP/Win 7 XP machine machines. At the beginning of this, it was beautiful, but after some time, say 1/2 hours, this remote XP computer has become inaccessible and even I couldn't use Teamviewer is there to connect! But when I went to this remote computer to XP, I noticed his connection was fine and I could ping www.google.com on it!

    original title: unable to connect to him

    Hello human Chen,

    Your Windows XP question is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the IT Pro TechNet public. Please post your question in the TechNet Windows XP Networking forum.

    http://social.technet.Microsoft.com/forums/en-us/itproxpsp/threads

    I hope this helps.

  • When I use the Client for NFS provided by Windows 7, I'm unable to connect. The "mount \\ip address\share Z:" command fails with the error code "the path not found network".

    Identification of customer's Windows 7 NFS UID GID information

    I am trying to connect to the Windows 7 Client NFS on a server running on a computer (VxWorks) NFS.  I am able to properly connect Client NFS software by a 3rd party on the NFS server.  However, when I use the Client for NFS provided by Windows 7, I am unable to connect.  The \\ip address\share Z: mount"command fails with the error code"the path not found network ".  I can't do a ping of the computer running the NFS server.

    The NFS Client operating system: Windows 7 Ultimate, 64-bit

    Data captured by Wireshark

    MOUNT V1 EXPORT call 3rd party client
    Identification information Flavor: AUTH_UNIX (1)
    Length: 32
    Stamp: 0xc7065970

    Machine name: PC
    UID: 1000
    GID: 1000

    MOUNT V1 EXPORT appeal of the NFS client
    Identification information Flavor: AUTH_NULL (0)
    Length: 0

    It seems that the credentials of NFS Client are not correct.  How can I change the flavor of AUTH_UNIX and the UID and GID to 1000?

    Hello VDAEMP,

    As Eddie and Sudarshan has said, the Microsoft Answers community focuses on issues and problems related to the consumer environment. Please join the public IT pro TechNet forums below:
    TechNet - Windows Server
     
    Thank you

  • Cannot use the client console discovers vGpu 6.1

    Hi all

    I'm unable to use the client console after deploying machine put in common, I see a black screen.

    Master image work of the console very well and when I connect via the customer direct access overview and breath all work very well.

    I have a virtualized environment based on vsphere esx 6.0, view Server 6.1 and Nvidiia vib file NVIDIA-vgx - VMware_ESXi_6.0_Host_Driver_346.42 - 1OEM.600.0.0.2159203.vib (for cards NVIDIA K1).

    Best regards

    Once the NVIDIA driver is installed and enabled, it disables the display of the console, so this is of design and a sign of properly working config.  Direct connection is the right way to proceed, not RDP as this will bypass our driver.

    -Luke

  • How can I add changes to the site after the publication, in passing does not by the cat of the company. (I used the FTP server option section directly)

    How can I add changes in a file of Muse after I already pushed to my domain I bought through GoDaddy using the FTP server directly. I'm not BusinessCatalyst and I don't want to. How can I make changes directly from Muse and then direct update to the site? If this isn't an option, how I add administrators browser edition. I have in the browser active editing on the site, but which is insofar as it allows me to get. He actually let me add someone to do or give me a way.

    You can change/update the site directly from Muse through the option publish to publish the Business Catalyst select drop-down list and choose the url for the site.

    https://helpx.Adobe.com/Muse/using/publishing-websites.html#id_83339

    https://helpx.Adobe.com/Muse/how-to/muse-publish-site-business-catalyst.html

    About IBE, you can connect to your site and add site admin users.

    Go to Site Settings > users Admin > invite.

    Thank you

    Sanjit

  • Download Adobe License Server Tools? I want to manage licenses using the internal server

    This ticket https://forums.Adobe.com/message/1329254#1329254 , I'm able to download Adobe License Server Tools? I want to manage licenses using the internal server

    Thank you.

    Hi Carol,.

    Please consult the guide for internal tool of license;

    http://www.Adobe.com/UK/eLicensing/LicenseManagement/Alm/PDFs/server_tools_user_guide.PDF

    Let us know if you need more details about your query.

    Kind regards

    Sarika Behal

  • white screen when connecting using the client to view

    Hello

    I have a situation on my hands if I try to connect to my office using the client to view I can connect but when I click to start all I get is a black sceren.  If I can access the external url of my security server, I can connect and my desktop appears.  If anyone has experienced this? any ideas would be greatly appreciated.

    You can connect from a WAN using PCoIP if you use a VPN. If you are

    using the server security, for now, you will need to use RDP.

    Ian

  • The iPhone Mail uses the smtp server that does not exist

    My iphone SE mail constantly uses an smtp server that is not listed anywhere, but has been used there are 2 iphones.

    I deleted the account and smtp servers several times.

    There is only one main smtp server... not supplements

    I try to send an email whenever I get: user name and password smtp:mail06xxxxxxxx@authsmtp. Vodafone.nl is incorrect.

    vodafone is not my provider and I use the smtp server of vodafone.

    Anyone has an idea on how to address this problem?

    Have you tried to manually create the email account using the selection 'other '?

    What your email account provider?

  • HTTP and without using the APN settings

    Hello

    Is there a way I can get my application, use internet using HTTP and without using the settings APN and GPRS for. Please note that this should work on both BES and BIS.

    Applications like Google maps and Facebook on Blackberry using internet, but,.

    -They do not need any APN settings

    -They don't need to be active GPRS BlackBerry

    Thanks in advance,

    Naveen

    You have a chance to go through this sticky thread.

    http://supportforums.BlackBerry.com/Rim/Board/message?board.ID=java_dev&thread.ID=29103

  • When you use the Windows XP Mode integration, it fails; maintains a new attempt and finally I have to cancel

    When you use the Windows XP Mode integration, it fails; continues to try again and finally I cancel it. The same newspaper for Virtual PC on the host computer has the following error message: Windows XP Mode integration error 'failed to connect in place inside the "Windows XP Mode" VM on channel 0 on the... named pipe endpoint XP, TCP port 3389 with the 0x8007274c error mode. This error occurs every time, but I don't know why he is successful a few times and sometimes fails. This question was in another post and mentioned the removal and resettlement components of integration, which I've tried, but it did not help. I also checked that I have the latest version of the integration components (v. 14.1.7600.16403). I have a separate instance of Virtual PC that I brought over my old XP machine and it was never a problem with integration. The problem with the image in XP Mode occurs also, regardless of whether or not the other Virtual PC image runs. Only the image of the XP Mode has this problem. I suspect it's perhaps a conflict of TCP port in the named pipe, but if so, I don't know how to solve. Thanks in advance to anyone who might be able to offer advice.

    Thanks for the reply. I tried to reinstall the integration features in the past, but the problem has come back at a later date. A few days after I posted this request for assistance, I needed to log out of Windows 7, so I hibernated the XP Mode image. Then, I opened a session in Windows 7 and thought I'd give it a try once again, and it worked this time! I did nothing special. So hopefully that will happen in the future, just as it went and on the past few months. Enjoyed your attempt to offer advice, however!

  • Can I use the "Private browsing" mode on mobile?

    Can I use the "Private browsing" mode on mobile?

    Firefox for mobile has not yet a private browsing mode integrated. However, you can make the navigation in a separate or temporary, profile by running "fennec Pei" in app the N900 Terminal, or by using the Profiles Mobile add-on.

  • Error connecting to the server by using the Client VMware vCenter

    When you attempt to connect to vCenter server using vSphere client, I get this message:

    "a general error has occurred: authorize the exception."

    However, if I log on the vCenter server locally and use a local Windows account in vSphere Client to connect to vCenter Server on the same computer - it works OK.

    There is obviously a problem with what happens when you use active directory to authenticate a user who connects with the VMware vCenter server client.

    Someone has seen this before or have any ideas?

    Thank you

    I had a similar problem on two different sites

    1. It was my firewall local windows on my Windows 7 desktop that it has prevented from work
    2. Another situation was DNS was not working properly and once I had a static entry, it worked
  • Disconnect a session from the Terminal Server Services causes system hiccups.

    Dear reader,

    We noticed some undesirable in MSTSC behavior when a network connection drops during a session-MSTSC to a server. What happens is that when the user is disconnect from the remote session due to network connection dropping, the entire system freezes for a few seconds, making the communication on other physical cards within this same remote device which are not affected by a network connection cannot fall.

    In order to reproduce that we run several tests on the following versions of windows using various equipment:

    • Windows 2003 Server Standard Edition
    • Windows 2008 Server R2
    • Windows XP

    Tests were performed on both physical and VMWare virtual servers. All systems are equipped with at least two physical ethernet adapters on different IP networks.

    During the test, we put a MSTSC connection to windows server during the first card (A) on this server. On the other (B) ethernet card we have implemented an application to communicate to a client on another machine, sending simple messages every second and receiving responses.

    When we pulled the ethernet adapter cable has and in doing so, disconnected the MSTSC, the communication on the ethernet B card connection would fail aswell for a few seconds.

    Is this a known issue? And in such a solution?

    RayZ001,

    Thank you for visiting Microsoft Answers!

    The question you have posted is related to Terminal Server services and would be better suited to the TechNet community.

    Please visit the link below to find a community that will support what ask you:
    http://social.technet.Microsoft.com/forums/en/winserverTS/threads

    Cody C
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • NAC using the WSUS server

    Hello

    Does anyone know how to use WSUS Server in NAC Appliance. I can able to authenticate the network with the clean access agent. But whenever I used the requirement of WSUS, it passes through the role normal connection temporarily the role for sanitation. I'm using a WSUS server. So it will search the requirement of WSUS, but the problem that I can not able to remedy to use, I received the error message. Should I allow certain network ports to make it work? What are the ports I need to open? Please see the attachment. Thank you.

    Kind regards

    Richard

    Richard,

    When you use WSUS with NAC, NAC agent is to tell Windows Update agent to update itself. Now it depends on the configuration of WSUS on the client where it will go to check updates. If you have configured it for MS servers, it will go to talk with them. If you have your clients configured for the internal WSUS server, it will check with them.

    Here are the details on how to set the registry keys for the two scenarios (AD and non-AD)

    No - AD: http://technet.microsoft.com/en-us/library/cc708449%28WS.10%29.aspx

    AD: http://technet.microsoft.com/en-us/library/cc720539%28WS.10%29.aspx

    HTH,

    Faisal

Maybe you are looking for