08 2011 档案
摘要:前两天远程重建oracle实例过程中遇到的问题,记录如下: 1、vnc遭遇常见错误 [root@db1 bdump]# vncserver You will require a password to access your desktops. Password: Verify: New 'db1.bts.com:1 (root)' desktop is db1.bts.com:1 Creating default startup script /root/.vnc/xstartup Starting applications specified in /root/.vnc/x
阅读全文
摘要:rss RSS resident set size, the non-swapped physical memory that a task has used (in kiloBytes). (alias rssize, rsz).vsz VSZ virtual memory size of the process in KiB (1024-byte units). Device mappings are currently excluded; this is subject to change. (al...
阅读全文
摘要:System.loadLibary()http://dikar.iteye.com/category/23294http://blog.csdn.net/zhangao0086/article/details/6395002http://cab0605.iteye.com/blog/154701 The parameter to System.loadLibrary() should be the name of the libary, without path, extension or "lib": 1System.loadLibrary("payment&q
阅读全文
摘要:http://javacrazyer.iteye.com/blog/721393http://dynamiclu.iteye.com/blog/867226
阅读全文
摘要:Look at this snap:public static String valueOf(boolean value) { return value ? "true" : "false"; // //} What is "// //" mean ?It's used by Eclipse to indicate that a string doesn't need to be translated, probably becau
阅读全文
摘要:http://slurp.doc.ic.ac.uk/pubs/observing/linking.htmlhttp://blog.csdn.net/smilingleo?viewmode=list
阅读全文
摘要:The problem is that your jsr's into the finally block occur from places that have a different number ofentries on the stack, and the verifier doesn't support that.Either don't implement your finally with a jsr (inline the content directly), or clean up your stack prior tothe jsr so it
阅读全文
摘要:http://leepoint.net/notes-java/data/strings/40regular_expressions/25sum-regex.htmlhttp://lavasoft.blog.51cto.com/62575/17932http://www.icodeguru.com/3/1423.htmlhttp://kenwublog.com/docs/java6-jvm-options-chinese-edition.htm[This text is taken directly from the Java API documentation]ConstructMatches
阅读全文
摘要:This document provides information on typical command-line options and environment variables that can affect the performance characteristics of the Java HotSpot Virtual Machine. Unless otherwise noted, all information in this document pertains to both the Java HotSpot Client VM and the Java HotSpot
阅读全文
摘要:http://www.ibm.com/developerworks/cn/java/j-lo-javacore/index.htmlhttp://www.slf4j.org/extensions.html#javaagenthttp://mchr3k.github.com/org.intrace/http://kenai.com/projects/btracehttp://q-redux.blogspot.com/2011/01/inspecting-hotspot-jvm-options.htmlhttp://jensor.sourceforge.net/http://www.anyang-
阅读全文
摘要:引言http://www.oschina.net/p/becl/similar_projects?lang=19&sort=view&p=13对于大型 java 应用程序来说,再精细的测试都难以堵住所有的漏洞,即便我们在测试阶段进行了大量卓有成效的工作,很多问题还是会在生产环境下暴露出来,并且很难在测试环境中进行重现。JVM 能够记录下问题发生时系统的运行状态并将其存储在转储(dump)文件中,从而为我们分析和诊断问题提供了重要的依据。常见的转储文件包括 Java Dump, Heap dump 和 System dump。这里我们主要介绍 Java dump 在 JVM 故障
阅读全文
摘要:转载请注明出处 http://jjs-love.iteye.com IBM Pattern Modeling and Analysis Tool for Java Garbage Collector ga25.zip javadump IBM Thread and Monitor Dump Analyzer for Java jca28.zip HeapAnalyzer ha26 一种图形工具,用于发现可能的 Java 堆泄漏 javacore() 要用ThreadAnalyzer (suppport assinstant)查看 ga(IBM Pattern Modeling and Anal
阅读全文
摘要:/etc/init.d/iptables stop (停止防火墙) 或 iptables -F (清空防火墙规则,拆除防火墙) linux 防火墙配置命令 1) 永久性生效,重启后不会复原 开启: chkconfig iptables on 关闭: chkconfig iptables off 2) 即时生效,重启后复原 开启: service iptables start...
阅读全文
摘要:http://os.51cto.com/art/201006/207532.htmhttp://linux.vbird.org/linux_basic/0440processcontrol.phphttp://os.51cto.com/art/201001/176495.htm
阅读全文
摘要:java反编译工具jad 1.5.8g,可以反编译jdk 1.5,jdk 1.6 反编译工具jad简单用法 以下假设jad.exe在c:\java目录下 一、基本用法 Usage:jad[option(s)]<filename(s)> 直接输入类文件名,且支持通配符,如下所示。 c:\java\>jadexample1.class c:\java\>jad*.class 结果是将example1.class反编译为example1.jad。将example1.jad改为example1.java即得源文件。 二、Option-o 不提示,...
阅读全文
摘要:Unable to install breakpoint in due to missing line number 不能调试JavaBean! 在eclipse中不能调试,总是报 错:“Unable to install breakpoint due to missing line number attributes. Modify compiler options to generate line number attributes” 弄了好半天 也没弄出来,最后google了一下,总算解决了。原因是:ANT编译的class Eclipse不认,因为eclipse也会...
阅读全文
摘要:1.关于bin目录和obj目录 Bin目录用来保存项目生成后程序集,它有Debug和Release两个版本,分别对应的文件夹为bin/Debug和bin/Release,这个文件夹是默认的输出路径,我们可以通过:项目属性—>配置属性—>输出路径来修改。 obj目录是用来保存每个模块的编译结果,在.NET中,编译是分模块进行的,编译整个完成后会合并为一个.DLL或.EXE保存到bin目录 下。因为每次编译时默认都是采用增量编译,即只重新编译改变了的模块,obj保存每个模块的编译结果,用来加快编译速度。是否采用增量编译,可以通过:项 目属性—>配置属性—>高级—>增量
阅读全文
摘要:今天在Java中字节码的格式的时候,发现method_info中的access_flags中竟然定了ACC_BRIDGE的值。网上搜了一下,大概理解它的意思了,先记之。 首先是在什么情况下会生成bridge方法(2): bridge method may be created by the compiler when extending a parameterized type whose methods have parameterized arguments. 这是在网上找到的有人贴出来的一段话,但是感觉这段话说的并不是很明白。首先bridge方式是由编译器产生的,因而在源代码中也没有br
阅读全文
摘要:翻看以前的笔记,看到一个特殊的java文件:pacakge-info.java,虽然有记录,但是不全,就尝试着追踪一下该问题, 分享一下流水账式的结果。 首先,它不能随便被创建。在Eclipse中, package-info文件不能随便被创建,会报“Type name is notvalid”错误,类名无效,Java变量定义规范是:字母、数字、下划线,还有那个不怎么常用的$符号(顺带说下,Java是支持中文名称的变量,习惯挑战的同学可以尝试下,分享一下这方面的经验),这个中划线可不再之列,那怎么创建这个文件呢? 很简单,用记事本创建一个,然后拷贝进去再改一下就成了,更直接的办法就是从别的项目.
阅读全文
摘要:在向导的最后一页的Extra JavaDoc Options 里填上参数即可 例如项目是UTF-8编码,则参数为:-encoding UTF-8 -charset UTF-8 当然了,如果是GBK,就改成GBK吧。
阅读全文
摘要:最近一直在研究xml解析问题,总结了一点小知识,就写下来吧! dom解析时,会根据xml文件头的内容网上下载DTD文档,很烦人,速度慢不说,网络如果断了,程序也无法进行了。查了半天资料,终于知道如何解决了。以下为解决方案: 解决方案一: DocumentBuilderFactory builder = DocumentBuilderFactory.newInstance(); builder.setFeature("http://apache.org/xml/features/nonvalidating/load-external-dtd",false);// 解决方案二:
阅读全文
摘要:最近分析源代码时,eclipse总是出错,显示org.eclipse.core.runtime.CoreException,解决方法:在 builderpath点击 add external jars,导入 org.eclipse.core.runtime_3.2.0.v20060603.jar,org.eclipse.equinox.common_3.2.0.v20060603.jar 两个jar包,这两个jar包都封装了org/eclipse/core/runtime包
阅读全文
摘要:Your First Plug-in Developing the Eclipse "Hello World" plug-in Summary The traditional Hello World program doesn't do that much, but it can be invaluable when exploring a new development environment. In this article we'll develop the Eclipse Hello World plug-in and show you how to
阅读全文
摘要:说到GC,首先要对Java 的内存模型有所了解。Java 的内存模型各个代的默认排列有如下图(适用JDK1.4.* 到 JDK6):图片看这个:http://dl.iteye.com/upload/attachment/148685/089c5f6b-6e67-3782-99d4-cef9ec353694.gifJava 的内存模型分为Young(年轻代) Tenured(终身代) Perm(永久代) 更多关于内存模型的文章看这里:图解JVM在内存中申请对象及垃圾回收流程 :http://longdick.iteye.com/blog/468368图解JVM内存模型 http://longdi
阅读全文
摘要:作为Java程序员来说,最痛苦的事情莫过于可以选择的范围太广,可以读的书太多,往往容易无所适从。我想就我自己读过的技术书籍中挑选出来一些,按照学习的先后顺序,推荐给大家,特别是那些想不断提高自己技术水平的Java程序员们。 在这份推荐阅读书籍的名单中,我没有列举流行的软件框架类学习书籍,例如Struts ,Hibernate ,Spring 之类,也没有列举AJAX 方面的书籍。是因为这类书籍容易过时,而上述的大半书籍的生命周期都足够长,值得你去购买和收藏。 Java编程入门类 对于没有Java编程经验的程序员要入门,随便读什么入门书籍都一样,这个阶段需要你快速的掌握Java基础语法和基本用.
阅读全文
摘要:I downloaded the WSUS API Samples and Tools and I am confused about some things. The code in the sample applications relies on adding a reference to microsoft.updateservices.administration (the .dll with the same name is found in C:\Program Files\Update Services\service\bin\). But the Windows Update
阅读全文
摘要:https://www.ibm.com/developerworks/ibm/library/it-haggar_bytecode/
阅读全文