WebLogic集群配置(Windows环境)_第1页
WebLogic集群配置(Windows环境)_第2页
WebLogic集群配置(Windows环境)_第3页
WebLogic集群配置(Windows环境)_第4页
WebLogic集群配置(Windows环境)_第5页
已阅读5页,还剩11页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

./WebLogic集群配置<WindowsXP+WebLogic923>版本说明版本日期作者说明V1.012008-09-03王林财初稿概要描述WebLogicserver923_win32Apacheapache_-win32-x86-no_ssl-r2DataBaseOSWindowsXP本例测试例规划ServerNameHostIPListenAdminServer7001Server70817081Server70827082WebServer<Apache2>80安装篇安装WebLogicWebLogic安装过程安装WebLogic完成后生成的目录结构如下Apache安装Apache安装过程安装Apache完成后生成的目录结构自动生成Apache启动服务测试安装Apache是否成功配置篇WebLogic配置从开始菜单BEAProductsToolsConfigurationWizard启动创建域CreateanewWebLogicdomainSelectDomainSourceConfigureAdministratorUserNameandPasswordConfigureServerStartModeAndJDKCustomizeEnvironmentAndServicesSettingsConfiguretheAdministrationServerConfigureManagedServersConfigureClustersAssignServerstoClustersConfigureMachinesAssignServerstoMachinesReviewWebLogicDomainCreateWebLogicDomainCreatingDomain配置Domain成功后生成的目录结构配置域启动信息新增启动用户名、密码文件初始化各个Server存参数大小拷贝bin目录底下的startManagedWebLogic.cmd到域目录底下分别重命名为startServer7081.cmd、startServer7082.cmd修改startServer7081.cmd文件对应的SERVER_NAME修改startServer7082.cmd文件对应的SERVER_NAME修改各Server控制台日志文件输出位置启动域双击startWebLogic.cmd启动域配置DataSources配置DataSource过程点击"ActivateChanges"按钮生效变更配置类似创建其它DataSource配置MultiDataSources配置MultiDataSource过程类似创建其它MultiDataSource部署应用服务先在本地取得某应用程序拷贝文件〔集群多机器需分别拷贝,且目录位置一致分别修改ManagedServer底下的StagingMode模式为nostage重新启动所有的Server<第一次启动ManagedServer,需保证AdminServer处于已启动状态>部署应用服务过程启动应用Servicingallrequests类似部署其它应用配置应用复制session信息修改对应的App\WEB-INF\底下的weblogic.xml文件,可用于复制server间的session信息。访问ManagedServer底下的应用服务校验应用部署是否成功93:7081/material93:7082/materialApache配置拷贝WebLogicWebServer插件到C:\ProgramFiles\ApacheSoftwareFoundation\Apache2.2\modules目录底下修改ApacheHttpd.conf配置文件重启Apache服务测试Apache作为代理分发请求服务是否成功测试篇单点故障测试在login.jsp里面增加如下系统信息out.println<"request.getContextPath<>=="+request.getContextPath<>>;out.println<"request.getLocalAddr<>=="+request.getLocalAddr<>>;out.println<"request.getLocalName<>=="+request.getLocalName<>>;out.println<"request.getLocalPort<>=="+request.getLocalPort<>>;out.println<"request.getLocale<>=="+request.getLocale<>>;out.println<"request.getServerName<>=="+request.getServerName<>>;out.println<"request.getServerPort<>=="+request.getServerPort<>>;out.println<"request.getServletPath<>=="+request.getServletPath<>>;out.println<"request.getRemoteAddr<>=="+request.getRemoteAddr<>>;out.println<"request.getRemoteHost<>=="+request.getRemoteHost<>>;out.println<"request.getRemotePort<>=="+request.getRemotePort<>>;访问应用,可以查看到Apache分发到Server7081上停止Server7081服务〔点击关闭按钮当前请求被自动切换到Server7082上调优篇存初始化参数调优修改方法通过修改C:\bea\user_projects\domains\material\bin\setDomainEnv.cmd文件修改所有Server的存配置〔需重启生效判断参数修改是否已生效通过启动信息查看通过控制台查看ServerLogging参数调优分别调整AdminServer及ManagedServer底下的Logging参数调整日志级别禁用HTTPAcesslog<去掉复选框选中>DataSource参数调优初始及最接大小设置高级选项配置<Advanced>连接池泄漏收集<2008-5-15上午08时15分16秒dbc_driver_T4CConnection6e76c aternal.ConnectionEnv.setup<ConnectionEnv.java:293> atmon.resourcepool.ResourcePoolImpl.reserveResource<ResourcePoolImpl.java:306> atmon.resourcepool.ResourcePoolImpl.reserveResource<ResourcePoolImpl.java:284> aternal.ConnectionPool.reserve<ConnectionPool.java:466> aternal.ConnectionPool.reserve<ConnectionPool.java:357> aternal.ConnectionPoolManager.reserve<ConnectionPoolManager.java:83> aternal.ConnectionPoolManager.reserve<ConnectionPoolManager.java:96> atweblogic.jdbc.pool.Driver.connect<Driver.java:150> atweblogic.jdbc.jts.Driver.getNonTxConnection<Driver.java:647> atweblogic.jdbc.jts.Driver.connect<Driver.java:137> aternal.RmiDataSource.getConnection<RmiDataSource.java:359> atConnection<dbUtils.java:116> <SelectContractAction.java:25>维护篇定时整理WebLogicServer日志信息及WebApplication临时文件容my_cron_monthly.batechoon

setyear=%date:~0,4%

