搜档网
当前位置:搜档网 › EDDE Monte Carlo event generator

EDDE Monte Carlo event generator

EDDE Monte Carlo event generator
EDDE Monte Carlo event generator

a r X i v :h e p -p h /0409180v 2 26 S e p 2005EDDE Monte Carlo event generator.

Petrov V.A.,Ryutin R.A.,Sobol A.E.

Institute for High Energy Physics 142281Protvino,Russia and Guillaud https://www.sodocs.net/doc/9611923374.html,PP,Annecy,France Abstract EDDE is a Monte Carlo event generator,under construction,for di?erent Exclusive Double Di?ractive Events.The program is based on the extended Regge-eikonal approach for ”soft”processes.Standard Model and its extensions are used for ”hard”fusion processes.An interface to PYTHIA,CMSJET and CMKIN is provided.Keywords Exclusive Double Di?ractive Events –Pomeron –Regge-Eikonal model –event gen-erator

1Introduction

Usually High Energy Physics is considered as the synonym of”physics of particles”. New phenomena in this area are related to discoveries of new particles or to the typical ”particle-like”e?ects,such as”Bjorken scaling”in DIS or high-p T jets and so on.In the space-time language these kinematical regimes correspond to small distances.

However there is an area in High Energy Physics,which is related to rather large distances,even at high energies.These phenomena are similar to the scattering of hadrons to small angles.The wellknown feature of such processes is that the angle distribution gives the typical di?ractive pattern with zero-angle maximum and one or,sometimes,two dips.Here wave properties of hadrons play the main role.From this distribution we can make the conclusion about size and shape of the scatterer,or the”interaction region”.

Experiments at the LHC which aim to study low(TOTEM,)-and high(CMS,)-p T regimes,related to typical undulatory(di?ractive)and corpuscular(point-like)behavior of the corresponding cross-sections,may o?er a very exciting possibility to observe an interplay of both regimes.In theory the”hard part”can be(hopefully)treated with perturbative methods while the”soft”part is de?nitely nonperturbative.

Large number of event generators are devoted to partonic processes of the Standard Model and its extensions,i.e.work at small distances.It is wellknown,that perturbation theory has some problems in the description of processes at large distances.That is why di?ractive processes are usually considered as special cases which description is based on di?erent phenomenological approaches.The most popular approach is the Regge-eikonal model.

In the present paper a brife description of the generator EDDE(Exclusive Double Di?ractive Events)is given.

2Physics of EDDE.

For calculation of cross-sections we use the method developed in Refs.[1],[2].It is based on the extension of the Regge-eikonal approach,and succesfully used for the description of the HERA[3],[4]and p+p(ˉp)→p+p(ˉp)[5]data.

Generator works in the kinematical region:

0.01GeV2≤|t1,2|≤1GeV2,(1)

M2X

ξmin?

a)

glueball, ...

1

2

b)

Figure1:a)The process p+p→p+X+p.Absorbtion in the initial and?nal pp-channels is not shown.b)The full unitarization of the process p+p→p+X+p.

?Randall-Sundrum model with one extra dimension[7].Higgs boson(H?)and Radion (R?)production.

?Standard model bˉb production.

For all the processes total cross sections and distributions are calculated.

The more recent version EDDE1.2is available.There are some additional processes:?Improved calculations for bˉb production,including corrections to backround for Higgs or Radion production.

?Standard model di-jet production.

?Cross-sections for heavy quarkonia production at LHC.

?Some azimuthal angular distributions.

”Soft”amplitudes T1,2are obtained in the extended Regge-eikonal approach.Parame-ters and formulaes can be found in Ref.[1].The second step is the unitarization procedure, that takes into account initial and?nal state interactions(see Fig.1b).

3Program procedures and limits.

There are several procedures and functions in the generator.

EDDE1.1

?function EDDECSRS1(XI,GAM,HMASS,RMASS,NP)returns the total cross-section for H?(NP=1)or R?(NP=2)production.XI is the mixing parameter of the RS1model[7]. Typical values are?0.5→0.5.GAM is the scale parameter of the model,which is equal to246GeV/Λ.Λis the Radion vacuum expectation value,which is directly related to the radius of compact https://www.sodocs.net/doc/9611923374.html,uallyΛ=1→5TeV.MASRS1(XI,GAM,HMASS,RMASS,NP)returns the mass of the observable state H?(NP=1)or R?(NP=2).Input parameters are the same.

