堆大小设置 JVM 中最大堆大小有三方面限制:相关操作系统的数据模型(32-bt还是64-bit)限制;系统的可用虚拟内存限制;系统的可用物理内存限制。32位系统下,一般限制在1.5G~2G;64为操作系统对内存无限制。我在Windows Server 2003 系统,3.5G物理内存,JDK5.0下测试,最大可设置为1478m。 典型设置: java -Xmx3550m -Xms3550m -Xmn2g -Xss128k -Xmx3550m:设置JVM最大可用内存为3550M。 -Xms3550m:设置JVM促使内存为3550m。此值可以设置与-Xmx相同,以避免每次垃圾回收完成后JVM重 ...
<2008-5-14 上午10时56分38秒 CST> <Error> <HTTP> <BEA-101165> <Could not load use r defined filter in web.xml: ServletContext(id=38717494,name=webroot,context-pat h=/webroot) org.apache.struts2.dispatcher.FilterDispatcher. java.lang.ClassNotFoundException: Class bytes found but defineClass( ...
http://www.blogjava.net/Unmi/archive/2007/12/04/165035.html
1, 为什么wait与notify之前必须要加synchronized? 答案其实很简单,也是为了防止等待-通知机制出现race condition 为什么会出现race condition ? 答:对象在被wait之前已经被另一线程notify , 之后的wait 会永久停止,并导致deadlock(死锁) 理想情况: 1, 第一个线程判断该对象是否要wait 2, 第一个线程将对象wait 3, 第二个线程再将对象notify 实际情况 1, 第一个线程判断该对象是否要wait 2, 第二个线程将对象notify 3, 第一个线程将对象wait 为了防止这些情况,才需要在wait ...
1. Exception in thread "main" java.lang.NullPointerException at com.tarena.web.dao.PricingDao.pricingList(PricingDao.java:58) 等号右边 .的左边为空 2. failed.org.hibernate.MappingException: Resource: com/tarena/web/entity.Pricing.hbm.xml not found <mapping resource="com/tarena/web/entity/Pricing.hbm.xml"/> ...
ORA-00000: normal, successful completion Cause: Normal exit. Action: None. ORA-00001: unique constraint (string.string) violated Cause: An UPDATE or INSERT statement attempted to insert a duplicate key. For Trusted Oracle configured in DBMS MAC mode, you may see this message if a duplicate entry e ...
select a.id,a.td from a left join b on a.id=b.id and a.td = (select max(td) from b where b.id=a.id)
select * from internal_eval_result rr,party p,organization org where rr.party_id in (select party_id from internal_eval_result where eval_status_cd = '1'group by party_id having count(*) > 1) and rr.eval_status_cd = '1' and rr.party_id = p.party_id and rr.approve_org_cd = org.org_cd
1、select * from internal_eval_result where party_id in (select party_id from internal_eval_result where eval_status_cd = '1'group by party_id having count(*) > 1) and eval_status_cd = '1' 2、select * from internal_eval_result where party_id in( select party_id from internal_eval_result group by ...
数据库同步 转自cnoug wanghai ========================================= 一、实现数据库复制的前提条件 1、数据库支持高级复制功能 您可以用system身份登录数据库,查看v$option视图,如果其中Advanced replication为TRUE,则支持高级复制功能;否则不支持。 2、数据库初始化参数要求 ①、db_domain = test.com.cn 指明数据库的域名(默认的是WORLD),这里可以用您公司的域名。 ②、global_names = true 它要求数据库链接(database ...