关于jbosscache的疑惑(weblogic813+JDK1.4)

问题描述

项目最近准备做集群,涉及到缓存企业级数据的问题,方案适用的是jbosscache,服务器为weblogic,jdk为1.4现在遇到的问题是:涉及到多用户并发修改的情况就出现卡死的问题,等很长一段时间才能恢复正常。以下为配置文件,请指教<server><classpathcodebase="./lib"archives="jboss-cache.jar,jgroups.jar"/><mbeancode="org.jboss.cache.TreeCache"name="jboss.cache:service=TreeCache"><depends>jboss:service=Naming</depends><depends>jboss:service=TransactionManager</depends><!--ConfiguretheTransactionManagerDummyTransactionManagerLookupGenericTransactionManagerLookupBatchModeTransactionManagerLookuporg.jboss.cache.GenericTransactionManagerLookup--><attributename="TransactionManagerLookupClass">org.jboss.cache.DummyTransactionManagerLookup</attribute><!--锁定节点隔离级别(ignoredifNodeLockingSchemeattributesettoOPTIMISTICvalue)Isolationlevel:SERIALIZABLEREPEATABLE_READ(default)READ_COMMITTEDREAD_UNCOMMITTEDNONE--><attributename="IsolationLevel">REPEATABLE_READ</attribute><!--节点锁Nodelockingscheme:OPTIMISTIC:lowerperforment,hightcpuPESSIMISTIC(default):hightperforment,butmaybedead-lock--><attributename="NodeLockingScheme">PESSIMISTIC</attribute><!--ThisJIRAwillrestoretheoldbehaviorforthepessimisticlockingusecase.AnewcacheconfigurationflagLockParentForChildInsertRemovewillbeadded.Ifsettofalse,the1.4.0.SP1behaviorofonlyrequiringtheRLwillberestored.Thedefaultvalueoftheflagwillbefalse.<attributename="LockParentForChildInsertRemove">true</attribute>--><!--ValidmodesareLOCALREPL_ASYNCREPL_SYNCINVALIDATION_ASYNCINVALIDATION_SYNC--><attributename="CacheMode">REPL_SYNC</attribute><!--Justusedforasyncrepl:useareplicationqueue--><attributename="UseReplQueue">false</attribute><!--Replicationintervalforreplicationqueue(inms)--><attributename="ReplQueueInterval">0</attribute><!--Maxnumberofelementswhichtriggerreplication--><attributename="ReplQueueMaxElements">0</attribute><!--Nameofcluster.Needstobethesameforallclusters,inordertofindeachother--><attributename="ClusterName">imep1-cluster</attribute><!--JGroupsprotocolstackproperties.CanalsobeaURL,e.g.file:/home/bela/default.xml<attributename="ClusterProperties"></attribute>--><attributename="ClusterConfig"><config><!--UDP:ifyouhaveamultihomedmachine,setthebind_addrattributetotheappropriateNICIPaddress,e.gbind_addr="192.168.0.2"--><!--UDP:OnWindowsmachines,becauseofthemediasensefeaturebeingbrokenwithmulticast(evenafterdisablingmediasense)settheloopbackattributetotrue--><!--ip_ttl="2"loopback="false"bind_addr="10.70.85.91"224.0.0.145588enable_bundling="false"discard_incompatible_packets="false"--><UDPmcast_addr="224.0.0.1"mcast_port="45566"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="false"use_outgoing_packet_handler="false"ip_ttl="2"down_thread="false"up_thread="false"enable_bundling="true"bind_addr="10.70.85.90"/><PINGtimeout="2000"down_thread="false"up_thread="false"num_initial_members="3"/><MERGE2max_interval="30000"down_thread="false"up_thread="false"min_interval="10000"/><FD_SOCKdown_thread="false"up_thread="false"/><FDtimeout="10000"max_tries="5"down_thread="false"up_thread="false"shun="true"/><VERIFY_SUSPECTtimeout="1500"down_thread="false"up_thread="false"/><pbcast.NAKACKmax_xmit_size="60000"use_mcast_xmit="false"gc_lag="0"retransmit_timeout="300,600,1200,2400,4800,8800"down_thread="false"up_thread="false"discard_delivered_msgs="true"/><UNICASTtimeout="30,100,500,1000,4400,6000,8000,12000"down_thread="false"up_thread="false"/><pbcast.STABLEstability_delay="1000"desired_avg_gossip="50000"down_thread="false"up_thread="false"max_bytes="400000"/><VIEW_SYNCavg_send_interval="60000"down_thread="false"up_thread="false"/><pbcast.GMSprint_local_addr="true"join_timeout="3000"down_thread="false"up_thread="false"join_retry_timeout="2000"shun="true"use_flush="true"flush_timeout="5000"view_ack_collection_timeout="7000"view_bundling="true"/><FCmax_credits="2000000"down_thread="false"up_thread="false"min_threshold="0.10"/><!--FRAG2:分块传送协议--><FRAG2frag_size="60000"down_thread="false"up_thread="false"/><!--20000--><!--<pbcast.STREAMING_STATE_TRANSFERdown_thread="false"up_thread="false"use_flush="true"use_reading_thread="true"/>--><pbcast.STATE_TRANSFERdown_thread="false"up_thread="false"/><pbcast.FLUSHdown_thread="false"up_thread="false"/></config></attribute><!--WhetherornottofetchstateonjoiningaclusterNOTEthisusedtobecalledFetchStateOnStartupandhasbeenrenamedtobemoredescriptive.--><attributename="FetchInMemoryState">true</attribute><!--Themaxamountoftime(inmilliseconds)wewaituntiltheinitialstate(ie.thecontentsofthecache)areretrievedfromexistingmembersinaclusteredenvironment--><attributename="InitialStateRetrievalTimeout">95000</attribute><attributename="StateTransferTimeout">95000</attribute><attributename="MethodCallTimeout">95000</attribute><!--Numberofmillisecondstowaituntilallresponsesforasynchronouscallhavebeenreceived.--><attributename="SyncReplTimeout">90000</attribute><!--Maxnumberofmillisecondstowaitforalockacquisition--><attributename="LockAcquisitionTimeout">102000</attribute><!--Nameoftheevictionpolicyclassorg.jboss.cache.aop.eviction.AopLRUPolicy<attributename="EvictionPolicyClass">org.jboss.cache.aop.eviction.AopLRUPolicy</attribute>--><!--驱逐策略:管理jbosscache内存--><attributename="EvictionConfig"><config><attributename="wakeUpIntervalSeconds">10</attribute><!--Thisdefaultsto200000ifnotspecified--><attributename="eventQueueSize">100000</attribute><!--NameoftheDEFAULTevictionpolicyclass.--><attributename="policyClass">org.jboss.cache.eviction.LRUPolicy</attribute><!--Cachewidedefault--><regionname="/_default_"><attributename="maxNodes">8000</attribute><attributename="timeToLiveSeconds">0</attribute><!--<attributename="minTimeToLiveSeconds">150</attribute><attributename="maxAgeSeconds">250</attribute>--></region><!--overridepolicyusedforthisregion--><regionname="/org/jboss/data"policyClass="org.jboss.cache.eviction.LRUPolicy"><attributename="maxNodes">50000</attribute><attributename="minTimeToLiveSeconds">150</attribute><attributename="maxAgeSeconds">250</attribute><attributename="timeToLiveSeconds">0</attribute></region><!--Weexpectalotofeventsforthisregion,sooverridethedefaulteventqueuesize--><regionname="/org/jboss/test/data"eventQueueSize="500000"><attributename="maxNodes">60000</attribute><attributename="minTimeToLiveSeconds">150</attribute><attributename="maxAgeSeconds">250</attribute><attributename="timeToLiveSeconds">0</attribute></region></config></attribute><!--Indicatewhethertouseregionbasedmarshallingornot.Setthistotrueifyouarerunningunderascopedclassloader,e.g.,insideanapplicationserver.Defaultis"false".--><attributename="UseRegionBasedMarshalling">true</attribute><attributename="FetchStateOnStartup">true</attribute></mbean></server>

