You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jcs-users@jakarta.apache.org by emily chen <em...@yahoo.com> on 2006/06/26 20:11:24 UTC

Lateral TCP Cache error

Hi there,
   
  I set up two tomcat servers in my PC, and deploy my web application. 
   
  I sent a HTTP request to Tomcat1 http://lucyl.prenet.net:8080/console/epinSupport/batchSummaryReport.jsf to get Batch report, and saw the batch report data was saved in local cache C:\Temp\JCS_cache1.
   
  Then I sent another HTTP request to Tomcat2 http://lucyl.prenet.net:8888/console/epinSupport/productSummaryReport.jsf to get the product report, and saw the product report data was saved in local cache C:\Temp\JCS_cache2.
   
  After that, I check C:\Temp\JCS_cache1 again, and found the cache has the batch report and product report. but C:\Temp\JCS_cache2 only has product report. I think JCS_cache1 and JCS_cache2 should have both report data. Any idea why?
   
  Here is cache.ccf for web applicate in Tomcat1:
  ##################################################################
  # DEFAULT CACHE REGION
  # sets the default aux value for any non configured caches
  #################################################################
  jcs.default=DC,LTCP
  jcs.default.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
  jcs.default.cacheattributes.MaxObjects=0
  jcs.default.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
  jcs.default.elementattributes.IsEternal=false
  jcs.default.elementattributes.MaxLifeSeconds=3600
  jcs.default.elementattributes.IdleTime=1800
  jcs.default.elementattributes.IsSpool=true
  jcs.default.elementattributes.IsRemote=true
  jcs.default.elementattributes.IsLateral=true
   
  #############################################################
  # AUXILIARY CACHES AVAILABLE
  # Primary Disk Cache -- faster than the rest because of memory key storage
  #############################################################
  jcs.auxiliary.DC=org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheFactory
  jcs.auxiliary.DC.attributes=org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheAttributes
  jcs.auxiliary.DC.attributes.DiskPath=C:\\Temp\\JCS_cache1
  jcs.auxiliary.DC.attributes.MaxPurgatorySize=10000
  jcs.auxiliary.DC.attributes.MaxKeySize=10000
  jcs.auxiliary.DC.attributes.OptimizeAtRemoveCount=300000
  jcs.auxiliary.DC.attributes.MaxRecycleBinSize=7500
   
  ###########################################################
   # Lateral TCP Cache - Non-UDP Discovery Configuration
   ###########################################################
  jcs.auxiliary.LTCP=org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPCacheFactory
  jcs.auxiliary.LTCP.attributes=org.apache.jcs.auxiliary.lateral.socket.tcp.TCPLateralCacheAttributes
  jcs.auxiliary.LTCP.attributes.TcpServers=localhost:1110
  jcs.auxiliary.LTCP.attributes.TcpListenerPort=1110
  jcs.auxiliary.LTCP.attributes.AllowGet=true
     
   

  Here is cache.ccf for web applicate in Tomcat2:
  ##################################################################
  # DEFAULT CACHE REGION
  # sets the default aux value for any non configured caches
  #################################################################
  jcs.default=DC,LTCP
  jcs.default.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
  jcs.default.cacheattributes.MaxObjects=0
  jcs.default.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
  jcs.default.elementattributes.IsEternal=false
  jcs.default.elementattributes.MaxLifeSeconds=3600
  jcs.default.elementattributes.IdleTime=1800
  jcs.default.elementattributes.IsSpool=true
  jcs.default.elementattributes.IsRemote=true
  jcs.default.elementattributes.IsLateral=true
   
  #############################################################
  # AUXILIARY CACHES AVAILABLE
  # Primary Disk Cache -- faster than the rest because of memory key storage
  #############################################################
  jcs.auxiliary.DC=org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheFactory
  jcs.auxiliary.DC.attributes=org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheAttributes
  jcs.auxiliary.DC.attributes.DiskPath=C:\\Temp\\JCS_cache1
  jcs.auxiliary.DC.attributes.MaxPurgatorySize=10000
  jcs.auxiliary.DC.attributes.MaxKeySize=10000
  jcs.auxiliary.DC.attributes.OptimizeAtRemoveCount=300000
  jcs.auxiliary.DC.attributes.MaxRecycleBinSize=7500
   
  ###########################################################
   # Lateral TCP Cache - Non-UDP Discovery Configuration
   ###########################################################
  jcs.auxiliary.LTCP=org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPCacheFactory
  jcs.auxiliary.LTCP.attributes=org.apache.jcs.auxiliary.lateral.socket.tcp.TCPLateralCacheAttributes
  jcs.auxiliary.LTCP.attributes.TcpServers=localhost:1110
  jcs.auxiliary.LTCP.attributes.TcpListenerPort=1110
  jcs.auxiliary.LTCP.attributes.AllowGet=true
   
  Two cache.ccf is the same except DiskPath.
   
  thanks for your help.
   
  Emily
   

 		
---------------------------------
Want to be your own boss? Learn how on  Yahoo! Small Business. 

Re: Lateral TCP Cache error

Posted by Aaron Smuts <as...@yahoo.com>.
Great.  I'm sorry the remote cache documentation is
not very helpful.  I'll improve it this week.

Cheers,

Aaron

--- emily chen <em...@yahoo.com> wrote:

> Hi Aaron,
>    
>   Everything is working now.
>    
>   Thanks for your help.
>    
>   cheers,
>    
>   Emily
> 
> Aaron Smuts <as...@yahoo.com> wrote:
>   Please think a bit about what the configuration is
> supposed to accomplish, and the problem should be
> clear. You tell one client where to find the others
> in the "TcpServers" setting. The "TcpListenerPort"
> is
> the port at which this client listens. 
> 
> If server 2 is listening to port 1111, the server 1
> should be configured like this:
> 
>
jcs.auxiliary.LTCP.attributes.TcpServers=localhost:1111
> 
> jcs.auxiliary.LTCP.attributes.TcpListenerPort=1110
> 
> And server 2 should be configured like this:
> 
>
jcs.auxiliary.LTCP.attributes.TcpServers=localhost:1110
> jcs.auxiliary.LTCP.attributes.TcpListenerPort=1111
> 
> I'd recommend using UDP discovery, which greatly
> simplfies these issues.
> 
> Cheers,
> 
> Aaron
> 
> --- emily chen wrote:
> 
> > Hi Aaron,
> > 
> > I did a testing, used different port in cache.ccf
> > file, and still got the same error:
> > 
> > cache.ccf for web applicaton in Tomcat1:
> > 
> >
>
jcs.auxiliary.LTCP.attributes.TcpServers=localhost:1110
> > 
> > jcs.auxiliary.LTCP.attributes.TcpListenerPort=1110
> > 
> > cache.ccf for web applicaton in Tomcat2:
> > 
> >
>
jcs.auxiliary.LTCP.attributes.TcpServers=localhost:1111
> > 
> > jcs.auxiliary.LTCP.attributes.TcpListenerPort=1111
> > 
> > and got following error message:
> > -----------------------------------------------
> > 2006-06-26 11:38:59,540 [http-8080-Processor25]
> > INFO 
> >
> org.apache.jcs.engine.control.CompositeCacheManager
> > - Creating cache manager from config file:
> > /cache.ccf
> > 2006-06-26 11:38:59,540 [http-8080-Processor25]
> INFO
> > org.apache.jcs.utils.threadpool.ThreadPoolManager
> -
> > thread_pool.default PoolConfiguration =
> useBoundary
> > = [true]boundarySize = [2000]maximumPoolSize =
> > [150]minimumPoolSize = [4]keepAliveTime =
> > [300000]whenBlockedPolicy = [RUN]startUpSize = [4]
> > 2006-06-26 11:38:59,556 [http-8080-Processor25]
> INFO
> > 
> >
>
org.apache.jcs.engine.control.CompositeCacheConfigurator
> > - Setting default auxiliaries to DC,LTCP
> > 2006-06-26 11:38:59,556 [http-8080-Processor25]
> INFO
> > 
> >
>
org.apache.jcs.engine.control.CompositeCacheConfigurator
> > - setting defaultCompositeCacheAttributes to [
> > useLateral = true, useRemote = true, useDisk =
> true,
> > maxObjs = 0, maxSpoolPerRun = -1 ]
> > 2006-06-26 11:38:59,556 [http-8080-Processor25]
> INFO
> > 
> >
>
org.apache.jcs.engine.control.CompositeCacheConfigurator
> > - No special ElementAttribute class defined for
> key
> > [jcs.default.elementattributes], using default
> > class.
> > 2006-06-26 11:38:59,556 [http-8080-Processor25]
> INFO
> > 
> >
>
org.apache.jcs.engine.control.CompositeCacheConfigurator
> > - setting defaultElementAttributes to [ IS_LATERAL
> =
> > true, IS_SPOOL = true, IS_REMOTE = true,
> IS_ETERNAL
> > = false, MaxLifeSeconds = 3600, IdleTime = 1800,
> > CreateTime = 1151347139556, LastAccessTime =
> > 1151347139556, getTimeToLiveSeconds() = 3600,
> > createTime = 1151347139556 ]
> > 2006-06-26 11:38:59,556 [http-8080-Processor25]
> INFO
> > 
> >
>
org.apache.jcs.engine.control.CompositeCacheConfigurator
> > - Parsed regions []
> > 2006-06-26 11:38:59,556 [http-8080-Processor25]
> INFO
> > 
> >
>
org.apache.jcs.engine.control.CompositeCacheConfigurator
> > - Finished configuration in 0 ms.
> > 2006-06-26 11:38:59,556 [http-8080-Processor25]
> INFO
> > 
> >
>
org.apache.jcs.engine.control.CompositeCacheConfigurator
> > - No special ElementAttribute class defined for
> key
> >
> [jcs.region.ePINBatchReportCache.elementattributes],
> > using default class.
> > 2006-06-26 11:38:59,587 [http-8080-Processor25]
> INFO
> > org.apache.jcs.engine.memory.lru.LRUMemoryCache -
> > initialized LRUMemoryCache for
> ePINBatchReportCache
> > 2006-06-26 11:38:59,587 [http-8080-Processor25]
> INFO
> > org.apache.jcs.engine.control.CompositeCache -
> > Constructed cache with name: ePINBatchReportCache
> > 2006-06-26 11:38:59,649 [http-8080-Processor25]
> INFO
> > 
> >
>
org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache
> > - Cache file root directory: C:\Temp\JCS_cache1
> > 2006-06-26 11:38:59,665 [http-8080-Processor25]
> INFO
> > 
> >
>
org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache
> > - Set maxKeySize to: '10000'
> > 2006-06-26 11:38:59,665 [http-8080-Processor25]
> INFO
> > 
> >
>
org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache
> > - Set recycle max Size to MaxRecycleBinSize:
> '7500'
> > 2006-06-26 11:38:59,681 [http-8080-Processor25]
> INFO
> > 
> >
>
org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPCacheManager
> > - Instance for [localhost:1110:1110] is null,
> > creating
> > 2006-06-26 11:38:59,681 [http-8080-Processor25]
> INFO
> > 
> >
>
org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPCacheManager
> > - Creating TCP service, lca = localhost:1110:1110
> > 2006-06-26 11:39:00,665 [http-8080-Processor25]
> > ERROR
> >
>
org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPService
> > - Could not create sender to [localhost:1110] --
> > Socket is null, cannot connect to localhost:1110
> > 2006-06-26 11:39:00,665 [http-8080-Processor25]
> > ERROR
> >
>
org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPCacheManager
> > - Failure, lateral instance will use zombie
> service
> > java.io.IOException: Socket is null, cannot
> connect
> > to localhost:1110
> > at
> >
>
org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPSender.init(LateralTCPSender.java:137)
> > at
> >
>
org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPSender.(LateralTCPSender.java:110)
> > at
> >
>
org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPService.(LateralTCPService.java:70)
> > at
> >
> 
=== message truncated ===