?EDDECSBBBG(Mcut)is the total cross-section for the leading order QCD bˉb produc-tion in the EDDE at LHC.Mcut is the lower cut on the invariant mass of the bˉb system.Mcut=2MTcut,where MTcut is the jet”transverse mass”cut,which is used in other subroutines.MTcut=

σ

:

?new procedure EDDECS0(NX,MTcut)is introduced instead of EDDECSBBBG which re-turns total cross-sections of bˉb or gg di-jets and heavy quarkonia production at LHC.

NX=1→bˉb

NX=2→g g

NX=3→χc,0

NX=4→χb,0

Parameter MTcut is used for di-jet production only.In the STAGEN interface MTcut=Rpar(107).Default value is25GeV.

?procedure EDDEMXUGG(MTcut,UG,MXG)generates the distribution for the”hard”pro-cess gg P P→gg.MTcut is the lower cut on the transverse momentum of gluon(see above comment).

?additional modi?cation of the procedure EDDETTPHI(GT1,GT2,GPHI0)which is trans-formed to the more general one EDDETTPHI(NX,GT1,GT2,GPHI0),where NX is the code number of produced particle or system of particles.

NX

1→Higgs,H*,R*,other heavy0++states

2→bˉb

3→gg

4→0?+state

Other states will be added in the forthcoming version.

4Results.

Here some samples from the work of the generator with PYTHIA[8]are presented(see Figs.3a)-d).)

For both versions the iterface to the last version of PYTHIA is provided.

The updated version of the generator EDDE1.2will be available on the web-page:

http://sirius.ihep.su/cms/higgsdiff/diff.html

Interface to CMKIN will be provided soon.

For the?rst version EDDE1.1with interface to CMKIN and CMSJET[9](in the STAGEN package)see the page

http://cmsdoc.cern.ch/cms/generators/www/geners/collection/stagen/stagen.html Someone can use the new source?le for STAGEN(see the webpage)to update EDDE1.1 until the new interface is provided.

Aknowledgements

This work is supported by grants CNRS-PICS-2910and RFBR-04-02-17299.

Thanks to Andrey Sobol for the?rst version of the generator DPEHiggs,to Sergei Slabospitsky,who helped to correct the interface to PYTHIA and CMSJET,to Kreiton Hogg and Marek Tasevsky for helpful discussions concerning the work of the generator EDDE1.1.

References

[1]V.A.Petrov and R.A.Ryutin,JHEP0408(2004)013.

[2]V.A.Petrov and R.A.Ryutin,Eur.Phys.Journ.C36(2004)509.

[3]V.A.Petrov and A.V.Prokudin,Phys.Atom.Nucl.62(1999)1562.

[4]V.A.Petrov,A.V.Prokudin and R.A.Ryutin,hep-ph/0404116.

[5]V.A.Petrov and A.V.Prokudin,Eur.Phys.J.C23(2002)135.

[6]A.Kniehl,Phys.Rept.240(1994)211.

[7]L.Randall and R.Sundrum,Phys.Rev.Lett.83(1999)3370;

M.Chaichian,A.Datta,K.Huitu and Zenghui Yu,Phys.Lett.B524(2002)161. [8]T.Sjostrand et al.,https://www.sodocs.net/doc/9611923374.html,mun.135(2001)238,hep-ph/0108264;hep-

ph/0308153(recent version).

[9]S.Abdulin,A.Khanov and N.Stepanov,CMS Note1994/180.

a)

051015

20

25

30

354000.51 1.52 2.53

b)0100

200

300

400

500

600

700-15-10-50

51015

c)0510

15

20

253035-15-10-50

51015

d)

50

100

150

200

250012345678910

Figure 2:Some distributions from EDDE1.2.(90signal and 660backround events.MT cut =25GeV).Solid curve represent signal+background,dashed one is the back-ground,and dash-dotted is the signal.a)azimuthal angle distribution for Higgs boson production;b)rapidity and c)pseudorapidity distributions;d)integrated t-distributions.

