JAVA
共 167 篇文章
基于Java的操作系统发展史
转载自:http://blog.csdn.net/fasttalk/archive/2005/02/08/284637.aspx *************************************** *********第一个纯Java操作系统********** *************************************** 纯Java操作系统SavaJe已经得到广泛支持与商业应用 2005年 02月05日 贝尔实验室发明的SavaJe OS是一个纯Java操作系统,支持J2SE,已经得到强大的商业支持,LG已经采用了SavaJe做为其3G手机 SavaJe OS,…
2010-07-08 00:57 · JAVA
Google MapReduce/GFS/BigTable三大技术的论文中译版链接
转载自:http://dickensi.blog.163.com/blog/static/139566689201028103254591/ Google 的三大核心技术 MapReduce 、 GFS 和 BigTable 的中文译文 MapReduce : http://blog.csdn.net/active1001/archive/2007/07/02/1675920.aspx GFS: http://blog.csdn.net/xuleicsu/archive/2005/11/10/526386.aspx BigTale: http://blog.csdn.net/accesine…
2010-06-04 11:39 · JAVA
JAVA crash FrameType Description
最近一直遇到jboss crash问题。先简单总结下crash生成的日志里的FrameType Description FrameType Description : C: Native C frame j: Interpreted Java frame V: VMframe v: VMgenerated stub frame J: Other frame types, including compiled Java frames
2010-05-11 17:16 · JAVA
JBoss ShutdownLogs
载自:http://community.jboss.org/wiki/ShutdownLogs 经常会遇到jboss被Shutdown了 但是不知道是为什么,看下log就明白很多了。 Log output when stopping JBossAS (since JBossAS 4.0.4GA) CTRL-C 2006-10-12 11:16:45,089 INFO [org.jboss.system.server.Server] Runtime shutdown hook called, forceHalt: true 2006-10-12 11:16:45,089 INFO [org.j…
2010-05-05 13:12 · JAVA
Remote JMX Exceptions
转载自:http://marxsoftware.blogspot.com/2008/06/remote-jmx-exceptions.html(需要fanqiang) Perhaps the most difficult aspect of getting a freshly written JSR-160 ( Remote JMX ) compliant application working is ensuring a proper JMXServiceURL . In this blog entry, I cover some of the most common JMXService…
2010-05-02 14:22 · JAVA
jconsole remote connection
-Djava.awt.headless=true -Dcom.sun.management.jmxremote.port=1090 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.password.file=$BASE_HOME/conf/jmxremote.password (当认证为true时的密码文件) -Djava.rmi.server.hostname=172.30.64.128"
2010-04-29 18:58 · JAVA
Making a JMX connection with a timeout
转载自:http://weblogs.java.net/blog/2007/05/23/making-jmx-connection-timeout One question I encounter frequently about the JMX Remote API is how to reduce the time taken to notice that a remote machine is dead when making a connection to it. The default timeout is typically a couple of minutes! Here's…
2010-04-29 13:05 · JAVA
Scalable NIO Servers
Scalable NIO Servers - Part 1 - Performance http://www.znetdevelopment.com/blogs/2009/04/07/scalable-nio-servers-part-1-performance/ Scalable NIO Servers - Part 2 - Memory http://www.znetdevelopment.com/blogs/2009/04/09/scalable-nio-servers-part-2-memory/ Scalable NIO Servers - Part 3 - Features ht…
2010-04-26 00:15 · JAVA
设置第三方jar包的debug
总是会遇到调试第三方jar包的问题,debug也好,打log也好都是一种方式,当然看第三方的jar包打debug日志是最好的,我不想为第三方jar配置一个log4J的xml,所以就在程序里实现下配置,这个很简单完全依赖log4J的加载方式,可以参见我上篇文章里。 补充下直接设置文件的 URL url = Thread.currentThread().getContextClassLoader().getResource("log4j.xml"); DOMConfigurator.configure(url); 好废话不说了。贴代码了。 Properties properties = new …
2010-04-25 12:51 · JAVA
logback status messages
项目中使用了slf4j + logback 在测试环境是正常的,结果在生产环境就不能按照预想打出log。 生产环境debug是不可能的,再说也不好debug。查了下logback的官方,发现有个功能很强大,可以打印出logback的状态信息,例如初始化信息,可以帮助你诊断。 以下信息摘自:http://logback.qos.ch/manual/configuration.html Automatic printing of status messages in case of warning or errors If warning or errors occur during the p…
2010-04-22 13:39 · JAVA
Java Logging Facade
经常使用的java 日志门面选择日志框架的一个流程总结下: 首先是 Apache Commons Logging 摘录自 http://commons.apache.org/logging/guide.html There are two base abstractions used by JCL: Log (the basic logger) and LogFactory (which knows how to create Log instances). Specifying a particular Log implementation is very useful (whether …
2010-04-19 18:53 · JAVA
jarfinder
http://www.jarfinder.com/index.php 依据这个网站可以通过class找到所在jar包 同时也可以依据jar包看class。 以前找到了一个,但是被和谐。现在再记录下,非常适合用maven做项目的人保存。 补充一个网站,同事撒迦同学推荐的 http://www.docjar.com/ 又找到一个好的网站 http://www.findjar.com/index.x
2010-04-19 09:24 · JAVA
离线分析java内存
如题,我这里简单说下我现在离线分析java内存的方式,所谓离线,就是需要dump出正在运行的java系统中的一些运行时堆栈数据,然后拿到线下来分析,分析可以包括内存,线程,GC等等,同时不会对正在运行的生产环境的机器造成很大的影响,对应着离线分析,当然是在线分析了,这个我在后面会尝试下,因为离线分析有些场景还是模拟不出来,需要借助LR来模拟压力,查看在线的java程序运行情况了。 首先一个简单的问题,如何dump出java运行时堆栈,这个SUN就提供了很好的工具,位于JAVA_HOME/bin目录下的jmap(java memory map之意),如果需要dump出当前运行的java进程的堆…
2010-04-14 10:29 · JAVA
Create Java heapdumps with the help of core dumps
转载自:http://devops-abyss.blogspot.com/2010/03/create-java-heapdumps-with-help-of-core.html Hi, for some time I had the problem, that taking Java heap dumps with jmap took too long. When one of my tomcats crashed by an OutOfMemoryException, I had no time to do a heap dump because it took some hours a…
2010-04-13 21:38 · JAVA
Java HotSpot VM Options
记录下 Java HotSpot VM Options http://java.sun.com/javase/technologies/hotspot/vmoptions.jsp Java Performance Documentation http://java.sun.com/docs/performance/
2010-04-13 19:48 · JAVA
java stack size
摘录自 http://bugs.sun.com/bugdatabase/view_bug.do;jsessionid=f621bd69b8b1a1425b9a88233de3?bug_id=4765019 the default stack size is 1 MB if not specified with -Xss and this result in calculation of _os_thread_limit be around 1800 (= (2GB - 200 MB ) / 1MB. After hit the limit, jvm code begins to try to…
2010-04-13 18:40 · JAVA
jconsole开启debug
经常用jconsole连接远程机器,错误很难看出,原来jconsole自身有个debug模式的,真汗一直不知道, 好了现在知道了 很简单 就是跟一个选项而已 jconsole -debug
2010-04-09 17:54 · JAVA
ORACLE thin oci对比
又遇oracle的thin和oci问题,这个问题困扰了很久,到底有什么区别呢,查了很多资料终于有些眉目了,还是官方的资料好啊。(不知道 oci和thin的请看我之前的一个转帖) 首先第一个问题OCI 和 THIN 谁快, 这个官方有说,同时也有非官方的人做过测试。来看下结论。 Thin Driver Can the Thin JDBC Driver be used to develop Java applications? Yes, the thin JDBC Driver can be used to develop both Java applets and Java applicati…
2010-04-06 14:12 · JAVA
Class Loader Problem Determination
摘录自WebSphere.com JVM classloader “–verbose” and “-verboseJNI” JVM options Problem Determination – Native Libraries JVM throws an UnsatisfiedLinkError indicating the native library could not be found Verify the native library is in the search path Verify whether the application invokes the loadLibra…
2010-04-05 22:30 · JAVA
Thread lifecycle
摘选自《JAVA in a Nutshell》 A thread can be in one of six states. In Java 5.0, these states are represented by the THRead.State enumerated type, and the state of a thread can be queried with the getState( ) method. A listing of the Thread.State constants provides a good overview of the lifecycle of a t…
2010-04-05 16:30 · JAVA