WebSphere Application Server 7.0 初体验

WebSphere一直是我几年来最关注的中间件产品,我对其熟悉的程度超过现在的Oracle WebLogic,今天Oracle发布了WebLogic的10.3版,但WebSphere,仍然只是7.0的Open Beta版(其实也放出来一段时间了,具体日期不详)。尽管如此,我还是对其表示了极大的热情,决定来尝尝鲜!

昨天晚上用那可怜的512K小猫Down了一晚上,终于将那821M的安装包Down下来了,IBM这次很大方,开放的Beta版是Network Deployment版的,记得以前想在网站Down 6.1的Network Deployment版找了好久也没有找到,后来只好直接用For AIX版的。
今天腾出笔记本上的1.5G空间来安装WAS7,先解压下载的ZIP包到另一个盘,天杀的,提示我有一个文件不能解压,出现错误,难道要我重新下载?不管了,继续安装...

安装
安装很简单,与前期版本没有什么区别。如果不会,可以参考Getting Start文档中的安装Flash演示(IBM第一次做了这样一件好事,估计以后的服务费收入又少了一笔)。具体目录位于:
......\WASv7_GettingStarted\viewlets\WASV7_Installation

新特性
根据文档的说明,WAS 7.0最大的特性主要有:
1、支持JDK6
2、支持JavaEE5
3、增强了对SOA的支持

迫不急待,进入Administration Console逛逛,登录画面更漂亮了点,界面还是熟悉的界面,熟悉的风格,这对于一个产品也是需要的,就像一个人穿了不同的衣服,气质还是那样。
下面来基于WAS6.1说说其内功的提升吧:
1,对JDK6可是真正的支持,有SystemOut.log为证:
None.gif WebSphere Platform  7.0 . 0.0  [ND  7.0 . 0.0  h0823. 03 ] running with process name starNode01Cell\starNode01\server1 and process id  3388
None.gifDetailed IFix information: No Interim Fixes applied to 
this  build
None.gifHost Operating System is Windows XP, version 
5.1  build  2600  Service Pack  2
None.gifJava version 
= 1.6.0, Java Compiler = j9jit24, Java VM name = IBM J9 VM

2,支持JavaEE5,对SOA的支持也增强了,再用Log为证(虽不能全面证明,但可见冰山一角):
None.gif [ 08 - 8 - 7   2 : 06 : 15 : 569  CST]  00000000  WASAxis2Compo I   WSWS7001I: 已启动 Axis2 服务。
None.gif[
08 - 8 - 7   2 : 06 : 15 : 969  CST]  00000000  SchedulerServ I   SCHD0031I: Scheduler 服务正在启动。
None.gif[
08 - 8 - 7   2 : 06 : 15 : 979  CST]  00000000  SchedulerServ I   SCHD0001I: Scheduler 服务已启动。
None.gif[
08 - 8 - 7   2 : 06 : 15 : 979  CST]  00000000  JPAComponentI I   CWWJP0028I: Java 持久性 API(JPA)组件正在启动。
None.gif[
08 - 8 - 7   2 : 06 : 15 : 989  CST]  00000000  JPAComponentI I   CWWJP0017I: 已启动 Java 持久性 API(JPA)组件。

3,Administration Console的功能菜单:
A,服务器加了一级子菜单,但本质未发生变化。
B,就用程序有分类了,特别是突显了“资产”,这与SOA的理念是有直接关系的。
C,服务模块进一步加强,特别是策略集。
D,资源依旧是那些资源,但似乎突显了“Scheduler”。
E,服务集成增加了对“WS-Notification”的支持
(以上描述可能不够准确,没有仔细比对WAS6.1,说了是初体验)

IBM J9 JVM 1.6.0尝鲜
从上面的LOG中发现,默认是开启JIT编译的,从下面的配置中( disableJIT ="false")也可以看出。

来看看GC有没有什么变化?在Java虚拟机的通用JVM参数中加入以下参数:
None.gif - verbose:gc  - XX: + PrintGCDetails  - Xverbosegclog:gc.log
请注意,此处SUN的HotSpot的参数不同。我一开始直接用SUN的参数,然后重启,结果导致启动失败,只好找到server的配置文件,然后手动修改其server.xml配置文件,其位置如下(假设你的WAS也安装在C:\IBM\WebSphere\AppServer目录中):
C:\IBM\WebSphere\AppServer\profiles\AppSrv01\config\cells\starNode01Cell\nodes\starNode01\servers\server1
修改如下部分:
None.gif < jvmEntries  xmi:id ="JavaVirtualMachine_1183122130078"  verboseModeClass ="false"  verboseModeGarbageCollection ="false"  verboseModeJNI ="false"  runHProf ="false"  debugMode ="false"  debugArgs ="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=7777"  genericJvmArguments ="-verbose:gc -XX:+PrintGCDetails -Xverbosegclog:gc.log"  disableJIT ="false" >
看清楚地方了没?不用再指地方了吧。
然后重启,OK,又启起来了。

再来看看GC的结果,gc.log文件位于如下位置(同样假设你的WAS也安装在C:\IBM\WebSphere\AppServer目录中):
C:\IBM\WebSphere\AppServer\profiles\AppSrv01\
我机器上产生的样例片断如下:
ContractedBlock.gif ExpandedBlockStart.gif
<!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