使用 db2pd 进行监视和故障诊断

使用 db2pd 进行监视和故障诊断 因为 db2pd 工具可从 DB2? 内存集合迅速返回即时信息,所以该工具可用于故障诊断。 该工具不需要获得任何锁存器或使用任何引擎资源就可以收集信息。因此,在 db2pd 收集 信息时,有可能(并且预计)会检索到正在更改的信息;这样,数据可能不是十分准确。 如果遇到正在更改的内存指针,可使用信号处理程序来防止 db2pd 异常终止。这可能会导 致输出中出现诸如以下的消息:“正在更改的数据结构已强制终止命令”。虽然如此,该工 具对于故障诊断却非常有用。在不锁存的情况下收集信息有两个好处:检索速度更快并且 不会争用引擎资源。 如果要在出现特定 SQLCODE、ZRC 代码或 ECF 代码时捕获关于数据库管理系统的信息,那 么可以使用 db2pdcfg -catch 命令完成此操作。捕获到错误时,将启动 db2cos(调出脚本)。db2cos 文件可以自动改变,以便运行解决问题所需的任何 db2pd 命令、操作系统命令或任何其他命令。在 UNIX? 和Linux? 上,模板文件 db2cos 位于 sqllib/bin 中。在 Windows? 操 作系统上,db2cos 位于 $DB2PATH in 目录中。 以下是使用 db2pd 快速故障诊断的一组示例。 场景 1:诊断锁定等待 使用 db2pd -db -locks -transactions -applications -dynamic 命令来获取下列 结果: 锁定: Address TranHdl Lockname Type Mode Sts Owner Dur HldCnt Att ReleaseFlg 0x07800000202E5238 3 00020002000000040000000052 Row ..X G 3 1 0 0x0000 0x40000000 0x07800000202E4668 2 00020002000000040000000052 Row ..X W* 2 1 0 0x0000 0x40000000 对于使用 -db 数据库名称选项指定的数据库,开头的结果会显示该数据库的锁定。您会发 现 TranHdl 2 正在等待 TranHdl 3 挂起的锁定。 事务: Address AppHandl [nod-index] TranHdl Locks State Tflag Tflag2 Firstlsn Lastlsn LogSpace SpaceReserved TID AxRegCnt GXID

db2pd命令捕获死锁信息

本文通过一个实例讲解了在DB2版本9以后,如何使用db2pd命令捕获死锁信息 死锁经常会存在于我们的应用系统中,如何捕获死锁信息并解决死锁问题,是一个比较复杂的问题。DB2提供了死锁事件监控器来获取死锁信息,可以非常方便地获取死锁信息。从DB2版本8.2.2开始,DB2也可以使用db2pd命令和db2cos脚本来获取死锁信息,提供了一种新的途径来获取死锁信息。 从DB2版本9开始,我们可以使用db2pd -catch 命令来捕获错误信息,然后调用一个sqllib/db2cos 的脚本收集出错时的现场信息。该命令的使用语法如下: Usage: -catch clear | status | [] [count=] Sets catchFlag to catch error or warning. Error Codes: [,] / sqlcode=[,] ZRC (hex or integer) ECF (hex or integer) "deadlock" or "locktimeout" Actions: [db2cos] (default) Run sqllib/db2cos callout script [lockname=] Lockname for catching specific lock (lockname=000200030000001F0000000052) [locktype=] Locktype for catching specific lock (locktype=R or locktype=52) 下面我们通过一个实例来讲解如何使用db2pd -catch命令获取死锁信息。如无特殊说明,命令均使用DB2实例用户执行。 1、将$HOME/sqllib/cfg/db2cos例子脚本拷贝到$HOME/sqllib下,并改变属性为实例用户添加执行权限: cp $HOME/sqllib/cfg/db2cos $HOME/sqllib

db2 实战常用命令