解决方案

解决方案二:
该回复于2009-08-28 13:37:34被版主删除
解决方案三:
<attributename="CacheMode">REPL_SYNC</attribute>改为异步看看

时间: 2024-08-26 05:06:54

关于jbosscache的疑惑(weblogic813+JDK1.4)的相关文章

jdk1.6环境搭建netbeans的中文乱码

中文|中文乱码 增加支持库联接cd /usr/binln -sf /opt/jdk1.6.0/bin/javacln -sf /opt/jdk1.6.0/jre/bin/java 修改.bashrcexport JAVA_HOME=/opt/jdk1.6.0export JAVA_BIN=/opt/jdk1.6.0/binexport PATH=$PATH; $JAVA_HOME/binexport CLASSPATH=.; $JAVA_HOME/lib/dt.jar; $JAVA_HOME/l

新手学习c++,使用vs的疑惑

问题描述 新手学习c++,使用vs的疑惑 大家好,我是一名刚刚学习c++的新手,语法已经看得还可以了,使用vs2010写程序,但是我发现写出来的程序都是命令提示框,跟我之前使用的vb根本不同,不能直接做出界面,折腾了好久,后来发现vs中有一个工具箱,貌似可以使用控件设计界面,但是又发现这好像是c#的代码,而且看了一下,好像都是用类处理的,作为c++新手的我就蒙掉了. 我就想问是不是学习c++,使用vs就只能是利用mfc做界面,或者是直接调用api制作界面呢?而呢个工具箱好像就是为c#设计而已啊?