---------------------------------------------------------------------
To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jcs-users-help@jakarta.apache.org


Re: Lateral TCP Cache error

Posted by emily chen <em...@yahoo.com>.
Hi Aaron,
   
  Everything is working now.
   
  Thanks for your help.
   
  cheers,
   
  Emily

Aaron Smuts <as...@yahoo.com> wrote:
  Please think a bit about what the configuration is
supposed to accomplish, and the problem should be
clear. You tell one client where to find the others
in the "TcpServers" setting. The "TcpListenerPort" is
the port at which this client listens. 

If server 2 is listening to port 1111, the server 1
should be configured like this:

jcs.auxiliary.LTCP.attributes.TcpServers=localhost:1111

jcs.auxiliary.LTCP.attributes.TcpListenerPort=1110

And server 2 should be configured like this:

jcs.auxiliary.LTCP.attributes.TcpServers=localhost:1110
jcs.auxiliary.LTCP.attributes.TcpListenerPort=1111

I'd recommend using UDP discovery, which greatly
simplfies these issues.

Cheers,

Aaron

--- emily chen wrote:

> Hi Aaron,
> 
> I did a testing, used different port in cache.ccf
> file, and still got the same error:
> 
> cache.ccf for web applicaton in Tomcat1:
> 
>
jcs.auxiliary.LTCP.attributes.TcpServers=localhost:1110
> 
> jcs.auxiliary.LTCP.attributes.TcpListenerPort=1110
> 
> cache.ccf for web applicaton in Tomcat2:
> 
>
jcs.auxiliary.LTCP.attributes.TcpServers=localhost:1111
> 
> jcs.auxiliary.LTCP.attributes.TcpListenerPort=1111
> 
> and got following error message:
> -----------------------------------------------
> 2006-06-26 11:38:59,540 [http-8080-Processor25]
> INFO 
> org.apache.jcs.engine.control.CompositeCacheManager
> - Creating cache manager from config file:
> /cache.ccf
> 2006-06-26 11:38:59,540 [http-8080-Processor25] INFO
> org.apache.jcs.utils.threadpool.ThreadPoolManager -
> thread_pool.default PoolConfiguration = useBoundary
> = [true]boundarySize = [2000]maximumPoolSize =
> [150]minimumPoolSize = [4]keepAliveTime =
> [300000]whenBlockedPolicy = [RUN]startUpSize = [4]
> 2006-06-26 11:38:59,556 [http-8080-Processor25] INFO
> 
>
org.apache.jcs.engine.control.CompositeCacheConfigurator
> - Setting default auxiliaries to DC,LTCP
> 2006-06-26 11:38:59,556 [http-8080-Processor25] INFO
> 
>
org.apache.jcs.engine.control.CompositeCacheConfigurator
> - setting defaultCompositeCacheAttributes to [
> useLateral = true, useRemote = true, useDisk = true,
> maxObjs = 0, maxSpoolPerRun = -1 ]
> 2006-06-26 11:38:59,556 [http-8080-Processor25] INFO
> 
>
org.apache.jcs.engine.control.CompositeCacheConfigurator
> - No special ElementAttribute class defined for key
> [jcs.default.elementattributes], using default
> class.
> 2006-06-26 11:38:59,556 [http-8080-Processor25] INFO
> 
>
org.apache.jcs.engine.control.CompositeCacheConfigurator
> - setting defaultElementAttributes to [ IS_LATERAL =
> true, IS_SPOOL = true, IS_REMOTE = true, IS_ETERNAL
> = false, MaxLifeSeconds = 3600, IdleTime = 1800,
> CreateTime = 1151347139556, LastAccessTime =
> 1151347139556, getTimeToLiveSeconds() = 3600,
> createTime = 1151347139556 ]
> 2006-06-26 11:38:59,556 [http-8080-Processor25] INFO
> 
>
org.apache.jcs.engine.control.CompositeCacheConfigurator
> - Parsed regions []
> 2006-06-26 11:38:59,556 [http-8080-Processor25] INFO
> 
>
org.apache.jcs.engine.control.CompositeCacheConfigurator
> - Finished configuration in 0 ms.
> 2006-06-26 11:38:59,556 [http-8080-Processor25] INFO
> 
>
org.apache.jcs.engine.control.CompositeCacheConfigurator
> - No special ElementAttribute class defined for key
> [jcs.region.ePINBatchReportCache.elementattributes],
> using default class.
> 2006-06-26 11:38:59,587 [http-8080-Processor25] INFO
> org.apache.jcs.engine.memory.lru.LRUMemoryCache -
> initialized LRUMemoryCache for ePINBatchReportCache
> 2006-06-26 11:38:59,587 [http-8080-Processor25] INFO
> org.apache.jcs.engine.control.CompositeCache -
> Constructed cache with name: ePINBatchReportCache
> 2006-06-26 11:38:59,649 [http-8080-Processor25] INFO
> 
>
org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache
> - Cache file root directory: C:\Temp\JCS_cache1
> 2006-06-26 11:38:59,665 [http-8080-Processor25] INFO
> 
>
org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache
> - Set maxKeySize to: '10000'
> 2006-06-26 11:38:59,665 [http-8080-Processor25] INFO
> 
>
org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache
> - Set recycle max Size to MaxRecycleBinSize: '7500'
> 2006-06-26 11:38:59,681 [http-8080-Processor25] INFO
> 
>
org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPCacheManager
> - Instance for [localhost:1110:1110] is null,
> creating
> 2006-06-26 11:38:59,681 [http-8080-Processor25] INFO
> 
>
org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPCacheManager
> - Creating TCP service, lca = localhost:1110:1110
> 2006-06-26 11:39:00,665 [http-8080-Processor25]
> ERROR
>
org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPService
> - Could not create sender to [localhost:1110] --
> Socket is null, cannot connect to localhost:1110
> 2006-06-26 11:39:00,665 [http-8080-Processor25]
> ERROR
>
org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPCacheManager
> - Failure, lateral instance will use zombie service
> java.io.IOException: Socket is null, cannot connect
> to localhost:1110
> at
>
org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPSender.init(LateralTCPSender.java:137)
> at
>
org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPSender.(LateralTCPSender.java:110)
> at
>
org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPService.(LateralTCPService.java:70)
> at
>
org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPCacheManager.(LateralTCPCacheManager.java:164)
> at
>
org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPCacheManager.getInstance(LateralTCPCacheManager.java:105)
> at
>
org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPCacheFactory.createCache(LateralTCPCacheFactory.java:81)
> at
>
org.apache.jcs.engine.control.CompositeCacheConfigurator.parseAuxiliary(CompositeCacheConfigurator.java:551)
> at
>
org.apache.jcs.engine.control.CompositeCacheConfigurator.parseRegion(CompositeCacheConfigurator.java:343)
> at
>
org.apache.jcs.engine.control.CompositeCacheConfigurator.parseRegion(CompositeCacheConfigurator.java:280)
> at
>
org.apache.jcs.engine.control.CompositeCacheManager.getCache(CompositeCacheManager.java:445)
> at
>
org.apache.jcs.engine.control.CompositeCacheManager.getCache(CompositeCacheManager.java:384)
> at
>
org.apache.jcs.engine.control.CompositeCacheManager.getCache(CompositeCacheManager.java:371)
> at org.apache.jcs.JCS.getInstance(JCS.java:66)
> at
>
com.prenet.domain.epinSupport.EpinReportMediator.(Unknown
> Source)
> at
>
com.prenet.domain.common.MediatorFactory.getEpinBatchSummaryReportMediator(Unknown
> Source)
> at
>
com.prenet.cpt.presentation.epinSupport.ProductSummaryReportVC.loadReport(Unknown
> Source)
> at
>
com.prenet.cpt.presentation.epinSupport.ProductSummaryReportVC.getReport(Unknown
> Source)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at
>
com.sun.faces.el.PropertyResolverImpl.getValue(PropertyResolverImpl.java:79)
> at
>
org.apache.shale.faces.ShalePropertyResolver.getValue(ShalePropertyResolver.java:104)
> at
>
com.sun.faces.el.impl.ArraySuffix.evaluate(ArraySuffix.java:167)
> at
>
com.sun.faces.el.impl.ComplexValue.evaluate(ComplexValue.java:151)
> at
>
com.sun.faces.el.impl.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:243)
> at
>
com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:173)
> at
>
com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:154)
> at
>
javax.faces.component.UIOutput.getValue(UIOutput.java:147)
> at
>
com.prenet.presentation.components.UIOutputDate.getFormattedDate(Unknown
> Source)
> at
>
com.prenet.presentation.components.UIOutputDate.encodeBegin(Unknown
> Source)
> at
>
com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:433)
> at
>
com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:130)
> at
>
javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:701)
> at
>
com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:435)
> at
>
com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:233)
> at
>
javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:701)
> at
>
com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:435)
> at
>
com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:233)
> at
>
javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:701)
> at
>
javax.faces.webapp.UIComponentTag.encodeChildren(UIComponentTag.java:607)
> at
>
javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:544)
> at
>
com.sun.faces.taglib.html_basic.PanelGridTag.doEndTag(PanelGridTag.java:460)
> at
>
org.apache.jsp.epinSupport.productSummaryReport_jsp._jspx_meth_h_panelGrid_3(org.apache.jsp.epinSupport.productSummaryReport_jsp:1651)
> at
>
org.apache.jsp.epinSupport.productSummaryReport_jsp._jspx_meth_f_view_0(org.apache.jsp.epinSupport.productSummaryReport_jsp:284)
> 
=== message truncated ===


---------------------------------------------------------------------
To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jcs-users-help@jakarta.apache.org



 			
---------------------------------
Sneak preview the  all-new Yahoo.com. It's not radically different. Just radically better. 

Re: Lateral TCP Cache - UDP discovery configuration

Posted by Aaron Smuts <as...@yahoo.com>.
Interesting.  I was just about to create a config
option, where you can specify a port range.  I run
multiple different Tomcat instances on the same boxes,
each running different sets of services.  I have to
keep it clear which application will be using which
lateral ports.  If I could specify a range of ports,
the cache could just figure it out for itself. . .

--- Marek.Cyzio@equifax.com wrote:

> 
> 
> 
> 
> > You still need to define a TCPListenerPort.  If
> both
> > of your servers are on the same machine, then this
> > port must be different on each
> 
> I did something like that:
> 
>     int listenerPort = props.get( Integer.parseInt(
>
"jcs.auxiliary.TCPIPCACHE.attributes.TcpListenerPort"
> ) );
>     for( int i = 0; i < MAX_JVMS; i++ )
>     {
>       int offset = new Random().nextInt( MAX_JVMS );
>       try
>       {
>         ServerSocket socket = new ServerSocket(
> listenerPort + offset );
>         socket.close();
>         listenerPort += offset;
>         LOGGER.debug( "JCS TCP Lateral cache will
> use listening socket " +
> listenerPort );
>         break;
>       }
>       catch( BindException e )
>       {
>         LOGGER.debug( "Socket " + ( listenerPort +
> offset ) + " is in use,
> will try another one" );
>         Thread.yield();
>       }
>       catch( IOException e )
>       {
>         LOGGER.fatal( "Cannot bind on socket " + (
> listenerPort + offset ),
> e );
>       }
>     }
> 
>     props.put(
>
"jcs.auxiliary.TCPIPCACHE.attributes.TcpListenerPort",
> new
> Integer( listenerPort ).toString() );
> 
> It is not perfect (has racing and starvation
> issues), but if you start one
> JVM at the time, it works pretty well...
> 
> P.S. That explains why I use CompositeCacheManager
> and CacheAccess instead
> of JSC cache directly :)
> 
> Marek Cyzio
> Equifax
> (770)740-6610
> Marek.Cyzio@equifax.com
> 
> 
>                                                     
>                       
>              Aaron Smuts                            
>                       
>              <asmuts@yahoo.com                      
>                       
>              >                                      
>                    To 
>                                        JCS Users
> List                      
>              06/27/2006 08:35         
> <jc...@jakarta.apache.org>      
>              AM                                     
>                    cc 
>                                                     
>                       
>                                                     
>               Subject 
>              Please respond to         Re: Lateral
> TCP Cache - UDP         
>              "JCS Users List"          discovery
> configuration             
>              <jcs-users@jakart                      
>                       
>                a.apache.org>                        
>                       
>                                                     
>                       
>                                                     
>                       
>                                                     
>                       
>                                                     
>                       
> 
> 
> 
> 
> UDP discovery is documented here:
>
http://jakarta.apache.org/jcs/LateralUDPDiscovery.html
> 
> With UDP discovery you don't have to specify the
> servers to connect to; instead, they find each other
> using the udp discovery port and address.  All
> servers
> that you want to be able to find ech other should be
> configured to use the same discovery address and
> port.
> 
> You still need to define a TCPListenerPort.  If both
> of your servers are on the same machine, then this
> port must be different on each.
> 
> Basically, they learn about each other by UDP.  Then
> when they find each other they connect to each other
> on the tcp listener port.
> 
> Aaron
> 
> 
> --- emily chen <em...@yahoo.com> wrote:
> 
> > Hi Aaron,
> >
> >   I found an example that you post in the mail
> list:
> >
>
http://mail-archives.apache.org/mod_mbox/jakarta-jcs-users/200606.mbox/%3C20060605162432.73955.qmail@web38715.mail.mud.yahoo.com%3E
> 
> >
> >   But I don't know how do I config the following
> > attributes of Lateral UDP Discovery if I have two
> > Tomcat servers runing in my PC:
> >
> >
> >
>
jcs.auxiliary.LTCPAIR.attributes.TcpListenerPort=1118
> >
>
jcs.auxiliary.LTCPAIR.attributes.UdpDiscoveryAddr=228.5.6.1
> >
>
jcs.auxiliary.LTCPAIR.attributes.UdpDiscoveryPort=6773
> >
>
jcs.auxiliary.LTCPAIR.attributes.UdpDiscoveryEnabled=true
> > jcs.auxiliary.LTCPAIR.attributes.Receive=true
> > jcs.auxiliary.LTCPAIR.attributes.AllowGet=false
> >
>
jcs.auxiliary.LTCPAIR.attributes.IssueRemoveOnPut=false
> >
>
jcs.auxiliary.LTCPAIR.attributes.FilterRemoveByHashCode=true
> >
> >
> >   Thanks for your help.
> >
> >   Emily
> >
> >
> >
> >
> > Aaron Smuts <as...@yahoo.com> wrote:
> >   Please think a bit about what the configuration
> is
> > supposed to accomplish, and the problem should be
> > clear. You tell one client where to find the
> others
> > in the "TcpServers" setting. The "TcpListenerPort"
> > is
> > the port at which this client listens.
> >
> > If server 2 is listening to port 1111, the server
> 1
> > should be configured like this:
> >
> >
>
jcs.auxiliary.LTCP.attributes.TcpServers=localhost:1111
> >
> > jcs.auxiliary.LTCP.attributes.TcpListenerPort=1110
> >
> > And server 2 should be configured like this:
> >
> >
>
jcs.auxiliary.LTCP.attributes.TcpServers=localhost:1110
> > jcs.auxiliary.LTCP.attributes.TcpListenerPort=1111
> >
> > I'd recommend using UDP discovery, which greatly
> > simplfies these issues.
> >
> > Cheers,
> >
> > Aaron
> >
> > --- emily chen wrote:
> >
> > > Hi Aaron,
> > >
> > > I did a testing, used different port in
> cache.ccf
> > > file, and still got the same error:
> > >
> > > cache.ccf for web applicaton in Tomcat1:
> 
=== message truncated ===


---------------------------------------------------------------------
To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jcs-users-help@jakarta.apache.org


Re: Lateral TCP Cache - UDP discovery configuration

Posted by Ma...@equifax.com.



> You still need to define a TCPListenerPort.  If both
> of your servers are on the same machine, then this
> port must be different on each

I did something like that:

    int listenerPort = props.get( Integer.parseInt(
"jcs.auxiliary.TCPIPCACHE.attributes.TcpListenerPort" ) );
    for( int i = 0; i < MAX_JVMS; i++ )
    {
      int offset = new Random().nextInt( MAX_JVMS );
      try
      {
        ServerSocket socket = new ServerSocket( listenerPort + offset );
        socket.close();
        listenerPort += offset;
        LOGGER.debug( "JCS TCP Lateral cache will use listening socket " +
listenerPort );
        break;
      }
      catch( BindException e )
      {
        LOGGER.debug( "Socket " + ( listenerPort + offset ) + " is in use,
will try another one" );
        Thread.yield();
      }
      catch( IOException e )
      {
        LOGGER.fatal( "Cannot bind on socket " + ( listenerPort + offset ),
e );
      }
    }

    props.put( "jcs.auxiliary.TCPIPCACHE.attributes.TcpListenerPort", new
Integer( listenerPort ).toString() );

It is not perfect (has racing and starvation issues), but if you start one
JVM at the time, it works pretty well...

P.S. That explains why I use CompositeCacheManager and CacheAccess instead
of JSC cache directly :)

Marek Cyzio
Equifax
(770)740-6610
Marek.Cyzio@equifax.com


                                                                           
             Aaron Smuts                                                   
             <asmuts@yahoo.com                                             
             >                                                          To 
                                       JCS Users List                      
             06/27/2006 08:35          <jc...@jakarta.apache.org>      
             AM                                                         cc 
                                                                           
                                                                   Subject 
             Please respond to         Re: Lateral TCP Cache - UDP         
             "JCS Users List"          discovery configuration             
             <jcs-users@jakart                                             
               a.apache.org>                                               
                                                                           
                                                                           
                                                                           
                                                                           




UDP discovery is documented here:
http://jakarta.apache.org/jcs/LateralUDPDiscovery.html

With UDP discovery you don't have to specify the
servers to connect to; instead, they find each other
using the udp discovery port and address.  All servers
that you want to be able to find ech other should be
configured to use the same discovery address and port.

You still need to define a TCPListenerPort.  If both
of your servers are on the same machine, then this
port must be different on each.

Basically, they learn about each other by UDP.  Then
when they find each other they connect to each other
on the tcp listener port.

Aaron


--- emily chen <em...@yahoo.com> wrote:

> Hi Aaron,
>
>   I found an example that you post in the mail list:
>
http://mail-archives.apache.org/mod_mbox/jakarta-jcs-users/200606.mbox/%3C20060605162432.73955.qmail@web38715.mail.mud.yahoo.com%3E

>
>   But I don't know how do I config the following
> attributes of Lateral UDP Discovery if I have two
> Tomcat servers runing in my PC:
>
>
>
jcs.auxiliary.LTCPAIR.attributes.TcpListenerPort=1118
>
jcs.auxiliary.LTCPAIR.attributes.UdpDiscoveryAddr=228.5.6.1
>
jcs.auxiliary.LTCPAIR.attributes.UdpDiscoveryPort=6773
>
jcs.auxiliary.LTCPAIR.attributes.UdpDiscoveryEnabled=true
> jcs.auxiliary.LTCPAIR.attributes.Receive=true
> jcs.auxiliary.LTCPAIR.attributes.AllowGet=false
>
jcs.auxiliary.LTCPAIR.attributes.IssueRemoveOnPut=false
>
jcs.auxiliary.LTCPAIR.attributes.FilterRemoveByHashCode=true
>
>
>   Thanks for your help.
>
>   Emily
>
>
>
>
> Aaron Smuts <as...@yahoo.com> wrote:
>   Please think a bit about what the configuration is
> supposed to accomplish, and the problem should be
> clear. You tell one client where to find the others
> in the "TcpServers" setting. The "TcpListenerPort"
> is
> the port at which this client listens.
>
> If server 2 is listening to port 1111, the server 1
> should be configured like this:
>
>
jcs.auxiliary.LTCP.attributes.TcpServers=localhost:1111
>
> jcs.auxiliary.LTCP.attributes.TcpListenerPort=1110
>
> And server 2 should be configured like this:
>
>
jcs.auxiliary.LTCP.attributes.TcpServers=localhost:1110
> jcs.auxiliary.LTCP.attributes.TcpListenerPort=1111
>
> I'd recommend using UDP discovery, which greatly
> simplfies these issues.
>
> Cheers,
>
> Aaron
>
> --- emily chen wrote:
>
> > Hi Aaron,
> >
> > I did a testing, used different port in cache.ccf
> > file, and still got the same error:
> >
> > cache.ccf for web applicaton in Tomcat1:
> >
> >
>
jcs.auxiliary.LTCP.attributes.TcpServers=localhost:1110
> >
> > jcs.auxiliary.LTCP.attributes.TcpListenerPort=1110
> >
> > cache.ccf for web applicaton in Tomcat2:
> >
> >
>
jcs.auxiliary.LTCP.attributes.TcpServers=localhost:1111
> >
> > jcs.auxiliary.LTCP.attributes.TcpListenerPort=1111
> >
> > and got following error message:
> > -----------------------------------------------
> > 2006-06-26 11:38:59,540 [http-8080-Processor25]
> > INFO
> >
> org.apache.jcs.engine.control.CompositeCacheManager
> > - Creating cache manager from config file:
> > /cache.ccf
> > 2006-06-26 11:38:59,540 [http-8080-Processor25]
> INFO
> > org.apache.jcs.utils.threadpool.ThreadPoolManager
> -
> > thread_pool.default PoolConfiguration =
> useBoundary
> > = [true]boundarySize = [2000]maximumPoolSize =
> > [150]minimumPoolSize = [4]keepAliveTime =
> > [300000]whenBlockedPolicy = [RUN]startUpSize = [4]
> > 2006-06-26 11:38:59,556 [http-8080-Processor25]
> INFO
> >
> >
>
org.apache.jcs.engine.control.CompositeCacheConfigurator
> > - Setting default auxiliaries to DC,LTCP
> > 2006-06-26 11:38:59,556 [http-8080-Processor25]
> INFO
> >
> >
>
org.apache.jcs.engine.control.CompositeCacheConfigurator
> > - setting defaultCompositeCacheAttributes to [
> > useLateral = true, useRemote = true, useDisk =
> true,
> > maxObjs = 0, maxSpoolPerRun = -1 ]
> > 2006-06-26 11:38:59,556 [http-8080-Processor25]
> INFO
> >
> >
>
org.apache.jcs.engine.control.CompositeCacheConfigurator
> > - No special ElementAttribute class defined for
> key
> > [jcs.default.elementattributes], using default
> > class.
> > 2006-06-26 11:38:59,556 [http-8080-Processor25]
> INFO
> >
> >
>
org.apache.jcs.engine.control.CompositeCacheConfigurator
> > - setting defaultElementAttributes to [ IS_LATERAL
> =
> > true, IS_SPOOL = true, IS_REMOTE = true,
> IS_ETERNAL
> > = false, MaxLifeSeconds = 3600, IdleTime = 1800,
> > CreateTime = 1151347139556, LastAccessTime =
> > 1151347139556, getTimeToLiveSeconds() = 3600,
> > createTime = 1151347139556 ]
> > 2006-06-26 11:38:59,556 [http-8080-Processor25]
> INFO
> >
> >
>
org.apache.jcs.engine.control.CompositeCacheConfigurator
> > - Parsed regions []
> > 2006-06-26 11:38:59,556 [http-8080-Processor25]
> INFO
> >
> >
>
org.apache.jcs.engine.control.CompositeCacheConfigurator
> > - Finished configuration in 0 ms.
> > 2006-06-26 11:38:59,556 [http-8080-Processor25]
> INFO
> >
> >
>
org.apache.jcs.engine.control.CompositeCacheConfigurator
> > - No special ElementAttribute class defined for
> key
> >
> [jcs.region.ePINBatchReportCache.elementattributes],
> > using default class.
> > 2006-06-26 11:38:59,587 [http-8080-Processor25]
> INFO
> > org.apache.jcs.engine.memory.lru.LRUMemoryCache -
> > initialized LRUMemoryCache for
> ePINBatchReportCache
> > 2006-06-26 11:38:59,587 [http-8080-Processor25]
> INFO
> > org.apache.jcs.engine.control.CompositeCache -
> > Constructed cache with name: ePINBatchReportCache
> > 2006-06-26 11:38:59,649 [http-8080-Processor25]
> INFO
> >
> >
>
org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache
> > - Cache file root directory: C:\Temp\JCS_cache1
> > 2006-06-26 11:38:59,665 [http-8080-Processor25]
> INFO
> >
> >
>
org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache
> > - Set maxKeySize to: '10000'
> > 2006-06-26 11:38:59,665 [http-8080-Processor25]
> INFO
> >
> >
>
org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache
> > - Set recycle max Size to MaxRecycleBinSize:
> '7500'
> > 2006-06-26 11:38:59,681 [http-8080-Processor25]
> INFO
> >
> >
>
org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPCacheManager
> > - Instance for [localhost:1110:1110] is null,
> > creating
> > 2006-06-26 11:38:59,681 [http-8080-Processor25]
> INFO
> >
> >
>
org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPCacheManager
> > - Creating TCP service, lca = localhost:1110:1110
> > 2006-06-26 11:39:00,665 [http-8080-Processor25]
> > ERROR
> >
>
org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPService
> > - Could not create sender to [localhost:1110] --
> > Socket is null, cannot connect to localhost:1110
> > 2006-06-26 11:39:00,665 [http-8080-Processor25]
> > ERROR
> >
>
=== message truncated ===