db2 force application all –断开所有链接数据库的应用 db2 list application-查看连接数据库的应用 db2 bakup db ksdbs 备份数据库 db2start db2stop启停数据库 db2 connect reset断开所有链接 scp get trans.ini -r back@10.10.9.160/home/back/bccbin \ scp local_file remote_username@remote_ip:remote_folder 或者 scp local_file remote_username@remote_ip:remote_file scp -r ip:/db/dbhome/dbguard 【1】 db2top –d ksdbs db2pd -d ksdbs -stat >stat.log 查看数据库状态(数据超大超详细) 【1】find -type f | xargs dos2unix 遍历格式转换 【1】 find . -name [A-Z]* -print 查找当前目录下以大写字母命名的文件 【1】 >db2ckbkp 检查数据库的完整性 >tee 命令 用途--显示程序的输出并将其复制到一个文件中。 【1】db2 connect reset db2 list directory db2 list active databases db2 get db cfg db2 get db cfg 【1】归档日志 db2 update db cfg for db_name using LOGRETAIN ON 更改归档目录: db2 update db cfg for db_name using LOGARCHMETH1 "disk:/archive/db_name_db_log" 在我重新连接数据库的时候提示: db2 connect to t_1 to mydb SQL1116N A connection to or activation of database "T_1" cannot be made because of BACKUP PENDING. SQLSTATE=57019 网上找了n多最后才知道 若修改数据库LOGRETAIN参数,从循环日志模式改为归档日志模式,则会导致数据库backup pending状态。

IBM DB2 Connect 简介

IBM DB2 Connect 简介: 内有乾坤 2005 年 4 月 对于那些脱离大型机的应用程序——分布式应用程序来说,IBM? DB2? Connect? 已成为向它们开放 DB2 for z/OS 数据库以及 zSeries 硬件平台传统公认的所有优点的首选方法。本文是一个由 5 部分组成的系列中的第一篇文章,这个系列将介绍 DB2 Connect 的一些主要特性,这些特性有助于提高交付随需应变解决方案的能力。 简介 1993 年,计算机界的专家们预测大型机(mainframe)将迅速退出历史舞台。他们宣称,未来的计算基础设施将会是一个高度分布的、松散连接的个人电脑和客户机-服务器系统的集合。作为该行业的相关参与者,IBM 几乎无立身之处。 我们都知道后来是怎么回事。IBM 设法在分布式市场重新占得先机,并成为大型机(mainframe)技术的“主要”支持力量。从价格的角度来看,IBM 大大缩减了大型机的价格。从技术的角度来看,IBM 放弃了为其大型机提供动力的双极技术(bi-polar technology),而将大量赌注放在 CMOS 芯片技术上,试图通过这种方式,以剧减的价格交付大型机级别的计算。更重要的是,对于所谓大型机是一种过时的技术,属于大型机的时代已经一去不复返这类荒诞的说法,这是一个直接有力的反击。 如今,企业比以前更多地使用大型机作为其计算基础设施的基础。与此同时,Linux?、UNIX?、Windows? 和其他客户机-服务器系统(在此处被称作分布式平台)并没有消失,因为大型机又重新为它们在企业中赢得了地位。 实际上,这些分布式计算基础设施经历了一个发展的过程。最终的结果是,客户希望将分布式平台的简单性和长处与大型机技术无可匹敌的强大性相结合。如果说信息技术(IT)中有一个领域能让这种结合产生立杆见影的效果,那么这个领域一定是数据库应用领域。 IBM DB2 Universal Database? for z/OS (DB2 for z/OS) 原本是一种大型机数据库,现在已转型为世界上第一种用于客户机-服务器应用程序的数据库服务器。在如今的数据中心里,当您使用运行在大型机上的 CICS 或 COBOL 应用程序时,很可能会遇到 DB2 for z/OS 被用作运行在 Windows、UNIX 和 Linux 上的应用程序的数据库服务器的情况。 正是在这种环境下,我发现 IBM DB2 Connect (DB2 Connect) 产品扮演着一个中心角色。如今,对于那些脱离大型机的应用程序——分布式应用程序来说,DB2 Connect 已成为向它们开放 DB2 for z/OS 数据库和 zSeries 硬件平台的所有传统公认优点的事实上的首选。 为什么当其他产品遭遇失败的时候,DB2 Connect 却能获得成功呢?这个关于DB2 Connect 的系列试图描述 DB2 Connect 的一些关键特性,我们相信正是这

Pages 的简介与使用方法

株洲职业技术学院专业论文(设计)

