[JBoss Cache: Core Edition] - Re: ClusteredCacheLoader
by lovelyliatroim
Config is like so
| <server>
|
|
| <!-- ==================================================================== -->
| <!-- NON PERSISTENT CACHE CONFIG -->
| <!-- ==================================================================== -->
|
| <mbean code="org.jboss.cache.jmx.CacheJmxWrapper"
| name="jboss.cache:service=CMDSNonPersistentCache">
|
| <depends>jboss:service=Naming</depends>
| <depends>jboss:service=TransactionManager</depends>
|
| <!--
| Configure the TransactionManager
|
| <attribute name="TransactionManagerLookupClass">org.jboss.cache.transaction.GenericTransactionManagerLookup
| </attribute>
| -->
|
|
|
| <!--
| Node locking level : SERIALIZABLE
| REPEATABLE_READ (default)
| READ_COMMITTED
| READ_UNCOMMITTED
| NONE
| -->
| <attribute name="IsolationLevel">REPEATABLE_READ</attribute>
|
| <!--
| Valid modes are LOCAL
| REPL_ASYNC
| REPL_SYNC
| INVALIDATION_ASYNC
| INVALIDATION_SYNC
| -->
| <attribute name="CacheMode">REPL_ASYNC</attribute>
|
| <!-- Name of cluster. Needs to be the same for all clusters, in order
| to find each other
| -->
| <attribute name="ClusterName">CMDS-Cluster</attribute>
|
| <!-- JGroups protocol stack properties NOT NEEDED since CacheMode is LOCAL -->
|
| <!--
| The max amount of time (in milliseconds) we wait until the
| state (ie. the contents of the cache) are retrieved from
| existing members in a clustered environment
| -->
| <attribute name="StateRetrievalTimeout">20000</attribute>
|
| <!--
| Number of milliseconds to wait until all responses for a
| synchronous call have been received.
| -->
| <attribute name="SyncReplTimeout">20000</attribute>
|
| <attribute name="FetchInMemoryState">false</attribute>
|
|
|
| <!-- Max number of milliseconds to wait for a lock acquisition -->
| <attribute name="LockAcquisitionTimeout">15000</attribute>
|
| <attribute name="ClusterConfig">
| <config>
| <UDP mcast_addr="228.10.10.10"
| mcast_port="45588"
| tos="8"
| ucast_recv_buf_size="20000000"
| ucast_send_buf_size="640000"
| mcast_recv_buf_size="25000000"
| mcast_send_buf_size="640000"
| loopback="false"
| discard_incompatible_packets="true"
| max_bundle_size="64000"
| max_bundle_timeout="30"
| use_incoming_packet_handler="true"
| ip_ttl="2"
| enable_bundling="false"
| enable_diagnostics="true"
|
| use_concurrent_stack="true"
|
| thread_naming_pattern="pl"
|
| thread_pool.enabled="true"
| thread_pool.min_threads="1"
| thread_pool.max_threads="25"
| thread_pool.keep_alive_time="30000"
| thread_pool.queue_enabled="true"
| thread_pool.queue_max_size="10"
| thread_pool.rejection_policy="Run"
|
| oob_thread_pool.enabled="true"
| oob_thread_pool.min_threads="1"
| oob_thread_pool.max_threads="4"
| oob_thread_pool.keep_alive_time="10000"
| oob_thread_pool.queue_enabled="true"
| oob_thread_pool.queue_max_size="10"
| oob_thread_pool.rejection_policy="Run"/>
|
| <PING timeout="2000" num_initial_members="3"/>
| <MERGE2 max_interval="30000" min_interval="10000"/>
| <FD_SOCK/>
| <FD timeout="10000" max_tries="5" shun="true"/>
| <VERIFY_SUSPECT timeout="1500"/>
| <pbcast.NAKACK max_xmit_size="60000"
| use_mcast_xmit="false" gc_lag="0"
| retransmit_timeout="300,600,1200,2400,4800"
| discard_delivered_msgs="true"/>
| <UNICAST timeout="300,600,1200,2400,3600"/>
| <pbcast.STABLE stability_delay="1000" desired_avg_gossip="50000"
| max_bytes="400000"/>
| <pbcast.GMS print_local_addr="true" join_timeout="5000"
| join_retry_timeout="2000" shun="false"
| view_bundling="true" view_ack_collection_timeout="5000"/>
| <FRAG2 frag_size="60000"/>
| <pbcast.STREAMING_STATE_TRANSFER use_reading_thread="true"/>
| <!-- <pbcast.STATE_TRANSFER/> -->
| <pbcast.FLUSH timeout="0"/>
| </config>
| </attribute>
|
| <!-- Specific eviction policy configurations. This is LRU -->
| <attribute name="EvictionPolicyConfig">
| <config>
| <attribute name="wakeUpIntervalSeconds">5</attribute>
| <attribute name="eventQueueSize">200000</attribute>
| <attribute name="policyClass">org.jboss.cache.eviction.LRUPolicy</attribute>
|
| <region name="/_default_">
| <attribute name="maxNodes">500000</attribute>
| <attribute name="timeToLiveSeconds">900</attribute>
| </region>
|
| <region name="/ricIds" policyClass="org.jboss.cache.eviction.ExpirationPolicy">
| <attribute name="maxNodes">50000</attribute>
| </region>
| <region name="/quotes" policyClass="org.jboss.cache.eviction.ExpirationPolicy">
| <attribute name="maxNodes">50000</attribute>
| </region>
|
| <!--There are other regions configured but have removed them for simplicity -->
|
|
| </config>
| </attribute>
|
|
| <attribute name="CacheLoaderConfig" replace="false">
| <config>
| <cacheloader>
| <class>org.jboss.cache.loader.ClusteredCacheLoader</class>
| <properties>
| timeout=15000
| </properties>
| </cacheloader>
| </config>
| </attribute>
|
| </mbean>
|
| </server>
|
/ricIds = /b/c/d/e (Given in example)
/quotes = /a/b.
anonymous wrote :
|
| Do you see this with other cache loaders as well (e.g., FileCacheLoader)?
|
|
When i get the time i will try it out and let you know how it goes.
What i do see alot of entries on the log file is for this
anonymous wrote :
| 11:07:26 [EvictionTimer-0] WARN eviction.ExpirationAlgorithm - Unable to remove nodes to reduce region size below 50000. Set expiration for nodes in this region
Now why would i get this warning when the cache is practically empty?? Might and mightnt be related!!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4151685#4151685
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4151685
18 years, 1 month
[Tomcat, HTTPD, Servlets & JSP] - Re: Problem in starting jboss
by narendrakchoudhary
i just have execute the run.sh script .
I have set the JBOSS_HOME and JAVA_HOME .
./run.sh
================================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /home/gpmstesting/jboss-3.2.3
JAVA: /home/gpmstesting/jdk1.3.1_20//bin/java
JAVA Classpath :/home/gpmstesting/jdk1.3.1_20/
JAVA_OPTS: -server -Dprogram.name=run.sh
CLASSPATH: /home/gpmstesting/jboss-3.2.3/bin/run.jar:/home/gpmstesting/jdk1.3.1_20//lib/tools.jar
================================================================================
14:07:54,103 INFO [Server] Starting JBoss (MX MicroKernel)...
14:07:54,104 INFO [Server] Release ID: JBoss [WonderLand] 3.2.3 (build: CVSTag=JBoss_3_2_3 date=200311301445)
14:07:54,105 INFO [Server] Home Dir: /home/gpmstesting/jboss-3.2.3
14:07:54,106 INFO [Server] Home URL: file:/home/gpmstesting/jboss-3.2.3/
14:07:54,106 INFO [Server] Library URL: file:/home/gpmstesting/jboss-3.2.3/lib/
14:07:54,107 INFO [Server] Patch URL: null
14:07:54,107 INFO [Server] Server Name: default
14:07:54,108 INFO [Server] Server Home Dir: /home/gpmstesting/jboss-3.2.3/server/default
14:07:54,108 INFO [Server] Server Home URL: file:/home/gpmstesting/jboss-3.2.3/server/default/
14:07:54,109 INFO [Server] Server Data Dir: /home/gpmstesting/jboss-3.2.3/server/default/data
14:07:54,109 INFO [Server] Server Temp Dir: /home/gpmstesting/jboss-3.2.3/server/default/tmp
14:07:54,110 INFO [Server] Server Config URL: file:/home/gpmstesting/jboss-3.2.3/server/default/conf/
14:07:54,110 INFO [Server] Server Library URL: file:/home/gpmstesting/jboss-3.2.3/server/default/lib/
14:07:54,111 INFO [Server] Root Deployment Filename: jboss-service.xml
14:07:54,114 INFO [Server] Starting General Purpose Architecture (GPA)...
14:07:54,307 INFO [ServerInfo] Java version: 1.3.1_20,Sun Microsystems Inc.
14:07:54,308 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.3.1_20-b03,Sun Microsystems Inc.
14:07:54,308 INFO [ServerInfo] OS-System: Linux 2.6.9-34.ELsmp,i386
14:07:54,343 INFO [ServiceController] Controller MBean online
14:07:54,433 INFO [MainDeployer] Started jboss.system:service=MainDeployer
14:07:54,509 INFO [MainDeployer] Adding deployer: org.jboss.deployment.JARDeployer@7ec107
14:07:54,510 INFO [JARDeployer] Started jboss.system:service=JARDeployer
14:07:54,541 INFO [MainDeployer] Adding deployer: org.jboss.deployment.SARDeployer@11d8c1
14:07:54,555 INFO [SARDeployer] Started jboss.system:service=ServiceDeployer
14:07:54,556 INFO [Server] Core system initialized
14:07:54,580 INFO [MainDeployer] Starting deployment of package: file:/home/gpmstesting/jboss-3.2.3/server/default/conf/jboss-service.xml
14:07:54,583 ERROR [MainDeployer] Could not make local copy for file:/home/gpmstesting/jboss-3.2.3/server/default/conf/jboss-service.xml
java.io.IOException: Permission denied
at java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.io.File.checkAndCreate(File.java:1157)
at java.io.File.createTempFile(File.java:1242)
at org.jboss.deployment.MainDeployer.makeLocalCopy(MainDeployer.java:993)
at org.jboss.deployment.MainDeployer.init(MainDeployer.java:674)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:632)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:589)
at java.lang.reflect.Method.invoke(Native Method)
at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy5.deploy(Unknown Source)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:384)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:291)
at org.jboss.Main.boot(Main.java:150)
at org.jboss.Main$1.run(Main.java:395)
at java.lang.Thread.run(Thread.java:479)
14:07:54,742 ERROR [MainDeployer] Could not initialise deloyment: file:/home/gpmstesting/jboss-3.2.3/server/default/conf/jboss-service.xml
org.jboss.deployment.DeploymentException: Failed to find META-INF/jboss-service.xml
at org.jboss.deployment.SARDeployer.parseDocument(SARDeployer.java:499)
at org.jboss.deployment.SARDeployer.init(SARDeployer.java:115)
at org.jboss.deployment.MainDeployer.init(MainDeployer.java:696)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:632)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:589)
at java.lang.reflect.Method.invoke(Native Method)
at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy5.deploy(Unknown Source)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:384)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:291)
at org.jboss.Main.boot(Main.java:150)
at org.jboss.Main$1.run(Main.java:395)
at java.lang.Thread.run(Thread.java:479)
Failed to boot JBoss:
org.jboss.deployment.DeploymentException: Failed to find META-INF/jboss-service.xml
at org.jboss.deployment.SARDeployer.parseDocument(SARDeployer.java:499)
at org.jboss.deployment.SARDeployer.init(SARDeployer.java:115)
at org.jboss.deployment.MainDeployer.init(MainDeployer.java:696)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:632)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:589)
at java.lang.reflect.Method.invoke(Native Method)
at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy5.deploy(Unknown Source)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:384)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:291)
at org.jboss.Main.boot(Main.java:150)
at org.jboss.Main$1.run(Main.java:395)
at java.lang.Thread.run(Thread.java:479)
14:07:54,768 INFO [Server] JBoss SHUTDOWN: Undeploying all packages
14:07:54,770 INFO [Server] Shutting down all services
Shutting down
14:07:54,770 INFO [ServiceController] Stopping 3 services
14:07:54,772 INFO [SARDeployer] Stopping jboss.system:service=ServiceDeployer
14:07:54,772 INFO [MainDeployer] Removing deployer: org.jboss.deployment.SARDeployer@11d8c1
14:07:54,773 INFO [JARDeployer] Stopping jboss.system:service=JARDeployer
14:07:54,773 INFO [MainDeployer] Stopping jboss.system:service=MainDeployer
14:07:54,773 INFO [ServiceController] Stopped 3 services
14:07:54,786 INFO [Server] Shutdown complete
Shutdown complete
Halting VM
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4151684#4151684
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4151684
18 years, 1 month
[JBoss Cache: Core Edition] - Re: Remoting On Existing POJO Channel
by kblanken
Sure. It is the same as in replAsync-service.xml, safe for the loopback and num_initial_members attributes.
<config>
| <!-- UDP: if you have a multihomed machine,
| set the bind_addr attribute to the appropriate NIC IP address -->
| <!-- UDP: On Windows machines, because of the media sense feature
| being broken with multicast (even after disabling media sense)
| set the loopback attribute to true -->
| <UDP mcast_addr="228.1.2.3" mcast_port="48866"
| ip_ttl="64" ip_mcast="true"
| mcast_send_buf_size="150000" mcast_recv_buf_size="80000"
| ucast_send_buf_size="150000" ucast_recv_buf_size="80000"
| loopback="true"/>
| <PING timeout="2000" num_initial_members="2"
| up_thread="false" down_thread="false"/>
| <MERGE2 min_interval="10000" max_interval="20000"/>
| <!-- <FD shun="true" up_thread="true" down_thread="true" />-->
| <FD_SOCK/>
| <VERIFY_SUSPECT timeout="1500"
| up_thread="false" down_thread="false"/>
| <pbcast.NAKACK gc_lag="50" retransmit_timeout="600,1200,2400,4800"
| max_xmit_size="8192" up_thread="false" down_thread="false"/>
| <UNICAST timeout="600,1200,2400" window_size="100" min_threshold="10"
| down_thread="false"/>
| <pbcast.STABLE desired_avg_gossip="20000"
| up_thread="false" down_thread="false"/>
| <pbcast.GMS join_timeout="5000" join_retry_timeout="2000"
| shun="true" print_local_addr="true"/>
| <FC max_credits="2000000" down_thread="false" up_thread="false"
| min_threshold="0.20"/>
| <FRAG frag_size="8192" down_thread="false" up_thread="true"/>
| <pbcast.STATE_TRANSFER up_thread="true" down_thread="true"/>
| </config>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4151671#4151671
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4151671
18 years, 1 month