---------------------------------------------------------------------
To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jcs-users-help@jakarta.apache.org






This message contains information from Equifax Inc. which may be
confidential and privileged.  If you are not an intended recipient, please
refrain from any disclosure, copying, distribution or use of this
information and note that such actions are prohibited.  If you have
received this transmission in error, please notify by e-mail
postmaster@equifax.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jcs-users-help@jakarta.apache.org


Re: Lateral TCP Cache - UDP discovery configuration

Posted by emily chen <em...@yahoo.com>.
Hi Aaron,
   
  With your help, now my lateral tcp cache(TCP and UDP) is working now. 
   
  I saved cache.cff file to $TOMCAT_HOME/common/calsses, then deployed my web application. All the report data are present in all jcs local cache. If the report data exists in momory, the data will be removed after Tomcat Server is shutdown. If the data was written to disk cache (jcs.auxiliary.DC.attributes.DiskPath=C:\\Temp\\JCS_cache1), then the data still exist in C:\\Temp\\JCS_cache1 after Tomcat is shutdown. Why JCS cannot removed all the data in the local cache(momory and disk cache) when the Tomcat is shutdown?
   
  Is there any way to clear the cache when Tomcat is shutdown?
   
  Many thanks,
   
  Emily
   
   
   
  Aaron Smuts <as...@yahoo.com> wrote:
  UDP discovery is documented here:
http://jakarta.apache.org/jcs/LateralUDPDiscovery.html

With UDP discovery you don't have to specify the
servers to connect to; instead, they find each other
using the udp discovery port and address. All servers
that you want to be able to find ech other should be
configured to use the same discovery address and port.

You still need to define a TCPListenerPort. If both
of your servers are on the same machine, then this
port must be different on each. 

Basically, they learn about each other by UDP. Then
when they find each other they connect to each other
on the tcp listener port.

Aaron


--- emily chen wrote:

> Hi Aaron,
> 
> I found an example that you post in the mail list:
>
http://mail-archives.apache.org/mod_mbox/jakarta-jcs-users/200606.mbox/%3C20060605162432.73955.qmail@web38715.mail.mud.yahoo.com%3E
> 
> But I don't know how do I config the following
> attributes of Lateral UDP Discovery if I have two
> Tomcat servers runing in my PC:
> 
> 
>
jcs.auxiliary.LTCPAIR.attributes.TcpListenerPort=1118
>
jcs.auxiliary.LTCPAIR.attributes.UdpDiscoveryAddr=228.5.6.1
>
jcs.auxiliary.LTCPAIR.attributes.UdpDiscoveryPort=6773
>
jcs.auxiliary.LTCPAIR.attributes.UdpDiscoveryEnabled=true
> jcs.auxiliary.LTCPAIR.attributes.Receive=true
> jcs.auxiliary.LTCPAIR.attributes.AllowGet=false
>
jcs.auxiliary.LTCPAIR.attributes.IssueRemoveOnPut=false
>
jcs.auxiliary.LTCPAIR.attributes.FilterRemoveByHashCode=true
> 
> 
> Thanks for your help.
> 
> Emily
> 
> 
> 
> 
> Aaron Smuts wrote:
> Please think a bit about what the configuration is
> supposed to accomplish, and the problem should be
> clear. You tell one client where to find the others
> in the "TcpServers" setting. The "TcpListenerPort"
> is
> the port at which this client listens. 
> 
> If server 2 is listening to port 1111, the server 1
> should be configured like this:
> 
>
jcs.auxiliary.LTCP.attributes.TcpServers=localhost:1111
> 
> jcs.auxiliary.LTCP.attributes.TcpListenerPort=1110
> 
> And server 2 should be configured like this:
> 
>
jcs.auxiliary.LTCP.attributes.TcpServers=localhost:1110
> jcs.auxiliary.LTCP.attributes.TcpListenerPort=1111
> 
> I'd recommend using UDP discovery, which greatly
> simplfies these issues.
> 
> Cheers,
> 
> Aaron
> 
> --- emily chen wrote:
> 
> > Hi Aaron,
> > 
> > I did a testing, used different port in cache.ccf
> > file, and still got the same error:
> > 
> > cache.ccf for web applicaton in Tomcat1:
> > 
> >
>
jcs.auxiliary.LTCP.attributes.TcpServers=localhost:1110
> > 
> > jcs.auxiliary.LTCP.attributes.TcpListenerPort=1110
> > 
> > cache.ccf for web applicaton in Tomcat2:
> > 
> >
>
jcs.auxiliary.LTCP.attributes.TcpServers=localhost:1111
> > 
> > jcs.auxiliary.LTCP.attributes.TcpListenerPort=1111
> > 
> > and got following error message:
> > -----------------------------------------------
> > 2006-06-26 11:38:59,540 [http-8080-Processor25]
> > INFO 
> >
> org.apache.jcs.engine.control.CompositeCacheManager
> > - Creating cache manager from config file:
> > /cache.ccf
> > 2006-06-26 11:38:59,540 [http-8080-Processor25]
> INFO
> > org.apache.jcs.utils.threadpool.ThreadPoolManager
> -
> > thread_pool.default PoolConfiguration =
> useBoundary
> > = [true]boundarySize = [2000]maximumPoolSize =
> > [150]minimumPoolSize = [4]keepAliveTime =
> > [300000]whenBlockedPolicy = [RUN]startUpSize = [4]
> > 2006-06-26 11:38:59,556 [http-8080-Processor25]
> INFO
> > 
> >
>
org.apache.jcs.engine.control.CompositeCacheConfigurator
> > - Setting default auxiliaries to DC,LTCP
> > 2006-06-26 11:38:59,556 [http-8080-Processor25]
> INFO
> > 
> >
>
org.apache.jcs.engine.control.CompositeCacheConfigurator
> > - setting defaultCompositeCacheAttributes to [
> > useLateral = true, useRemote = true, useDisk =
> true,
> > maxObjs = 0, maxSpoolPerRun = -1 ]
> > 2006-06-26 11:38:59,556 [http-8080-Processor25]
> INFO
> > 
> >
>
org.apache.jcs.engine.control.CompositeCacheConfigurator
> > - No special ElementAttribute class defined for
> key
> > [jcs.default.elementattributes], using default
> > class.
> > 2006-06-26 11:38:59,556 [http-8080-Processor25]
> INFO
> > 
> >
>
org.apache.jcs.engine.control.CompositeCacheConfigurator
> > - setting defaultElementAttributes to [ IS_LATERAL
> =
> > true, IS_SPOOL = true, IS_REMOTE = true,
> IS_ETERNAL
> > = false, MaxLifeSeconds = 3600, IdleTime = 1800,
> > CreateTime = 1151347139556, LastAccessTime =
> > 1151347139556, getTimeToLiveSeconds() = 3600,
> > createTime = 1151347139556 ]
> > 2006-06-26 11:38:59,556 [http-8080-Processor25]
> INFO
> > 
> >
>
org.apache.jcs.engine.control.CompositeCacheConfigurator
> > - Parsed regions []
> > 2006-06-26 11:38:59,556 [http-8080-Processor25]
> INFO
> > 
> >
>
org.apache.jcs.engine.control.CompositeCacheConfigurator
> > - Finished configuration in 0 ms.
> > 2006-06-26 11:38:59,556 [http-8080-Processor25]
> INFO
> > 
> >
>
org.apache.jcs.engine.control.CompositeCacheConfigurator
> > - No special ElementAttribute class defined for
> key
> >
> [jcs.region.ePINBatchReportCache.elementattributes],
> > using default class.
> > 2006-06-26 11:38:59,587 [http-8080-Processor25]
> INFO
> > org.apache.jcs.engine.memory.lru.LRUMemoryCache -
> > initialized LRUMemoryCache for
> ePINBatchReportCache
> > 2006-06-26 11:38:59,587 [http-8080-Processor25]
> INFO
> > org.apache.jcs.engine.control.CompositeCache -
> > Constructed cache with name: ePINBatchReportCache
> > 2006-06-26 11:38:59,649 [http-8080-Processor25]
> INFO
> > 
> >
>
org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache
> > - Cache file root directory: C:\Temp\JCS_cache1
> > 2006-06-26 11:38:59,665 [http-8080-Processor25]
> INFO
> > 
> >
>
org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache
> > - Set maxKeySize to: '10000'
> > 2006-06-26 11:38:59,665 [http-8080-Processor25]
> INFO
> > 
> >
>
org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache
> > - Set recycle max Size to MaxRecycleBinSize:
> '7500'
> > 2006-06-26 11:38:59,681 [http-8080-Processor25]
> INFO
> > 
> >
>
org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPCacheManager
> > - Instance for [localhost:1110:1110] is null,
> > creating
> > 2006-06-26 11:38:59,681 [http-8080-Processor25]
> INFO
> > 
> >
>
org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPCacheManager
> > - Creating TCP service, lca = localhost:1110:1110
> > 2006-06-26 11:39:00,665 [http-8080-Processor25]
> > ERROR
> >
>
org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPService
> > - Could not create sender to [localhost:1110] --
> > Socket is null, cannot connect to localhost:1110
> > 2006-06-26 11:39:00,665 [http-8080-Processor25]
> > ERROR
> >
> 
=== message truncated ===


---------------------------------------------------------------------
To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jcs-users-help@jakarta.apache.org



 __________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: Lateral TCP Cache - UDP discovery configuration

Posted by Aaron Smuts <as...@yahoo.com>.
UDP discovery is documented here:
http://jakarta.apache.org/jcs/LateralUDPDiscovery.html

With UDP discovery you don't have to specify the
servers to connect to; instead, they find each other
using the udp discovery port and address.  All servers
that you want to be able to find ech other should be
configured to use the same discovery address and port.