题目: 关于Pages 的简介与使用方法 Pages on the history and method of use 学院株洲职业技术学院 年级专业苹果动漫1201班 学生姓名龙甜 学号201210330124 指导教师李思静 完 成 日 期 2012 年 12 月 株洲职业技术学院专业论文 诚信声明 本人郑重声明:所呈交的专业论文,题目《 关于Pages的简介与使用方法》 是本人在指导教师的指导下,进行研究工作所取得的成果。对本文的研究做出重要贡献的个人和集体,均已在文中以明确方式注明。除此之外,本论文不包含任何其他个人或集体已经发表或撰写过的作品成果。本人完全意识到本声明应承担的法律责任。

作者签名:龙甜 日期:2012年12月21日 关于P a g e s的简介与使用方法 龙甜 摘要 P a g e s是苹果公司多功能办公软件套装A p p l e W o r k s的继承者,是一个用于文字处理和页面排版的应用程序。它是由苹果公司所开发,包括在i W o r k软件套装中。P a g e s支持多栏排版,文本段落样式,脚注和其他高级文字处理功能,并为用户提供了强大的模板功能。创建的文档可以导出多种文件格式,同样也能导入A p p l e W o r k s和微软W o r d文件。文档中可直接绘制形状,并修改属性;可以环绕文本;可以插入图形,并设置阴影,多角度旋转等。并且,P a g e s可以制作各种宣传海报,新闻报道,贺卡,请柬,论文和教学材料等。并能从i T u n e s,i M o v i e和i P h o t o中接受数据,设置U R L链接。 关键词:P a g e s使用方法苹果 Abstract P a g e s i s a A p p l e C o r p m u l t i f u n c t i o n a l o f f i c e s o f t- w a r e s u i t e a s u c c e s s o r t o A p p l e W o r k s,i s o n e f o r w o r d p r o c e s s i n g a n d p a g e l a y o u t a p p l i c a t i o n.I t i s t h e A p p l e C o r p f o r t h e d e v e l o p m e n t,i n c l u d i n g i n t h e i Wo r k s o f t- w a r e s u i t e.P a g e s s u p p o r t s m u l t i p l e c o l u m n l a y o u t,t e x t p a r a g r a p h s t y l e s,f o o t n o t e s a n d o t h e r a d v a n c e d t e x t p r o c-

使用db2pd 进行监视和故障诊断

db2 使用db2pd 进行监视和故障诊断 因为db2pd工具可从DB2? 内存集合迅速返回即时信息,所以该工具可用于故障诊断。 该工具不需要获得任何锁存器或使用任何引擎资源就可以收集信息。因此,在db2pd收集信息时,有可能(并且预计)会检索到正在更改的信息;这样,数据可能不是十分准确。如果遇到正在更改的内存指针,可使用信号处理程序来防止db2pd异常终止。这可能会导致输出中出现诸如以下的消息:“正在更改的数据结构已强制终止命令”。虽然如此,该工具对于故障诊断却非常有用。在不锁存的情况下收集信息有两个好处:检索速度更快并且不会争用引擎资源。 如果要在出现特定SQLCODE、ZRC 代码或ECF 代码时捕获关于数据库管理系统的信息,那么可以使用db2pdcfg -catch命令完成此操作。捕获到错误时,将启动db2cos(调出脚本)。db2cos文件可以自动改变,以便运行解决问题所需的任何db2pd命令、操作系统命令或任何其他命令。在UNIX? 和Linux? 上,模板文件db2cos位于sqllib/bin中。在Windows? 操作系统上,db2cos位于$DB2PATH\bin目录中。 以下是使用db2pd快速故障诊断的一组示例。 场景1:诊断锁定等待 使用db2pd -db -locks -transactions -applications -dynamic 命令来获取下列结果: 对于使用 -db 数据库名称选项指定的数据库,开头的结果会显示该数据库的锁定。您会发现TranHdl 2 正在等待TranHdl 3 挂起的锁定。 您会发现TranHdl 2 与AppHandl 11 相关联,而TranHdl 3 与AppHandl 12 相关联。 您会发现AppHandl 12 最后运行动态语句17, 1。ApplHandl 11 是当前正在运行的动态语句17, 1,而最后运行的语句是94, 1。 您会发现,文本列显示与锁定超时相关联的SQL 语句。 场景2:使用-wlocks选项捕获所有正在等待的锁定 在下面的样本输出中,应用程序1(AppHandl 47)正在执行插入操作,而应用程序2(AppHandl 46)正在选择该表。 场景3:使用-apinfo选项捕获关于锁定所有者和锁定等待者的详细运行时信息 下面的样本输出是在与上面的场景 2 相同的条件下捕获的。 venus@boson:/home/venus =>db2pd -apinfo 47 -db pdtest 数据库分区 0 -- 数据库 PDTEST -- 活动 -- 正常运行 0 天 00:01:30

