`
qqdwll
  • 浏览: 131375 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论
文章列表
原文地址: http://www.ibm.com/developerworks/library/j-leaks/ Troubleshooting Memory Leaks If your application's execution time becomes longer and longer, or if the operating system seems to be performing slower and slower, this could be an indication of a memory leak. In other words, virtual memory is be ...
原文地址: http://www.ibm.com/developerworks/library/j-leaks/ Handling memory leaks in Java programsFind out when memory leaks are a concern and how to prevent them Jim Patrick (patrickj@us.ibm.com), Advisory Programmer, IBM Pervasive Computing Jim Patrick is an Advisory Programmer in IBM's Pervasive C ...
There will be times when you will want to define a class member that will be used independently of any object of that class. Normally a class member must be accessed only in conjunction with an object of its class. However, it is possible to create a member that can be used by itself, without referen ...
http://blog.csdn.net/zkdemon/archive/2008/01/14/2043503.aspx   java泛型详解 收藏 泛型(Generic type 或者generics)是对 Java 语言的类型系统的一种扩展,以支持创建可以按类型进行参数化的类。可以把类型参数看作是使用参数化类型时指定的类型的一个占位符,就像方法的形式参数是运行时传递的值的占位符一样。 可以在集合框架(Collection framework)中看到泛型的动机。例如,Map类允许您向一个Map添加任意类的对象,即使最常见的情况是在给定映射(map)中保存某个特定类型(比如String)的对 ...
版权声明:本文可以自由转载,转载时请务必以超链接形式标明文章原始出处和作者信息及本声明 作者:langm 原文:http://www.matrix.org.cn/resource/article/44/44056_NoClassDefDoundErr.html 在读这篇文章之前,你最好了解一下Java的Exception机制。 也许你在开发的过程中经常地见到ClassNotFoundException和NoClassDefFoundErr这两个异常,每每看到之后,都会一概而论的是类没有找到,但有些时候见到他们的时候又有些疑惑(至少我是这样),为什么Java要用两个异常来表示类定义没有找到那? ...

Ant OutOfMemory

    博客分类:
  • Java
I ran across a little tip tonight I thought I should share. Trying to perform a large XSLT tranform with Ant kept giving me the following error: Out of memory. Increase Heap Size. This is a Java error indicating that the virtual machine is out of memory. So now I know what the problem is, what next ...

XML

    博客分类:
  • Java
XML 处理实践 一: DOM解析 1. 把XML文挡以String读出 File docFile = new File( fileName); //FileUtils. commons-io-1.4.jar String result = FileUtils.readFileToString(new File(fileName), UTF_8); 2. 把String写出到XML文挡 File dest = new File (fileName); String contens = contents; FileUtils.writeStringToFile(dest, c ...
package com.util; import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.util.ArrayList; import jav ...
Qusay H. MahmoudJanuary 2002   The Java Remote Method Invocation (RMI) mechanism and the Common Object Request Broker Architecture (CORBA) are the two most important and widely used distributed object systems. Each system has its own features and shortcomings. Both are being used in the industry f ...
  最近运行程序,老是遇到内存溢出的问题,Out of Memory(系统内存不足)的异常。仔细查资料,好好学习了一下虚拟机的几只,才知道,这是因为Java虚拟机默认分配的内存只有64M,如果应用的比较大,超出了64M,Java虚拟机就会抛出OutOfMemoryError,并停止运行。所以,如果我们要运行大程序,就必须添加内存使用命令-Xms(最小使用内存) -Xmx(最大使用内存)。           一般在开发有,我们有如下几种可能用到的地方。           1.单独的.class           java -Xms64m -Xmx256m Test           ...
Global site tag (gtag.js) - Google Analytics