`
hbhscht
  • 浏览: 5970 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表
现在大型的电子商务系统,在数据库层面大都采用读写分离技术,就是一个Master数据库,多个Slave数据库。Master库负责数据更新和实时数据查询,Slave库当然负责非实时数据查询。因为在实际的应用中,数据库都是读多写少(读取数据的频率高,更新数据的频率相对较少),而读取数据通常耗时比较长,占用数据库服务器的CPU较多,从而影响用户体验。我们通常的做法就是把查询从主库中抽取出来,采用多个从库,使用负载均衡,减轻每个从库的查询压力。   采用读写分离技术的目标:有效减轻Master库的压力,又可以把用户查询数据的请求分发到不同的Slave库,从而保证系统的健壮性。我们看下采用读写分离的背景。 ...
(1)较好的解决办法: 在Weblogic启动参数里添加 “-   Djava.security.egd=file:/dev/./urandom” (/dev/urandom 无法启动) (2) 修改Linux上Weblogic使用的jdk $JAVA_HOME/jre/lib/security/java.security 文件   将securerandom.source=file:/dev/urandom 修改为   securerandom.source=file:/dev/./urandom 再就是,weblogic每个server 的监听地址一定要配制上,否则也是变
在开发项目过程中,本地调试没问题,但到了linux的服务确出现了java.io.IOException: Too many open files,在解决这个问题的时候: 第一:我们要设置一下linux服务器的句柄; 文件打开的最大数为: 使用命令:vi /etc/rc.local #!/bin/sh # # This script will be executed *after* all the other init scripts. # You can put your own initialization stuff in here if you don't # want to do t ...
部署带有hibernate的程序可能会含有JAR包冲突,因为hibernate中也含有这个包 具体作法如下: 防止jar包冲突,将兼容性jar配置文件copy [weblogic@computer ~]$  cd   /home/weblogic/Oracle/Middleware/modules 备份原来的jar包:     [weblogic@computer ~]$  mv javax.persistence_1.0.0.0_1-0-2.jar javax.persistence_1.0.0.0_1-0-2.jar.bak 拷贝兼容的jar包:     [weblogic@comput ...
weblogic10.3.6版本的weblogic.xml文件配制为完成集群: <?xml version='1.0' encoding='UTF-8'?> <weblogic-web-app xmlns="http://xmlns.oracle.com/weblogic/weblogic-web-app" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/weblogic/webl ...
var addWin=null; function showAddWin(){ addWin = new Ext.Window({ title:"增加框架内容", width:300, height:230, closable:true, closeAction : 'hide', items:[addForm] }); addWin.show(); } 在练习Ext的时候,第一次打开窗口成功!第二次打开窗口失败的原因,是有一个属性没有设置: closeAction : 'hide',这个属性没有设置!
1、web.xml配制文件 <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation=& ...
Global site tag (gtag.js) - Google Analytics