--&gtNone.gifxml version="1.0" ?>
None.gif
None.gif
<verbosegc version="20080521_AC">
None.gif
None.gif
<af type="tenured" id="1" timestamp="Aug 07 02:15:56 2008" intervalms="0.000">
None.gif  
<minimum requested_bytes="25536" />
None.gif  
<time exclusiveaccessms="0.016" meanexclusiveaccessms="0.016" threads="0" lastthreadtid="0x10F05100" />
None.gif  
<refs soft="40" weak="10082" phantom="0" dynamicSoftReferenceThreshold="32" maxSoftReferenceThreshold="32" />
None.gif  
<tenured freebytes="2621440" totalbytes="52428800" percent="5" >
None.gif    
<soa freebytes="0" totalbytes="49807360" percent="0" />
None.gif    
<loa freebytes="2621440" totalbytes="2621440" percent="100" />
None.gif  
tenured>
None.gif  
<gc type="global" id="1" totalid="1" intervalms="0.000">
None.gif    
<classunloading classloaders="0" classes="0" timevmquiescems="0.000" timetakenms="0.372" />
None.gif    
<finalization objectsqueued="91" />
None.gif    
<timesms mark="26.564" sweep="2.019" compact="0.000" total="29.123" />
None.gif    
<tenured freebytes="44916712" totalbytes="52428800" percent="85" >
None.gif      
<soa freebytes="42295272" totalbytes="49807360" percent="84" />
None.gif      
<loa freebytes="2621440" totalbytes="2621440" percent="100" />
None.gif    
tenured>
None.gif  
gc>
None.gif  
<tenured freebytes="44891176" totalbytes="52428800" percent="85" >
None.gif    
<soa freebytes="42269736" totalbytes="49807360" percent="84" />
None.gif    
<loa freebytes="2621440" totalbytes="2621440" percent="100" />
None.gif  
tenured>
None.gif  
<refs soft="38" weak="10062" phantom="0" dynamicSoftReferenceThreshold="27" maxSoftReferenceThreshold="32" />
None.gif  
<time totalms="29.367" />
None.gif
af>
None.gif
None.gif
<af type="tenured" id="2" timestamp="Aug 07 02:15:56 2008" intervalms="365.335">
None.gif  
<minimum requested_bytes="40" />
None.gif  
<time exclusiveaccessms="0.011" meanexclusiveaccessms="0.011" threads="0" lastthreadtid="0x10F05100" />
None.gif  
<refs soft="39" weak="10062" phantom="0" dynamicSoftReferenceThreshold="27" maxSoftReferenceThreshold="32" />
None.gif  
<tenured freebytes="2621440" totalbytes="52428800" percent="5" >
None.gif    
<soa freebytes="0" totalbytes="49807360" percent="0" />
None.gif    
<loa freebytes="2621440" totalbytes="2621440" percent="100" />
None.gif  
tenured>
None.gif  
<gc type="global" id="2" totalid="2" intervalms="365.529">
None.gif    
<finalization objectsqueued="206" />
None.gif    
<timesms mark="28.471" sweep="2.609" compact="0.000" total="31.220" />
None.gif    
<tenured freebytes="44063464" totalbytes="52428800" percent="84" >
None.gif      
<soa freebytes="41442024" totalbytes="49807360" percent="83" />
None.gif      
<loa freebytes="2621440" totalbytes="2621440" percent="100" />
None.gif    
tenured>
None.gif  
gc>
None.gif  
<tenured freebytes="44062496" totalbytes="52428800" percent="84" >
None.gif    
<soa freebytes="41441056" totalbytes="49807360" percent="83" />
None.gif    
<loa freebytes="2621440" totalbytes="2621440" percent="100" />
None.gif  
tenured>
None.gif  
<refs soft="39" weak="10062" phantom="0" dynamicSoftReferenceThreshold="26" maxSoftReferenceThreshold="32" />
None.gif  
<time totalms="31.292" />
None.gif
af>
试试用我喜爱的GCViewer(关于GCViewer的相关内容,可以参考我的另一篇文章:《 JVM分析的两个工具(MAT&GCViewer)试用 》)打开来看看,如果你也这样干,你会跟我一样失望,从数据面板中看给你的结果是一些莫名其妙的值,很显然,目前GCViewer的1.28版似乎还不支持此JVM产生的GC日志。有兴趣的朋友可以写篇文章来分析或解读一下此日志。

相关资源:
WAS 7.0主页如下:
https://www14.software.ibm.com/iwm/web/cc/earlyprograms/websphere/wasndv7/
IBM还专门为介绍这个版本的新特性和亮点做了一个很不错的Flash的Demo,其观看地址为:
https://www14.software.ibm.com/iwm/web/cc/earlyprograms/websphere/wasndv7/player.html
WebSphere Application Server Network Deployment的下载地址:
https://www14.software.ibm.com/webapp/iwm/web/preLogin.do?source=swerpws-wasndv7-3&S_PKG=code
同时还提供了全套文档的下载地址(目前好像仅提供英文文档):
https://www14.software.ibm.com/webapp/iwm/web/preLogin.do?source=swerpws-wasndv7-3&S_PKG=library

同时还升级了RAD(Rational® Application Developer)到7.5来支持最新的WAS版本(也是Beta版,比WAS7的Beta版出得早),其网址如下:
https://www14.software.ibm.com/iwm/web/cc/earlyprograms/rational/RAD75OpenBeta/


今天就先写到这里,太晚了,该睡下了。

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/14734416/viewspace-421417/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/14734416/viewspace-421417/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值