You still need to define a TCPListenerPort.  If both
of your servers are on the same machine, then this
port must be different on each. 

Basically, they learn about each other by UDP.  Then
when they find each other they connect to each other
on the tcp listener port.

Aaron


--- emily chen <em...@yahoo.com> wrote:

> Hi Aaron,
>    
>   I found an example that you post in the mail list:
>
http://mail-archives.apache.org/mod_mbox/jakarta-jcs-users/200606.mbox/%3C20060605162432.73955.qmail@web38715.mail.mud.yahoo.com%3E
>    
>   But I don't know how do I config the following
> attributes of Lateral UDP Discovery if I have two
> Tomcat servers runing in my PC:
>    
>  
>
jcs.auxiliary.LTCPAIR.attributes.TcpListenerPort=1118
>
jcs.auxiliary.LTCPAIR.attributes.UdpDiscoveryAddr=228.5.6.1
>
jcs.auxiliary.LTCPAIR.attributes.UdpDiscoveryPort=6773
>
jcs.auxiliary.LTCPAIR.attributes.UdpDiscoveryEnabled=true
> jcs.auxiliary.LTCPAIR.attributes.Receive=true
> jcs.auxiliary.LTCPAIR.attributes.AllowGet=false
>
jcs.auxiliary.LTCPAIR.attributes.IssueRemoveOnPut=false
>
jcs.auxiliary.LTCPAIR.attributes.FilterRemoveByHashCode=true
> 
>    
>   Thanks for your help.
>    
>   Emily
>    
>    
>   
> 
> Aaron Smuts <as...@yahoo.com> wrote:
>   Please think a bit about what the configuration is
> supposed to accomplish, and the problem should be
> clear. You tell one client where to find the others
> in the "TcpServers" setting. The "TcpListenerPort"
> is
> the port at which this client listens. 
> 
> If server 2 is listening to port 1111, the server 1
> should be configured like this:
> 
>
jcs.auxiliary.LTCP.attributes.TcpServers=localhost:1111
> 
> jcs.auxiliary.LTCP.attributes.TcpListenerPort=1110
> 
> And server 2 should be configured like this:
> 
>
jcs.auxiliary.LTCP.attributes.TcpServers=localhost:1110
> jcs.auxiliary.LTCP.attributes.TcpListenerPort=1111
> 
> I'd recommend using UDP discovery, which greatly
> simplfies these issues.
> 
> Cheers,
> 
> Aaron
> 
> --- emily chen wrote:
> 
> > Hi Aaron,
> > 
> > I did a testing, used different port in cache.ccf
> > file, and still got the same error:
> > 
> > cache.ccf for web applicaton in Tomcat1:
> > 
> >
>
jcs.auxiliary.LTCP.attributes.TcpServers=localhost:1110
> > 
> > jcs.auxiliary.LTCP.attributes.TcpListenerPort=1110
> > 
> > cache.ccf for web applicaton in Tomcat2:
> > 
> >
>
jcs.auxiliary.LTCP.attributes.TcpServers=localhost:1111
> > 
> > jcs.auxiliary.LTCP.attributes.TcpListenerPort=1111
> > 
> > and got following error message:
> > -----------------------------------------------
> > 2006-06-26 11:38:59,540 [http-8080-Processor25]
> > INFO 
> >
> org.apache.jcs.engine.control.CompositeCacheManager
> > - Creating cache manager from config file:
> > /cache.ccf
> > 2006-06-26 11:38:59,540 [http-8080-Processor25]
> INFO
> > org.apache.jcs.utils.threadpool.ThreadPoolManager
> -
> > thread_pool.default PoolConfiguration =
> useBoundary
> > = [true]boundarySize = [2000]maximumPoolSize =
> > [150]minimumPoolSize = [4]keepAliveTime =
> > [300000]whenBlockedPolicy = [RUN]startUpSize = [4]
> > 2006-06-26 11:38:59,556 [http-8080-Processor25]
> INFO
> > 
> >
>
org.apache.jcs.engine.control.CompositeCacheConfigurator
> > - Setting default auxiliaries to DC,LTCP
> > 2006-06-26 11:38:59,556 [http-8080-Processor25]
> INFO
> > 
> >
>
org.apache.jcs.engine.control.CompositeCacheConfigurator
> > - setting defaultCompositeCacheAttributes to [
> > useLateral = true, useRemote = true, useDisk =
> true,
> > maxObjs = 0, maxSpoolPerRun = -1 ]
> > 2006-06-26 11:38:59,556 [http-8080-Processor25]
> INFO
> > 
> >
>
org.apache.jcs.engine.control.CompositeCacheConfigurator
> > - No special ElementAttribute class defined for
> key
> > [jcs.default.elementattributes], using default
> > class.
> > 2006-06-26 11:38:59,556 [http-8080-Processor25]
> INFO
> > 
> >
>
org.apache.jcs.engine.control.CompositeCacheConfigurator
> > - setting defaultElementAttributes to [ IS_LATERAL
> =
> > true, IS_SPOOL = true, IS_REMOTE = true,
> IS_ETERNAL
> > = false, MaxLifeSeconds = 3600, IdleTime = 1800,
> > CreateTime = 1151347139556, LastAccessTime =
> > 1151347139556, getTimeToLiveSeconds() = 3600,
> > createTime = 1151347139556 ]
> > 2006-06-26 11:38:59,556 [http-8080-Processor25]
> INFO
> > 
> >
>
org.apache.jcs.engine.control.CompositeCacheConfigurator
> > - Parsed regions []
> > 2006-06-26 11:38:59,556 [http-8080-Processor25]
> INFO
> > 
> >
>
org.apache.jcs.engine.control.CompositeCacheConfigurator
> > - Finished configuration in 0 ms.
> > 2006-06-26 11:38:59,556 [http-8080-Processor25]
> INFO
> > 
> >
>
org.apache.jcs.engine.control.CompositeCacheConfigurator
> > - No special ElementAttribute class defined for
> key
> >
> [jcs.region.ePINBatchReportCache.elementattributes],
> > using default class.
> > 2006-06-26 11:38:59,587 [http-8080-Processor25]
> INFO
> > org.apache.jcs.engine.memory.lru.LRUMemoryCache -
> > initialized LRUMemoryCache for
> ePINBatchReportCache
> > 2006-06-26 11:38:59,587 [http-8080-Processor25]
> INFO
> > org.apache.jcs.engine.control.CompositeCache -
> > Constructed cache with name: ePINBatchReportCache
> > 2006-06-26 11:38:59,649 [http-8080-Processor25]
> INFO
> > 
> >
>
org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache
> > - Cache file root directory: C:\Temp\JCS_cache1
> > 2006-06-26 11:38:59,665 [http-8080-Processor25]
> INFO
> > 
> >
>
org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache
> > - Set maxKeySize to: '10000'
> > 2006-06-26 11:38:59,665 [http-8080-Processor25]
> INFO
> > 
> >
>
org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache
> > - Set recycle max Size to MaxRecycleBinSize:
> '7500'
> > 2006-06-26 11:38:59,681 [http-8080-Processor25]
> INFO
> > 
> >
>
org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPCacheManager
> > - Instance for [localhost:1110:1110] is null,
> > creating
> > 2006-06-26 11:38:59,681 [http-8080-Processor25]
> INFO
> > 
> >
>
org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPCacheManager
> > - Creating TCP service, lca = localhost:1110:1110
> > 2006-06-26 11:39:00,665 [http-8080-Processor25]
> > ERROR
> >
>
org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPService
> > - Could not create sender to [localhost:1110] --
> > Socket is null, cannot connect to localhost:1110
> > 2006-06-26 11:39:00,665 [http-8080-Processor25]
> > ERROR
> >
> 
=== message truncated ===


---------------------------------------------------------------------
To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jcs-users-help@jakarta.apache.org


Re: Lateral TCP Cache - UDP discovery configuration

Posted by emily chen <em...@yahoo.com>.
Hi Aaron,
   
  I found an example that you post in the mail list: http://mail-archives.apache.org/mod_mbox/jakarta-jcs-users/200606.mbox/%3C20060605162432.73955.qmail@web38715.mail.mud.yahoo.com%3E
   
  But I don't know how do I config the following attributes of Lateral UDP Discovery if I have two Tomcat servers runing in my PC:
   
  jcs.auxiliary.LTCPAIR.attributes.TcpListenerPort=1118
jcs.auxiliary.LTCPAIR.attributes.UdpDiscoveryAddr=228.5.6.1
jcs.auxiliary.LTCPAIR.attributes.UdpDiscoveryPort=6773
jcs.auxiliary.LTCPAIR.attributes.UdpDiscoveryEnabled=true
jcs.auxiliary.LTCPAIR.attributes.Receive=true
jcs.auxiliary.LTCPAIR.attributes.AllowGet=false
jcs.auxiliary.LTCPAIR.attributes.IssueRemoveOnPut=false
jcs.auxiliary.LTCPAIR.attributes.FilterRemoveByHashCode=true

   
  Thanks for your help.
   
  Emily
   
   
  

Aaron Smuts <as...@yahoo.com> wrote:
  Please think a bit about what the configuration is
supposed to accomplish, and the problem should be
clear. You tell one client where to find the others
in the "TcpServers" setting. The "TcpListenerPort" is
the port at which this client listens. 

If server 2 is listening to port 1111, the server 1
should be configured like this:

jcs.auxiliary.LTCP.attributes.TcpServers=localhost:1111

jcs.auxiliary.LTCP.attributes.TcpListenerPort=1110

And server 2 should be configured like this:

jcs.auxiliary.LTCP.attributes.TcpServers=localhost:1110
jcs.auxiliary.LTCP.attributes.TcpListenerPort=1111

I'd recommend using UDP discovery, which greatly
simplfies these issues.

Cheers,

Aaron

--- emily chen wrote:

> Hi Aaron,
> 
> I did a testing, used different port in cache.ccf
> file, and still got the same error:
> 
> cache.ccf for web applicaton in Tomcat1:
> 
>
jcs.auxiliary.LTCP.attributes.TcpServers=localhost:1110
> 
> jcs.auxiliary.LTCP.attributes.TcpListenerPort=1110
> 
> cache.ccf for web applicaton in Tomcat2:
> 
>
jcs.auxiliary.LTCP.attributes.TcpServers=localhost:1111
> 
> jcs.auxiliary.LTCP.attributes.TcpListenerPort=1111
> 
> and got following error message:
> -----------------------------------------------
> 2006-06-26 11:38:59,540 [http-8080-Processor25]
> INFO 
> org.apache.jcs.engine.control.CompositeCacheManager
> - Creating cache manager from config file:
> /cache.ccf
> 2006-06-26 11:38:59,540 [http-8080-Processor25] INFO
> org.apache.jcs.utils.threadpool.ThreadPoolManager -
> thread_pool.default PoolConfiguration = useBoundary
> = [true]boundarySize = [2000]maximumPoolSize =
> [150]minimumPoolSize = [4]keepAliveTime =
> [300000]whenBlockedPolicy = [RUN]startUpSize = [4]
> 2006-06-26 11:38:59,556 [http-8080-Processor25] INFO
> 
>
org.apache.jcs.engine.control.CompositeCacheConfigurator
> - Setting default auxiliaries to DC,LTCP
> 2006-06-26 11:38:59,556 [http-8080-Processor25] INFO
> 
>
org.apache.jcs.engine.control.CompositeCacheConfigurator
> - setting defaultCompositeCacheAttributes to [
> useLateral = true, useRemote = true, useDisk = true,
> maxObjs = 0, maxSpoolPerRun = -1 ]
> 2006-06-26 11:38:59,556 [http-8080-Processor25] INFO
> 
>
org.apache.jcs.engine.control.CompositeCacheConfigurator
> - No special ElementAttribute class defined for key
> [jcs.default.elementattributes], using default
> class.
> 2006-06-26 11:38:59,556 [http-8080-Processor25] INFO
> 
>
org.apache.jcs.engine.control.CompositeCacheConfigurator
> - setting defaultElementAttributes to [ IS_LATERAL =
> true, IS_SPOOL = true, IS_REMOTE = true, IS_ETERNAL
> = false, MaxLifeSeconds = 3600, IdleTime = 1800,
> CreateTime = 1151347139556, LastAccessTime =
> 1151347139556, getTimeToLiveSeconds() = 3600,
> createTime = 1151347139556 ]
> 2006-06-26 11:38:59,556 [http-8080-Processor25] INFO
> 
>
org.apache.jcs.engine.control.CompositeCacheConfigurator
> - Parsed regions []
> 2006-06-26 11:38:59,556 [http-8080-Processor25] INFO
> 
>
org.apache.jcs.engine.control.CompositeCacheConfigurator
> - Finished configuration in 0 ms.
> 2006-06-26 11:38:59,556 [http-8080-Processor25] INFO
> 
>
org.apache.jcs.engine.control.CompositeCacheConfigurator
> - No special ElementAttribute class defined for key
> [jcs.region.ePINBatchReportCache.elementattributes],
> using default class.
> 2006-06-26 11:38:59,587 [http-8080-Processor25] INFO
> org.apache.jcs.engine.memory.lru.LRUMemoryCache -
> initialized LRUMemoryCache for ePINBatchReportCache
> 2006-06-26 11:38:59,587 [http-8080-Processor25] INFO
> org.apache.jcs.engine.control.CompositeCache -
> Constructed cache with name: ePINBatchReportCache
> 2006-06-26 11:38:59,649 [http-8080-Processor25] INFO
> 
>
org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache
> - Cache file root directory: C:\Temp\JCS_cache1
> 2006-06-26 11:38:59,665 [http-8080-Processor25] INFO
> 
>
org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache
> - Set maxKeySize to: '10000'
> 2006-06-26 11:38:59,665 [http-8080-Processor25] INFO
> 
>
org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache
> - Set recycle max Size to MaxRecycleBinSize: '7500'
> 2006-06-26 11:38:59,681 [http-8080-Processor25] INFO
> 
>
org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPCacheManager
> - Instance for [localhost:1110:1110] is null,
> creating
> 2006-06-26 11:38:59,681 [http-8080-Processor25] INFO
> 
>
org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPCacheManager
> - Creating TCP service, lca = localhost:1110:1110
> 2006-06-26 11:39:00,665 [http-8080-Processor25]
> ERROR
>
org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPService
> - Could not create sender to [localhost:1110] --
> Socket is null, cannot connect to localhost:1110
> 2006-06-26 11:39:00,665 [http-8080-Processor25]
> ERROR
>
org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPCacheManager
> - Failure, lateral instance will use zombie service
> java.io.IOException: Socket is null, cannot connect
> to localhost:1110
> at
>
org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPSender.init(LateralTCPSender.java:137)
> at
>
org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPSender.(LateralTCPSender.java:110)
> at
>
org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPService.(LateralTCPService.java:70)
> at
>
org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPCacheManager.(LateralTCPCacheManager.java:164)
> at
>
org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPCacheManager.getInstance(LateralTCPCacheManager.java:105)
> at
>
org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPCacheFactory.createCache(LateralTCPCacheFactory.java:81)
> at
>
org.apache.jcs.engine.control.CompositeCacheConfigurator.parseAuxiliary(CompositeCacheConfigurator.java:551)
> at
>
org.apache.jcs.engine.control.CompositeCacheConfigurator.parseRegion(CompositeCacheConfigurator.java:343)
> at
>
org.apache.jcs.engine.control.CompositeCacheConfigurator.parseRegion(CompositeCacheConfigurator.java:280)
> at
>
org.apache.jcs.engine.control.CompositeCacheManager.getCache(CompositeCacheManager.java:445)
> at
>
org.apache.jcs.engine.control.CompositeCacheManager.getCache(CompositeCacheManager.java:384)
> at
>
org.apache.jcs.engine.control.CompositeCacheManager.getCache(CompositeCacheManager.java:371)
> at org.apache.jcs.JCS.getInstance(JCS.java:66)
> at
>
com.prenet.domain.epinSupport.EpinReportMediator.(Unknown
> Source)
> at
>
com.prenet.domain.common.MediatorFactory.getEpinBatchSummaryReportMediator(Unknown
> Source)
> at
>
com.prenet.cpt.presentation.epinSupport.ProductSummaryReportVC.loadReport(Unknown
> Source)
> at
>
com.prenet.cpt.presentation.epinSupport.ProductSummaryReportVC.getReport(Unknown
> Source)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at
>
com.sun.faces.el.PropertyResolverImpl.getValue(PropertyResolverImpl.java:79)
> at
>
org.apache.shale.faces.ShalePropertyResolver.getValue(ShalePropertyResolver.java:104)
> at
>
com.sun.faces.el.impl.ArraySuffix.evaluate(ArraySuffix.java:167)
> at
>
com.sun.faces.el.impl.ComplexValue.evaluate(ComplexValue.java:151)
> at
>
com.sun.faces.el.impl.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:243)
> at
>
com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:173)
> at
>
com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:154)
> at
>
javax.faces.component.UIOutput.getValue(UIOutput.java:147)
> at
>
com.prenet.presentation.components.UIOutputDate.getFormattedDate(Unknown
> Source)
> at
>
com.prenet.presentation.components.UIOutputDate.encodeBegin(Unknown
> Source)
> at
>
com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:433)
> at
>
com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:130)
> at
>
javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:701)
> at
>
com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:435)
> at
>
com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:233)
> at
>
javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:701)
> at
>
com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:435)
> at
>
com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:233)
> at
>
javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:701)
> at
>
javax.faces.webapp.UIComponentTag.encodeChildren(UIComponentTag.java:607)
> at
>
javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:544)
> at
>
com.sun.faces.taglib.html_basic.PanelGridTag.doEndTag(PanelGridTag.java:460)
> at
>
org.apache.jsp.epinSupport.productSummaryReport_jsp._jspx_meth_h_panelGrid_3(org.apache.jsp.epinSupport.productSummaryReport_jsp:1651)
> at
>
org.apache.jsp.epinSupport.productSummaryReport_jsp._jspx_meth_f_view_0(org.apache.jsp.epinSupport.productSummaryReport_jsp:284)
> 
=== message truncated ===


---------------------------------------------------------------------
To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jcs-users-help@jakarta.apache.org



 		
---------------------------------
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great rates starting at 1¢/min.

Re: Lateral TCP Cache error

Posted by Aaron Smuts <as...@yahoo.com>.
Please think a bit about what the configuration is
supposed to accomplish, and the problem should be
clear.  You tell one client where to find the others
in the "TcpServers" setting.  The "TcpListenerPort" is
the port at which this client listens.  

If server 2 is listening to port 1111, the server 1
should be configured like this:

jcs.auxiliary.LTCP.attributes.TcpServers=localhost:1111
  
jcs.auxiliary.LTCP.attributes.TcpListenerPort=1110

And server 2 should be configured like this:

jcs.auxiliary.LTCP.attributes.TcpServers=localhost:1110
jcs.auxiliary.LTCP.attributes.TcpListenerPort=1111

I'd recommend using UDP discovery, which greatly
simplfies these issues.

Cheers,

Aaron

--- emily chen <em...@yahoo.com> wrote:

> Hi Aaron,
>    
>   I did a testing, used different port in cache.ccf
> file, and still got the same error:
>    
>   cache.ccf for web applicaton in Tomcat1:
>       
>
jcs.auxiliary.LTCP.attributes.TcpServers=localhost:1110
>     
> jcs.auxiliary.LTCP.attributes.TcpListenerPort=1110
>    
>   cache.ccf for web applicaton in Tomcat2:
>       
>
jcs.auxiliary.LTCP.attributes.TcpServers=localhost:1111
>     
> jcs.auxiliary.LTCP.attributes.TcpListenerPort=1111
>    
>   and got following error message:
>   -----------------------------------------------
>   2006-06-26 11:38:59,540 [http-8080-Processor25]
> INFO 
> org.apache.jcs.engine.control.CompositeCacheManager
> - Creating cache manager from config file:
> /cache.ccf
> 2006-06-26 11:38:59,540 [http-8080-Processor25] INFO
>  org.apache.jcs.utils.threadpool.ThreadPoolManager -
> thread_pool.default PoolConfiguration = useBoundary
> = [true]boundarySize = [2000]maximumPoolSize =
> [150]minimumPoolSize = [4]keepAliveTime =
> [300000]whenBlockedPolicy = [RUN]startUpSize = [4]
> 2006-06-26 11:38:59,556 [http-8080-Processor25] INFO
> 
>
org.apache.jcs.engine.control.CompositeCacheConfigurator
> - Setting default auxiliaries to DC,LTCP
> 2006-06-26 11:38:59,556 [http-8080-Processor25] INFO
> 
>
org.apache.jcs.engine.control.CompositeCacheConfigurator
> - setting defaultCompositeCacheAttributes to [
> useLateral = true, useRemote = true, useDisk = true,
> maxObjs = 0, maxSpoolPerRun = -1 ]
> 2006-06-26 11:38:59,556 [http-8080-Processor25] INFO
> 
>
org.apache.jcs.engine.control.CompositeCacheConfigurator
> - No special ElementAttribute class defined for key
> [jcs.default.elementattributes], using default
> class.
> 2006-06-26 11:38:59,556 [http-8080-Processor25] INFO
> 
>
org.apache.jcs.engine.control.CompositeCacheConfigurator
> - setting defaultElementAttributes to [ IS_LATERAL =
> true, IS_SPOOL = true, IS_REMOTE = true, IS_ETERNAL
> = false, MaxLifeSeconds = 3600, IdleTime = 1800,
> CreateTime = 1151347139556, LastAccessTime =
> 1151347139556, getTimeToLiveSeconds() = 3600,
> createTime = 1151347139556 ]
> 2006-06-26 11:38:59,556 [http-8080-Processor25] INFO
> 
>
org.apache.jcs.engine.control.CompositeCacheConfigurator
> - Parsed regions []
> 2006-06-26 11:38:59,556 [http-8080-Processor25] INFO
> 
>
org.apache.jcs.engine.control.CompositeCacheConfigurator
> - Finished configuration in 0 ms.
> 2006-06-26 11:38:59,556 [http-8080-Processor25] INFO
> 
>
org.apache.jcs.engine.control.CompositeCacheConfigurator
> - No special ElementAttribute class defined for key
> [jcs.region.ePINBatchReportCache.elementattributes],
> using default class.
> 2006-06-26 11:38:59,587 [http-8080-Processor25] INFO
>  org.apache.jcs.engine.memory.lru.LRUMemoryCache -
> initialized LRUMemoryCache for ePINBatchReportCache
> 2006-06-26 11:38:59,587 [http-8080-Processor25] INFO
>  org.apache.jcs.engine.control.CompositeCache -
> Constructed cache with name: ePINBatchReportCache
> 2006-06-26 11:38:59,649 [http-8080-Processor25] INFO
> 
>
org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache
> - Cache file root directory: C:\Temp\JCS_cache1
> 2006-06-26 11:38:59,665 [http-8080-Processor25] INFO
> 
>
org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache
> - Set maxKeySize to: '10000'
> 2006-06-26 11:38:59,665 [http-8080-Processor25] INFO
> 
>
org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache
> - Set recycle max Size to MaxRecycleBinSize: '7500'
> 2006-06-26 11:38:59,681 [http-8080-Processor25] INFO
> 
>
org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPCacheManager
> - Instance for [localhost:1110:1110] is null,
> creating
> 2006-06-26 11:38:59,681 [http-8080-Processor25] INFO
> 
>
org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPCacheManager
> - Creating TCP service, lca = localhost:1110:1110
> 2006-06-26 11:39:00,665 [http-8080-Processor25]
> ERROR
>
org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPService
> - Could not create sender to [localhost:1110] --
> Socket is null, cannot connect to localhost:1110
> 2006-06-26 11:39:00,665 [http-8080-Processor25]
> ERROR
>
org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPCacheManager
> - Failure, lateral instance will use zombie service
> java.io.IOException: Socket is null, cannot connect
> to localhost:1110
>  at
>
org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPSender.init(LateralTCPSender.java:137)
>  at
>
org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPSender.<init>(LateralTCPSender.java:110)
>  at
>
org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPService.<init>(LateralTCPService.java:70)
>  at
>
org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPCacheManager.<init>(LateralTCPCacheManager.java:164)
>  at
>
org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPCacheManager.getInstance(LateralTCPCacheManager.java:105)
>  at
>
org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPCacheFactory.createCache(LateralTCPCacheFactory.java:81)
>  at
>
org.apache.jcs.engine.control.CompositeCacheConfigurator.parseAuxiliary(CompositeCacheConfigurator.java:551)
>  at
>
org.apache.jcs.engine.control.CompositeCacheConfigurator.parseRegion(CompositeCacheConfigurator.java:343)
>  at
>
org.apache.jcs.engine.control.CompositeCacheConfigurator.parseRegion(CompositeCacheConfigurator.java:280)
>  at
>
org.apache.jcs.engine.control.CompositeCacheManager.getCache(CompositeCacheManager.java:445)
>  at
>
org.apache.jcs.engine.control.CompositeCacheManager.getCache(CompositeCacheManager.java:384)
>  at
>
org.apache.jcs.engine.control.CompositeCacheManager.getCache(CompositeCacheManager.java:371)
>  at org.apache.jcs.JCS.getInstance(JCS.java:66)
>  at
>
com.prenet.domain.epinSupport.EpinReportMediator.<init>(Unknown
> Source)
>  at
>
com.prenet.domain.common.MediatorFactory.getEpinBatchSummaryReportMediator(Unknown
> Source)
>  at
>
com.prenet.cpt.presentation.epinSupport.ProductSummaryReportVC.loadReport(Unknown
> Source)
>  at
>
com.prenet.cpt.presentation.epinSupport.ProductSummaryReportVC.getReport(Unknown
> Source)
>  at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
>  at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>  at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>  at java.lang.reflect.Method.invoke(Method.java:585)
>  at
>
com.sun.faces.el.PropertyResolverImpl.getValue(PropertyResolverImpl.java:79)
>  at
>
org.apache.shale.faces.ShalePropertyResolver.getValue(ShalePropertyResolver.java:104)
>  at
>
com.sun.faces.el.impl.ArraySuffix.evaluate(ArraySuffix.java:167)
>  at
>
com.sun.faces.el.impl.ComplexValue.evaluate(ComplexValue.java:151)
>  at
>
com.sun.faces.el.impl.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:243)
>  at
>
com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:173)
>  at
>
com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:154)
>  at
>
javax.faces.component.UIOutput.getValue(UIOutput.java:147)
>  at
>
com.prenet.presentation.components.UIOutputDate.getFormattedDate(Unknown
> Source)
>  at
>
com.prenet.presentation.components.UIOutputDate.encodeBegin(Unknown
> Source)
>  at
>
com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:433)
>  at
>
com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:130)
>  at
>
javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:701)
>  at
>
com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:435)
>  at
>
com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:233)
>  at
>
javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:701)
>  at
>
com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:435)
>  at
>
com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:233)
>  at
>
javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:701)
>  at
>
javax.faces.webapp.UIComponentTag.encodeChildren(UIComponentTag.java:607)
>  at
>
javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:544)
>  at
>
com.sun.faces.taglib.html_basic.PanelGridTag.doEndTag(PanelGridTag.java:460)
>  at
>
org.apache.jsp.epinSupport.productSummaryReport_jsp._jspx_meth_h_panelGrid_3(org.apache.jsp.epinSupport.productSummaryReport_jsp:1651)
>  at
>
org.apache.jsp.epinSupport.productSummaryReport_jsp._jspx_meth_f_view_0(org.apache.jsp.epinSupport.productSummaryReport_jsp:284)
> 
=== message truncated ===


