jakarta-jcs-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Smuts <asm...@yahoo.com>
Subject Re: Lateral TCP Cache error
Date Mon, 26 Jun 2006 18:56:54 GMT
You can't run two servers on the same machine
listening to the same port.  

--- emily chen <emilychen_2002@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


Mime
View raw message