2007年10月第33卷第10期
北京航空航天大学学报JournalofBeijingUniversityofAeronauticsandAstronautics
October2007Vo.33No10l
J2EE信息
系统数据访问层性能监测与优化
设计 唐文忠
摘
许晓曼
(北京航空航天大学
计算机,北京100083)
要:针对J2EE信息系统开发阶段从性能优化的角度实现了数据访问层的设计
和一个简易的性能监测工具.首先在数据访问层设计阶段,兼顾考虑开发效率和性能
问题提供专门的数据访问操作方法;利用面向方面编程(AOP,
AspectOrientedProgramming)技术对系统数据库访问操作及性能指标进行监视,帮助开发者在系统调试运行阶段根据SQL语句执行情况发现数据访问过程中影响性能的因素;开发根据具体的情况调整数据访问的
源代码,然后对造成系统性能瓶颈的SQL语句进行性能调优,并替换数据访问层中低效的SQL语句,最终达到优化系统数据访问性能的目的.关键词:J2EE;信息系统;应用;数据访问;性能监视;SQL性能优化文章编号:10015965(2007)10120404中图分类号:TP315文献标识码:A
Performancemonitoringandoptmizationdesignofdatabase
accesslayeriaboutJ2EEmanagementinformationsystem
TangWenzhongXuXiaoman
(SchoolofComputerScienceandTechnology,BeijingUniversityofAeronauticsandAstronauticsBeijing100083China),,
AbstractBasedonthecharacterofJ2EEmanagementsysteperforanceanapplicationdatalayer:mm,andadatabaseaccessmonitoringtoolweredesignedandiplementedfortheapplicationsperforanceoptiimmmzationduringthedevelopmentperiodAtthedatalayersomespecialdataaccessoperationmethodswerepro.,videdtoiprovethedataaccessefficiencyandsomeconvenientmeasureswereadoptedforposteriorsystemmperforanceoptiizationworks.Systedatabaseaccessstepsandtheperforanceparameterscanbemonimmmmtoredwithaspectorientedprogramming(AOP)technologywhichwillhelpdevelopertofindthekeyfactorof,sideeffectduringsystemtuningperiod.Accordingtothemonitoringresults,developercanmodifythesourcecodeofsideeffectandthenoptiizethesysteperforancebottleneckSQLandreplacetheoriginallyineffimmmcientSQLsentenceforthedatalayerThereforethepurposeofoptiizationsystedatabaseaccessperfor.mmmancemaybeachieved.Key
wordsJ2EE;inforationmanagemen;applicationsdatabaseaccessperformancemonitoring:mt;;;SQLtuning
自从J2EE开发规范1997年被SUN公司提出,经过近10年的发展,已经成为开发企业级应用的工业标准,在服务器端的开发应用已经非常广泛.随着业务需求日益复杂,系统规模和数据处理量都在增大,J2EE信息系统的性能问题已经成为一个倍受关注的问题.
1
J2EE信息系统性能特点
影响J2EE信息系统性能的因素很多,如系