---------------------------------------------------------------------
To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jcs-users-help@jakarta.apache.org


Re: Lateral TCP Cache error

Posted by emily chen <em...@yahoo.com>.
Hi Aaron,
   
  I did a testing, used different port in cache.ccf file, and still got the same error:
   
  cache.ccf for web applicaton in Tomcat1:
       jcs.auxiliary.LTCP.attributes.TcpServers=localhost:1110
     jcs.auxiliary.LTCP.attributes.TcpListenerPort=1110
   
  cache.ccf for web applicaton in Tomcat2:
       jcs.auxiliary.LTCP.attributes.TcpServers=localhost:1111
     jcs.auxiliary.LTCP.attributes.TcpListenerPort=1111
   
  and got following error message:
  -----------------------------------------------
  2006-06-26 11:38:59,540 [http-8080-Processor25] INFO  org.apache.jcs.engine.control.CompositeCacheManager - Creating cache manager from config file: /cache.ccf
2006-06-26 11:38:59,540 [http-8080-Processor25] INFO  org.apache.jcs.utils.threadpool.ThreadPoolManager - thread_pool.default PoolConfiguration = useBoundary = [true]boundarySize = [2000]maximumPoolSize = [150]minimumPoolSize = [4]keepAliveTime = [300000]whenBlockedPolicy = [RUN]startUpSize = [4]
2006-06-26 11:38:59,556 [http-8080-Processor25] INFO  org.apache.jcs.engine.control.CompositeCacheConfigurator - Setting default auxiliaries to DC,LTCP
2006-06-26 11:38:59,556 [http-8080-Processor25] INFO  org.apache.jcs.engine.control.CompositeCacheConfigurator - setting defaultCompositeCacheAttributes to [ useLateral = true, useRemote = true, useDisk = true, maxObjs = 0, maxSpoolPerRun = -1 ]
2006-06-26 11:38:59,556 [http-8080-Processor25] INFO  org.apache.jcs.engine.control.CompositeCacheConfigurator - No special ElementAttribute class defined for key [jcs.default.elementattributes], using default class.
2006-06-26 11:38:59,556 [http-8080-Processor25] INFO  org.apache.jcs.engine.control.CompositeCacheConfigurator - setting defaultElementAttributes to [ IS_LATERAL = true, IS_SPOOL = true, IS_REMOTE = true, IS_ETERNAL = false, MaxLifeSeconds = 3600, IdleTime = 1800, CreateTime = 1151347139556, LastAccessTime = 1151347139556, getTimeToLiveSeconds() = 3600, createTime = 1151347139556 ]
2006-06-26 11:38:59,556 [http-8080-Processor25] INFO  org.apache.jcs.engine.control.CompositeCacheConfigurator - Parsed regions []
2006-06-26 11:38:59,556 [http-8080-Processor25] INFO  org.apache.jcs.engine.control.CompositeCacheConfigurator - Finished configuration in 0 ms.
2006-06-26 11:38:59,556 [http-8080-Processor25] INFO  org.apache.jcs.engine.control.CompositeCacheConfigurator - No special ElementAttribute class defined for key [jcs.region.ePINBatchReportCache.elementattributes], using default class.
2006-06-26 11:38:59,587 [http-8080-Processor25] INFO  org.apache.jcs.engine.memory.lru.LRUMemoryCache - initialized LRUMemoryCache for ePINBatchReportCache
2006-06-26 11:38:59,587 [http-8080-Processor25] INFO  org.apache.jcs.engine.control.CompositeCache - Constructed cache with name: ePINBatchReportCache
2006-06-26 11:38:59,649 [http-8080-Processor25] INFO  org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache - Cache file root directory: C:\Temp\JCS_cache1
2006-06-26 11:38:59,665 [http-8080-Processor25] INFO  org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache - Set maxKeySize to: '10000'
2006-06-26 11:38:59,665 [http-8080-Processor25] INFO  org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache - Set recycle max Size to MaxRecycleBinSize: '7500'
2006-06-26 11:38:59,681 [http-8080-Processor25] INFO  org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPCacheManager - Instance for [localhost:1110:1110] is null, creating
2006-06-26 11:38:59,681 [http-8080-Processor25] INFO  org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPCacheManager - Creating TCP service, lca = localhost:1110:1110
2006-06-26 11:39:00,665 [http-8080-Processor25] ERROR org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPService - Could not create sender to [localhost:1110] -- Socket is null, cannot connect to localhost:1110
2006-06-26 11:39:00,665 [http-8080-Processor25] ERROR org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPCacheManager - Failure, lateral instance will use zombie service
java.io.IOException: Socket is null, cannot connect to localhost:1110
 at org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPSender.init(LateralTCPSender.java:137)
 at org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPSender.<init>(LateralTCPSender.java:110)
 at org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPService.<init>(LateralTCPService.java:70)
 at org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPCacheManager.<init>(LateralTCPCacheManager.java:164)
 at org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPCacheManager.getInstance(LateralTCPCacheManager.java:105)
 at org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPCacheFactory.createCache(LateralTCPCacheFactory.java:81)
 at org.apache.jcs.engine.control.CompositeCacheConfigurator.parseAuxiliary(CompositeCacheConfigurator.java:551)
 at org.apache.jcs.engine.control.CompositeCacheConfigurator.parseRegion(CompositeCacheConfigurator.java:343)
 at org.apache.jcs.engine.control.CompositeCacheConfigurator.parseRegion(CompositeCacheConfigurator.java:280)
 at org.apache.jcs.engine.control.CompositeCacheManager.getCache(CompositeCacheManager.java:445)
 at org.apache.jcs.engine.control.CompositeCacheManager.getCache(CompositeCacheManager.java:384)
 at org.apache.jcs.engine.control.CompositeCacheManager.getCache(CompositeCacheManager.java:371)
 at org.apache.jcs.JCS.getInstance(JCS.java:66)
 at com.prenet.domain.epinSupport.EpinReportMediator.<init>(Unknown Source)
 at com.prenet.domain.common.MediatorFactory.getEpinBatchSummaryReportMediator(Unknown Source)
 at com.prenet.cpt.presentation.epinSupport.ProductSummaryReportVC.loadReport(Unknown Source)
 at com.prenet.cpt.presentation.epinSupport.ProductSummaryReportVC.getReport(Unknown Source)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:585)
 at com.sun.faces.el.PropertyResolverImpl.getValue(PropertyResolverImpl.java:79)
 at org.apache.shale.faces.ShalePropertyResolver.getValue(ShalePropertyResolver.java:104)
 at com.sun.faces.el.impl.ArraySuffix.evaluate(ArraySuffix.java:167)
 at com.sun.faces.el.impl.ComplexValue.evaluate(ComplexValue.java:151)
 at com.sun.faces.el.impl.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:243)
 at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:173)
 at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:154)
 at javax.faces.component.UIOutput.getValue(UIOutput.java:147)
 at com.prenet.presentation.components.UIOutputDate.getFormattedDate(Unknown Source)
 at com.prenet.presentation.components.UIOutputDate.encodeBegin(Unknown Source)
 at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:433)
 at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:130)
 at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:701)
 at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:435)
 at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:233)
 at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:701)
 at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:435)
 at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:233)
 at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:701)
 at javax.faces.webapp.UIComponentTag.encodeChildren(UIComponentTag.java:607)
 at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:544)
 at com.sun.faces.taglib.html_basic.PanelGridTag.doEndTag(PanelGridTag.java:460)
 at org.apache.jsp.epinSupport.productSummaryReport_jsp._jspx_meth_h_panelGrid_3(org.apache.jsp.epinSupport.productSummaryReport_jsp:1651)
 at org.apache.jsp.epinSupport.productSummaryReport_jsp._jspx_meth_f_view_0(org.apache.jsp.epinSupport.productSummaryReport_jsp:284)
 at org.apache.jsp.epinSupport.productSummaryReport_jsp._jspService(org.apache.jsp.epinS
   
   
  Why I always got error message: "ERROR org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPCacheManager - Failure, lateral instance will use zombie service
java.io.IOException: Socket is null, cannot connect to localhost:1110"
   
  Many thanks,
   
  Emily
   
   
  
 
  
Aaron Smuts <as...@yahoo.com> wrote:
  You can't run two servers on the same machine
listening to the same port. 

--- emily chen wrote:

> Hi there,
> 
> I set up two tomcat servers in my PC, and deploy
> my web application. 
> 
> I sent a HTTP request to Tomcat1
>
http://lucyl.prenet.net:8080/console/epinSupport/batchSummaryReport.jsf
> to get Batch report, and saw the batch report data
> was saved in local cache C:\Temp\JCS_cache1.
> 
> Then I sent another HTTP request to Tomcat2
>
http://lucyl.prenet.net:8888/console/epinSupport/productSummaryReport.jsf
> to get the product report, and saw the product
> report data was saved in local cache
> C:\Temp\JCS_cache2.
> 
> After that, I check C:\Temp\JCS_cache1 again, and
> found the cache has the batch report and product
> report. but C:\Temp\JCS_cache2 only has product
> report. I think JCS_cache1 and JCS_cache2 should
> have both report data. Any idea why?
> 
> Here is cache.ccf for web applicate in Tomcat1:
> 
>
##################################################################
> # DEFAULT CACHE REGION
> # sets the default aux value for any non
> configured caches
> 
>
#################################################################
> jcs.default=DC,LTCP
> 
>
jcs.default.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
> jcs.default.cacheattributes.MaxObjects=0
> 
>
jcs.default.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
> jcs.default.elementattributes.IsEternal=false
> jcs.default.elementattributes.MaxLifeSeconds=3600
> jcs.default.elementattributes.IdleTime=1800
> jcs.default.elementattributes.IsSpool=true
> jcs.default.elementattributes.IsRemote=true
> jcs.default.elementattributes.IsLateral=true
> 
> 
>
#############################################################
> # AUXILIARY CACHES AVAILABLE
> # Primary Disk Cache -- faster than the rest
> because of memory key storage
> 
>
#############################################################
> 
>
jcs.auxiliary.DC=org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheFactory
> 
>
jcs.auxiliary.DC.attributes=org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheAttributes
> 
>
jcs.auxiliary.DC.attributes.DiskPath=C:\\Temp\\JCS_cache1
> jcs.auxiliary.DC.attributes.MaxPurgatorySize=10000
> jcs.auxiliary.DC.attributes.MaxKeySize=10000
> 
>
jcs.auxiliary.DC.attributes.OptimizeAtRemoveCount=300000
> jcs.auxiliary.DC.attributes.MaxRecycleBinSize=7500
> 
> 
>
###########################################################
> # Lateral TCP Cache - Non-UDP Discovery
> Configuration
> 
>
###########################################################
> 
>
jcs.auxiliary.LTCP=org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPCacheFactory
> 
>
jcs.auxiliary.LTCP.attributes=org.apache.jcs.auxiliary.lateral.socket.tcp.TCPLateralCacheAttributes
> 
>
jcs.auxiliary.LTCP.attributes.TcpServers=localhost:1110
> jcs.auxiliary.LTCP.attributes.TcpListenerPort=1110
> jcs.auxiliary.LTCP.attributes.AllowGet=true
> 
> 
> 
> Here is cache.ccf for web applicate in Tomcat2:
> 
>
##################################################################
> # DEFAULT CACHE REGION
> # sets the default aux value for any non
> configured caches
> 
>
#################################################################
> jcs.default=DC,LTCP
> 
>
jcs.default.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
> jcs.default.cacheattributes.MaxObjects=0
> 
>
jcs.default.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
> jcs.default.elementattributes.IsEternal=false
> jcs.default.elementattributes.MaxLifeSeconds=3600
> jcs.default.elementattributes.IdleTime=1800
> jcs.default.elementattributes.IsSpool=true
> jcs.default.elementattributes.IsRemote=true
> jcs.default.elementattributes.IsLateral=true
> 
> 
>
#############################################################
> # AUXILIARY CACHES AVAILABLE
> # Primary Disk Cache -- faster than the rest
> because of memory key storage
> 
>
#############################################################
> 
>
jcs.auxiliary.DC=org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheFactory
> 
>
jcs.auxiliary.DC.attributes=org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheAttributes
> 
>
jcs.auxiliary.DC.attributes.DiskPath=C:\\Temp\\JCS_cache1
> jcs.auxiliary.DC.attributes.MaxPurgatorySize=10000
> jcs.auxiliary.DC.attributes.MaxKeySize=10000
> 
>
jcs.auxiliary.DC.attributes.OptimizeAtRemoveCount=300000
> jcs.auxiliary.DC.attributes.MaxRecycleBinSize=7500
> 
> 
>
###########################################################
> # Lateral TCP Cache - Non-UDP Discovery
> Configuration
> 
>
###########################################################
> 
>
jcs.auxiliary.LTCP=org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPCacheFactory
> 
>
jcs.auxiliary.LTCP.attributes=org.apache.jcs.auxiliary.lateral.socket.tcp.TCPLateralCacheAttributes
> 
>
jcs.auxiliary.LTCP.attributes.TcpServers=localhost:1110
> jcs.auxiliary.LTCP.attributes.TcpListenerPort=1110
> jcs.auxiliary.LTCP.attributes.AllowGet=true
> 
> Two cache.ccf is the same except DiskPath.
> 
> thanks for your help.
> 
> Emily
> 
> 
> 
> ---------------------------------
> Want to be your own boss? Learn how on Yahoo! Small
> Business. 


---------------------------------------------------------------------
To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jcs-users-help@jakarta.apache.org



 		
---------------------------------
Yahoo! Groups gets better. Check out the new email design. Plus there’s much more to come.  

Re: Lateral TCP Cache error

Posted by Aaron Smuts <as...@yahoo.com>.
You can't run two servers on the same machine
listening to the same port.  

--- emily chen <em...@yahoo.com> wrote:

> Hi there,
>    
>   I set up two tomcat servers in my PC, and deploy
> my web application. 
>    
>   I sent a HTTP request to Tomcat1
>
http://lucyl.prenet.net:8080/console/epinSupport/batchSummaryReport.jsf
> to get Batch report, and saw the batch report data
> was saved in local cache C:\Temp\JCS_cache1.
>    
>   Then I sent another HTTP request to Tomcat2
>
http://lucyl.prenet.net:8888/console/epinSupport/productSummaryReport.jsf
> to get the product report, and saw the product
> report data was saved in local cache
> C:\Temp\JCS_cache2.
>    
>   After that, I check C:\Temp\JCS_cache1 again, and
> found the cache has the batch report and product
> report. but C:\Temp\JCS_cache2 only has product
> report. I think JCS_cache1 and JCS_cache2 should
> have both report data. Any idea why?
>    
>   Here is cache.ccf for web applicate in Tomcat1:
>  
>
##################################################################
>   # DEFAULT CACHE REGION
>   # sets the default aux value for any non
> configured caches
>  
>
#################################################################
>   jcs.default=DC,LTCP
>  
>
jcs.default.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
>   jcs.default.cacheattributes.MaxObjects=0
>  
>
jcs.default.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
>   jcs.default.elementattributes.IsEternal=false
>   jcs.default.elementattributes.MaxLifeSeconds=3600
>   jcs.default.elementattributes.IdleTime=1800
>   jcs.default.elementattributes.IsSpool=true
>   jcs.default.elementattributes.IsRemote=true
>   jcs.default.elementattributes.IsLateral=true
>    
>  
>
#############################################################
>   # AUXILIARY CACHES AVAILABLE
>   # Primary Disk Cache -- faster than the rest
> because of memory key storage
>  
>
#############################################################
>  
>
jcs.auxiliary.DC=org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheFactory
>  
>
jcs.auxiliary.DC.attributes=org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheAttributes
>  
>
jcs.auxiliary.DC.attributes.DiskPath=C:\\Temp\\JCS_cache1
>   jcs.auxiliary.DC.attributes.MaxPurgatorySize=10000
>   jcs.auxiliary.DC.attributes.MaxKeySize=10000
>  
>
jcs.auxiliary.DC.attributes.OptimizeAtRemoveCount=300000
>   jcs.auxiliary.DC.attributes.MaxRecycleBinSize=7500
>    
>  
>
###########################################################
>    # Lateral TCP Cache - Non-UDP Discovery
> Configuration
>   
>
###########################################################
>  
>
jcs.auxiliary.LTCP=org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPCacheFactory
>  
>
jcs.auxiliary.LTCP.attributes=org.apache.jcs.auxiliary.lateral.socket.tcp.TCPLateralCacheAttributes
>  
>
jcs.auxiliary.LTCP.attributes.TcpServers=localhost:1110
>   jcs.auxiliary.LTCP.attributes.TcpListenerPort=1110
>   jcs.auxiliary.LTCP.attributes.AllowGet=true
>      
>    
> 
>   Here is cache.ccf for web applicate in Tomcat2:
>  
>
##################################################################
>   # DEFAULT CACHE REGION
>   # sets the default aux value for any non
> configured caches
>  
>
#################################################################
>   jcs.default=DC,LTCP
>  
>
jcs.default.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
>   jcs.default.cacheattributes.MaxObjects=0
>  
>
jcs.default.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
>   jcs.default.elementattributes.IsEternal=false
>   jcs.default.elementattributes.MaxLifeSeconds=3600
>   jcs.default.elementattributes.IdleTime=1800
>   jcs.default.elementattributes.IsSpool=true
>   jcs.default.elementattributes.IsRemote=true
>   jcs.default.elementattributes.IsLateral=true
>    
>  
>
#############################################################
>   # AUXILIARY CACHES AVAILABLE
>   # Primary Disk Cache -- faster than the rest
> because of memory key storage
>  
>
#############################################################
>  
>
jcs.auxiliary.DC=org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheFactory
>  
>
jcs.auxiliary.DC.attributes=org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheAttributes
>  
>
jcs.auxiliary.DC.attributes.DiskPath=C:\\Temp\\JCS_cache1
>   jcs.auxiliary.DC.attributes.MaxPurgatorySize=10000
>   jcs.auxiliary.DC.attributes.MaxKeySize=10000
>  
>
jcs.auxiliary.DC.attributes.OptimizeAtRemoveCount=300000
>   jcs.auxiliary.DC.attributes.MaxRecycleBinSize=7500
>    
>  
>
###########################################################
>    # Lateral TCP Cache - Non-UDP Discovery
> Configuration
>   
>
###########################################################
>  
>
jcs.auxiliary.LTCP=org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPCacheFactory
>  
>
jcs.auxiliary.LTCP.attributes=org.apache.jcs.auxiliary.lateral.socket.tcp.TCPLateralCacheAttributes
>  
>
jcs.auxiliary.LTCP.attributes.TcpServers=localhost:1110
>   jcs.auxiliary.LTCP.attributes.TcpListenerPort=1110
>   jcs.auxiliary.LTCP.attributes.AllowGet=true
>    
>   Two cache.ccf is the same except DiskPath.
>    
>   thanks for your help.
>    
>   Emily
>    
> 
>  		
> ---------------------------------
> Want to be your own boss? Learn how on  Yahoo! Small
> Business. 


---------------------------------------------------------------------
To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jcs-users-help@jakarta.apache.org