double类型结构体对齐的疑惑

问题描述 double类型结构体对齐的疑惑 32bit的cpu,在msvc中如果结构体有double类型,则以8字节对齐,例如 struct test { char ch; double j; }; ch也会占用8个字节,而32bit的cpu会一次性取到8个字节么?难道不是32bit,4个字节? 为什么要以8个字节来对齐呢?谢谢 解决方案 如果编译器为sse优化,那么是按照128bit,也就是8字节对齐的,如果编译器为sse2优化,那么是按照16字节对齐的.http://www.xuebuyua

个人疑惑之——机器学习

问题描述 个人疑惑之--机器学习 本科生适合搞机器学习么?能做到什么样的程度呢?个人觉得数学太不够了,或者有大神带带小弟么?

jdk1.5和jdk1.6对于@override支持的区别

在基类中声明的方法,在继承类中实现的话可以用@Override进行标注.1.5和1.6均正常.但@Override注释在jdk1.5环境下只能用于对继承的类的方法的重写,而不能用于对实现的接口中的方法的实现. public interface StudentVS {  public void saveStudent(Student s); } public class StudentVSImpl implements StudentVS {  @Override  public void sav

ie兼容-关于IE条件语句的一点疑惑

问题描述 关于IE条件语句的一点疑惑 经常在网站头部看到类似于这样的IE条件注释: <!--[if IE 7 ]><html lang=""zh"" id=""ne_wrap"" class=""no-js ie7""><![endif]--> 虽然能够理解该注释语法:在浏览器版本为ie7时,应用该代码,非ie浏览器则只把其当做一条注释而忽略掉.但不太

我将jdk的src源文件放在自己工程下面,为啥每次加载还是jdk1.5里面的.class文件?

问题描述 我将jdk的src源文件放在自己工程下面,为啥每次加载还是jdk1.5里面的.class文件? 我将Class.java直接写在自己工程里面,为啥自己代码引用到的还是jdk1.5里面的.class文件有哥哥姐姐们知道原因的吗,求帮忙解决. 解决方案 在创建项目的时候有可以选择jdk版本的 解决方案二: 你虽然自己写了一个同名的类,但是并没有加载你这个类,jdk自己的类(包名+类名)不会因为你同名就加载你这个..可能我解释的不怎么清楚,类加载机制的知识也还得补..但是大概原理就是这样.

JS异步传递数组Action接受的实现与疑惑

最近开发中遇到了页面传递数组到Action后台List类型,接受到的list对象并不是想象的按照数组元素位置对应的接受,例如数组的0位置插入到list对象的0位置, 而是数组的全部内容全部插入到了list集合的第一位置.经过反复的试验,没有找到很好的解决办法,只能把这种粗糙的实现方式记录下来,以求抛砖引玉望大家能给出更好的实现方式. 这是jsp页面代码:异步提交数组到Action中: <html> <head> <meta http-equiv="Content-T

【总结】Linux RedHat AS3上安装JDK1.4

系统:Linux RedHat AS3 Update3 安装包:j2sdk-1_4_2_05-linux-i586.bin 安装过程: 1.将该文件拷贝到/tmp目录下 ----//注:cp j2sdk-1_4_2_05-linux-i586.bin /tmp 2.然后执行该文件 ----//注: ./j2sdk-1_4_2_05-linux-i586.bin ----//注注意/前面有个点".") 会出现拷贝文件的列表信息,默认地jdk被安装到了/usr/java/j2sdk1.4.