`
bkhh
  • 浏览: 12973 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
文章分类
社区版块
存档分类
最新评论
文章列表
Reinventing the Wheel? CORBA vs. Web Services Aniruddha Gokhale ISIS, Vanderbilt University Nashville, TN 37203 a.gokhale@vanderbilt.edu Bharat Kumar Bell Labs, Lucent Technologies Murray Hill, NJ 07974, USA bharat@lucent.com Arnaud Sahuguet Bell Labs, Lucent Technologies Murray Hill, NJ 07974, U ...
java:comp/env 是一种环境命名上下文 (environment naming context (enc)),是java ee环境中的jndi命名环境,假设当前jndi有一个资源的urn是jdbc/testDB,那么你通过ctx.lookup("jdbc/testDB")是可以找到资源的,如果你通过如下配置在java ee环境做了映射,那么你就可以通过java:comp/env/jdbc/testDB来找到这个资源了。 <resource-ref> <res-ref-name>jdbc/testDS</ ...
uri的语法格式: [scheme:]scheme-specific-part[#fragment]   uri有两种分类方法。   一分为absolute和relative,有指定的schema是absolute uri,否则是relative uri   另一种分为opaque和hierarchical,absolute的uri中,如果schema-specific-part没有以slash(‘/’)开头则为opaque uri,其他都是hierarchical uri   hierarchical uri的语法格式是一个uri的子集,他的格式如下: [scheme:] ...
DTD现在用得已经很少了,但是还是有用得地方,如果用的是外部的DTD时,我们需要在我们的xml文件里面通过publicid或者systemid指向这个dtd资源,尤其在需要做验证的时候非常重要。对外部dtd引用的格式一般有下面几种 # <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook V4.1//EN" "docbook.dtd"> public分两部分,前面是id,后面是能locate到的url,id的格式一般是 prefix//owner-identifier//text-class text ...
Profiling your application (Yourkit)   Install Yourkit Linux ./yjp.sh Windows yjp-12.0.5.exe   Profile your application by Yourkit Plugin IDE   Manual config -agentpath:<profiler directory>\bin\win64(win32)\yjpagent.dll -agentpath:<profiler directory>/bin/linux-x86-64(lin ...
ibm有自己的classloder,wsjar协议是一个ibm专有的协议,而在java标准世界则是jar协议。可恶的wsjar协议还存在一个另外一个问题,就是当资源不存在时,只是单单返回null,而不是抛出一个异常。   ibm后来针对这个问题做了一些修改,加了一个配置,com.ibm.ws.classloader.getInputStream.enableIOException,如果设为true的时候就会抛出异常,而false时还是保持以前那样只是返回null。   更多信息链接到下面链接: http://www-01.ibm.com/support/docview.wss?uid ...
It used to worry me when I found that Linux was using almost all the memory available to a system. However all that worry was for naught. Linux is very good at memory management and making sure it has enough memory to do what it needs to do. You can run out of memory of course, but you are likely in ...
Today my DBA reported that the server she was working on was spitting out “too many open files” errors and no new processes could be started. This is a common problem with DB servers with heavy transactions. In my environment there are 6 DB instances running on the server. No quite the optimized s ...
  有时候我们要测试远程主机上的某个端口是否开启,无需使用太复杂的工作,windows下就自带了工具,那就是telnet。    怎么检测呢,按下面的步骤来:   1、安装telnet。我的win7下就没有telnet,在cmd下输入telnet提示没有该命令。于是我们进入控制面板---->程序---->打开或关闭windows功能。然后等一段时间,在出来的对话框把telnet客户端和telnet服务器勾选上,其他的不用管,然后点击确定。这样就安装好了telnet组件了。   2、 下面开始测试某个端口是否开启,比如我测的是192.168.3.42的2121这个端口。在cmd下输入 ...
Home » Blogs » mvohra's blog Understanding JCA, Implementation and Deployment (Weblogic) <!-- main-content-block --> <!-- <span class="submitted">By Manpreet Vohra (<a href="/users/mvohra" title="View user profile.">mvohra</a>) on 15 J ...
配置挂起检测策略 缺省情况下,WebSphere Application Server 的挂起检测选项打开。您可以配置符合应用程序和环境的挂起检测策略,来报告潜在的挂起,从而达到及早发现服务器故障的目的。检测到挂起线程时,WebSphere Application Server 将通知您,以使您可以对问题进行故障诊断。 在您开始之前 J2EE 应用程序中的一个常见错误是挂起线程。挂起线程可能由于简单软件缺陷(例如,无限循环)或更复杂的原因(例如,资源死锁)导致。当线程运行未绑定的代码路径时(例如,当代码在无限循环中运行时),系统资源(例如,CPU 时间)可能由此挂起事务消耗。另一 ...
-XX:+HeapDumpOnOutOfMemoryError 当out of memory错误发生时生成heap dump文件。 -XX:HeapDumpPath 指定dump文件的路径
一般情况下,当我们给一个变量赋值时,默认情况下是一种强引用,其中java中的引用有4中类型,其他的3种只是我们不怎么关注而已,这4中引用分别是: 1. strong reference (强引用),这种引用只有在此对象不可到达时,jvm才会将它回收 2. soft reference (软引用),这种引用跟强引用类似,不过在jvm内存不够时会触发此类对象被回收,就算在此对象在可以到达的情况下。 3. weak reference (弱引用),这种引用相对比较弱,只要gc进行时就会触发此类对象的回收。 4. phantom reference (幽灵引用),此引用实际上就是没有引用,一般只是用它 ...
java heap dump和java thread dump是用来分析jvm两种snapshoot。 java heap dump是jvm heap部分的镜像,包含了所有object的信息,ibm的heap dump文件格式是phd java thread dump则主要包含了jvm thread,classloader等相关的信息镜像,ibm的thread dump也叫core dump 不同版本的 JVM 所产生的 thread dump 的格式可能会稍有不同,但基本上都会包含以下几个方面的内容: TITLE 信息块:描述 JAVA DUMP 产生的原因,时间以及文件的路径。 GPIN ...
通过jconsole可以查看本地或者远程jvm的一些概况,比如jvm内存,线程以及一些MBean等等的情况,普通的java程序只要在启动时添加下面的java options就可以直接通过jconsole监控到此java程序的jvm概况。 -Dcom.sun.management.jmxremote.port=1090 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false 打开jconsole,在%JAVA_HOME%\bin下面,然后输入java程序所在的机器ip和上 ...
Global site tag (gtag.js) - Google Analytics