DB2(常用工具)具体实用

题目: 1、熟练使用db2look工具导出数据库结构 2、使用db2pd监控表空间、锁的使用情况 3、使用db2mtrk 检查数据库内存的分配情况 4、练习使用db2top工具 5、使用db2batch测试SQL语句的性能 解答: 1、熟练使用db2look工具导出数据库结构 [myinst@ye ~]$ db2look -d mydb3 -l -e -o mydb3.dll -- No userid was specified, db2look tries to use Environment variable USER -- USER is: MYINST -- Creating DDL for table(s) -- Output is sent to file: mydb3.dll -- Binding package automatically ... -- Bind is successful -- Binding package automatically ... -- Bind is successful 2、使用db2pd监控表空间、锁的使用情况 #db2pd监控表空间 [myinst@ye ~]$ db2pd -db mydb3 -tablespace Database Member 0 -- Database MYDB3 -- Active -- Up 0 days 00:29:31 -- Date 2015-08-24-11.36.10.344000 Tablespace Configuration: Address Id Type Content PageSz ExtentSz Auto Prefetch BufID BufIDDisk FSC NumCntrs MaxStripe LastConsecPg RSE Name 0x00007F9AC71E0080 0 DMS Regular 32768 4 Yes 4 1 1 Off 1 0 3 Yes SYSCATSPACE 0x00007F9AC71ED220 1 SMS SysTmp 32768 32 Yes 32 1 1 On 1 0 31 No TEMPSPACE1 0x00007F9AC71FA3C0 2 DMS Large 32768 32 Yes 32 1 1 Off 1 0 31 Yes USERSPACE1 0x00007F9AC7207560 3 DMS Large 32768 4 Yes 4 1 1 Off 1 0 3 Yes SYSTOOLSPACE 0x00007F9AC7214700 4 DMS Large 32768 32 Yes 32 2 2 Off 1 0 31 Yes MYSPACE3 Tablespace Statistics:

传统工具简介及使用方法

传统工具简介及使用方法 我国幅员辽阔,各地都有一批手艺高超的匠人,他们使用的工具也是五花八门,但是有些工具是经常用到的,先简单介绍几种常用的工具 梆口:是刨子之中最大的也是最长的,专门用来长板料对缝,比如做箱子和板柜等。 长刨子:主要用来刮长料,用它刨出来的料能达到又平又直 二刨子:它的使用效率最高,所有木料初始工作都要靠它来完成净刨:是常用的刨子最小的,用做产品最后一道工序刨光,净面。 歪嘴子:一般的歪嘴子都能调节宽度,可用做裁口 板刨子:用来裁口后的收根 线刨子:线刨子的种类很多,主要做镜框和家具门边起的花线 勒刀:较软的木料裁口,效率很高 线勒子:固定尺寸划线用的 带溜子:裁口用的 槽刨子:厢板用的,有各种尺寸的

偏口:特殊用途的长刨子,专门用来长板料对缝,比如做箱子和板柜等 锛子:主要是盖房子锛屋的大梁,檩子等 锯:锯的种类太多了,主要有拐子锯,双面齿刀具,单面齿刀具等 *:传统锯的齿大致分三类,(一)左右(二)左中右(三)左右中。作用主要是截锯,顺锯,截顺锯等。另外伐锯齿时的角度也可以调整锯的用途。 *:做刨子时要根据它的用途调整角度,二刨子坡度稍大一些推进时省力,但是不拿炝茬。净刨坡度小一些净面效果好。这也要根据各地使用的木料来调整。总之活是死的,人是活的。各村都有各村的高招。 梆口:是刨子之中最大的也是最长的,专门用来长板料对缝,比如做箱子和板柜等 7.jpg(21.56 KB)