setmonth=%date:~5,2%

setday=%date:~8,2%

if%month%GEQ10

<

setdecMonth=%month%

>else<

if%month%GEQ08<

setdecMonth=%month:~1,1%

>else<

setdecMonth=%month%

>

>

set/alastMonth=%decMonth%-1

if%lastMonth%==0<

setlastMonth=12

set/ayear=%year%-1

>else<

if%lastMonth%

LSS10<

setlastMonth=0%lastMonth%

>

>

setAPPLY_MONTH=%year%-%lastMonth%

setAPPLYMONTH=%year%%lastMonth%

if%day%EQU1<

cdd:

cd\

REMAdminServer

cdD:\bea816\user_projects\domains\finance_domain\AdminServer

del/qAdminServer.log00*

REMProxyServer

cdD:\bea816\user_projects\domains\finance_domain\ProxyServer

del/qProxyServer.log00*

REMnode20_7081

cdD:\bea816\user_projects\domains\finance_domain\node20_7081

del/qnode20_7081.log00*

REMnode20_7082

cdD:\bea816\user_projects\domains\finance_domain\node20_7082

del/qnode20_7082.log00*

REMServerLog

cdD:\bea816\user_projects\domains\finance_domain\serverlog\node20_7081

del/q%APPLY_MONTH%*.log

cdD:\bea816\user_projects\domains\finance_domain\serverlog\node20_7082

del/q%APPLY_MONTH%*.log

REMAppLog

cdD:\financelog

mkdir%APPLY_MONTH%

move%APPLY_MONTH%*.log%APPLY_MONTH%

moveerrlog.log.%APPLY_MONTH%*%APPLY_MONTH%

REMTempFile

cdD:\mss\finance\temp\impfiles\budgetexcel

del/q*%APPLYMONTH%*.xls

cdD:\mss\finance\temp\impfiles

del/q*%APPLYMONTH%*.xls

cdD:\mss\finance\temp\expfiles\budgetexcel

del/q*%APPLYMONTH%*.xls

cdD:\mss\finance\temp\expfiles

del/q*%APPLYMONTH%*.xls

>echooff常见问题篇Productisnotinstalled问题描述:Productisnotinstalled原因分析:安装升级文件需先安装源文件解决方案:安装源文件Unabletoreceiveselfgeneratedmulticastmessages问题描述:<2008-8-31下午03时45分54秒CST><Error><Cluster><BEA-000170><ServerServer7081didnotreceivethemulticastpacketsthatweresentbyitself><2008-8-31下午03时45分54秒CST><Critical><Health><BEA-310006><CriticalSubsystemClusterhasfailed.SettingserverstatetoFAILED.Reason:Unabletoreceiveselfgeneratedmulticastmessages><2008-8-31下午03时45分54秒CST><Critical><WebLogicServer><BEA-000385><Serverhealthfailed.Reason:healthofcriticalservice'Cluster'failed><2008-8-31下午03时45分54秒CST><Notice><WebLogicServer><BEA-000365><ServerstatechangedtoFAILED>原因分析:BEA-000170Error:ServerserverNamedidnotreceivethemulticastpacketsthatweresentbyitselfDescriptionServerserverNamedidnotreceivethemulticastpacketsthatweresentbyitselfCauseEachWLSserverisexpectedtoreceivethemessagesitmulticasttothemulticastgroupitispartof.Sincetheserverdoesnotreceiveitsownmessages,itisindicativeofthefactthatmulticastaddressconfigurationintheclusterconfigurationortheinterfaceaddressspecificationmaybewrong.ActionPleaseensurethattheclusterconfigurationandserverinterfaceconfigurationarevalid解决方案:使用如下命令检查当前网络是否支持MultiCastjava-cpc:\bea\weblogic92\server\lib\weblogic.jarutils.MulticastTest-NServer7081网络协议里面包含"shunracloudwanemulator",去掉即可Thechangewillnotbepersistedineithercase问题描述:<2008-9-3上午09时45分51秒CST><Warning><J2EEDeploymentSPI><BEA-260128><ChangesnotallowedtoDTDbaseddescriptors.Theattempttomodifyproperty'ServletName'inWEB-INF/weblogic.xmlformodule'material'willbevetoedifpossible.Thechangewillnotbepersistedineithercase.>原因分析:解决方案:配置ManagedServer的StagingMode为nostageCannotloadC:/ProgramFiles/ApacheSoftwareFoundation/Apache2.2/modules/mod_wl_22.sointoserver问题描述:C:\ProgramFiles\ApacheSoftwareFoundation\Apache2.2\bin>httpd-thttpd:Syntaxerroronline62ofC:/ProgramFiles/ApacheSoftwareFoundation/Apache2.2/conf/httpd.conf:CannotloadC:/ProgramFiles/ApacheSoftwareFoundation/Apache2.2/modules/mod_wl_22.sointoserver:%1\xb2\xbb\xca\xc7\xd3\xd0\xd0\xa7\xb5\xc4Win32\xd3\xa6\xd3\xc3\xb3\xcc\xd0\xf2\xa1\xa3原因分析:通过httpd–t校验httpd.conf文件,无法加载mod_wl_22.so文件解决方案:需下载对应操作系统环境、对应版本的插件mod_wl_22.soNobackendserveravailableforconnection问题描述:原因分析:查看后台被管理服务器是否已启动解决方案:启动被管理服务器集群取得客户端IP问题问题描述:request.getContextPath<>==/materialrequest.getLocalName<>==wanglincairequest.getLocalPort<>==7082request.getLocale<>==zh_CN

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论