长刨子:主要用来刮长料,用它刨出来的料能达到又平又直16.jpg(52.12 KB)

净刨:是常用的刨子最小的,用做产品最后一道工序刨光,净面。 12.jpg(84.39 KB)

db2pd简介及使用方法

1.打开 db2pd – Monitor and Troubleshoot DB Command,如图 3 所示。 图 3. DB2 Information Center 中关于 db2pd 工具的信息

调用 db2pd 工具有两种方式。可以用交互模式调用 db2pd 工具,或者直接在操作系统命令提示符下运行。要是用交互模式执行该工具,可以在操作系统命令提示符下输入 db2pd –interactive 或者直接输入 db2pd,这样将看到 db2pd 命令提示符db2pd>,可以输入命令选项。使用–help 选项可以获得帮助信息。退出 db2pd 命令提示符只需要输入 quit 或者 q。图 4 中的例子说明了如何使用交互模式显示当前的代理。 图 4. 用交互模式调用 db2pd 在操作系统命令提示符下调用该工具可以输入带有命令选项的 db2pd 命令。下面的例子(图 5)使用 -agents 选项显示了所有的活动代理。 图 5. 在操作系统命令提示符下调用 db2pd

此外,还可以通过将选项保存在文件中或者在 DB2PDOPT 环境变量中设置选项来控制该命令。下面的例子(图 6)说明可以将 -agents 选项保存在一个(在该例中)名叫file.out的文件中,然后使用 db2pd –command file.out 执行选项。 图 6. 将 db2pd 选项保存在文件中 如果要使用 DB2PDOPT 环境变量,可以将 DB2PDOPT 设成需要的选项然后像下面这样调用 db2pd: 图 7. 在 DB2PDOPT 环境变量中设置 db2pd 选项

WAS快速入门手册

W A S快速入门手册 Prepared on 22 November 2020

WAS快速入门手册

编写原则 1.技术别人是教不会的,只有靠自己学会 2.以PD为主,系统学习为辅 3.给出开放问题,自己去找答案,总结经验日常维护 1.安装WAS a)安装, , b)创建profile c)安装htppServer和plugin d)配置集群 i.高级:配置共享域 e)发布程序 f)配置DB数据源 g)配置LDAP h)配置安全性 i.与的区别 ii.配置SSO i)高级:配置JMS 2.升级WAS a)静默安装 b)升级JDK和WAS

3.AIX命令 a)was本身命令 startServer -trace,,等 b)常用命令, ls –ltr , df –g ,tar等 c)topas,vmstat,netstat等监测命令 d)收集Crash,hang信息时的命令 e)ulimit,crontab等系统调整,监测命令 4.调优WAS a)WAS上线前,参数调整 i. JVM,日志等 b)压力测试过程中,调整WAS参数 c)WAS连接DB2,Oracle后,如何监测数据库,如果区分是WAS的问题,还是 数据库的问题 5.收集WAS数据 a)Mustgather b)其中难以收集数据: Crash,Hang 6.分析heapdump a)说明:本地安装 IBM Support Assistant v3 b)ecurep网站 7.分析Javacore a)参考Diagnostics Guide b)注意Current Thread等信息 8.编写测试代码 a)编写来测试页面问题

db2监控及优化

在DB2 UDB中有两种类型的监控器:快照监控器和事件监控器 一、建立IBM DB2事件监视器: 1. 创建一个SQL Event Monitor,写入文件: db2 create event monitor evmname for eventtype write to file 'directory' 例:db2 create event monitor mymonitor for deadlocks,statements write to file 'D:\db2tst\logs' maxfiles none maxfilesize 8192 在unix下不需要加db2,以下命令相同 2. 激活事件监视器(确保有充足的可用磁盘空间): $> db2 "set event monitor mymonitor state = 1" (必须是"") 3. 让应用程序运行。 4. 取消激活事件监视器: $> db2 "set event monitor mymonitor state = 0" 5. 使用DB2 提供的db2evmon 工具来格式化SQL Event Monitor原始数据(根据SQL 吞吐率可能需要数百兆字节的可用磁盘空间): $> db2evmon -db DBNAME -evm mymonitor > sqltrace.txt db2evmon -db zssmk -evm mymonitor > sqltrace.txt 6. 浏览整个已格式化的文件,寻找显著大的成本数(一个耗时的过程): $> more sqltrace.txt 补充: 1.删除事件监视器 drop event monitor mymonitor 2.涉及到的系统表 select * from SYSCA T.EVENTMONITORS; select * from SYSCA T.EVENTS; select * from SYSCA T.EVENTTABLES 3.查看命令使用帮助 命令名? db2evmon ? Usage: db2evmon [-db] [-evm] or db2evmon -path

db2pd抓取锁表语句

分析锁等待事件,找出锁表语句 1.找出锁等待情况 db2pd -db foticdb -locks wait showlocks// -file lockwait.txt导出结果到文件lockwait.txt 可以看到上图中有一个X锁,TranHdl=106,Sts=G(锁的授权者即持有者),事务TranHdl=91的锁类型为U,Sts=W,即处于锁等待状态,Owner=106,即91的事务等待106的事务释放锁事务91才能执行。如果需要找到事务106所执行的SQL,必须找到事务106对应的APPID。 2.找到事务对应的AppHandl db2pd -db fotest –transactions 以上返回结果中可以看到事务91对应的AppHandl=59574,事务106对应的AppHandl=59131。 3.找到应用程序对应的AnchID db2pd -db fotest -applications 可以看到上图中AppHandl=59131的应用L-AnchID=233,L-StmtUID=7 4.找到L-AnchID=233,L-StmtUID=7对应的SQL db2pd -db fotest -dynamic

上图中可以看到AnchID=233,StmtUID=7的应用执行的SQL为 Update locktest set suibian=33 where suibian=22 到此所有查询都结束。 5.总结 应为db2pd是数据库实时监测,正式执行查找,可一次导出以上所有信息,到文件中,再分析锁表情况。 执行语句: db2pd -db foticdb -locks wait showlocks -transactions -agents -applications -dynamic -file db2pd.out -repeat 15 40 //-repeat 15 40为没隔15s执行一次db2pd语句,总共执行40次 //-file 将结果导出到db2pd.out文件中。

DB2性能调节工作总结

DB2性能调节工作总结 近期负责了Metric项目的服务器性能维护,对DB2的性能调节做了些研究。整体感觉数据库调优的关键点应该还是在建库阶段,好的查询更能得到更好的性能。而后期对数据库参数等的调节结果并不是非常明显的。 网上数据库调节方面的资料也很多,但大多数都是转来转去的,在此只做下我个人的工作总结;(//表示对上诉解释##表示对下面解释) ############1,Monitoring################## db2 get database manager monitor switches //显示监视开关的情况 db2 update dbm cfg using DFT_MON_BUFPOOL ON DFT_MON_LOCK ON db2 update dbm cfg using DFT_MON_SORT ON DFT_MON_STMT ON db2 update dbm cfg using DFT_MON_TABLE ON DFT_MON_UOS ON db2 terminate db2stop db2start //在实例级打开监视开关,这样随着实例的重启,开关生效

db2 get database manager monitor switches db2 get monitor switches //发现实例级和下面的数据库监视开关都打开了 db2 deacivate database tp1 db2 activate database tp1 //重新激活数据库,刷新监视数据 select agent_id,rows_read,rows_written,rows_selected,rows_inserted from sysibmadm.snapappl //监视每个代理读写查询的情况,如果read的数量远高于select的数量,考虑是不是缺少索引 //在我的工作中,很少遇到写多的情况,所以对这方面也没深入 db2 get snapshot for tables on tp1 > sntab1.txt //接下来监视tp1数据库下所有表的读写啦 ##下一步,就是抓到那个有大量读大于写的表,然后提取该表上的查询SQL ##这里就要考虑两种情况了,是静态的还是动态的 ##@@@静态的,从包里提取 db2bfd -s sqltp1st.bnd ##@@@动态的,可以用snapshot SQL STATEMENT抓取,这里不写了

相关主题