Linux環(huán)境VNC服務(wù)安裝、配置與使用http://blog.chinaunix.net/space.php?uid=57865&do=blog&cuid=1982905
posted @
2011-08-29 17:09 身在半空 閱讀(299) |
評論 (0) |
編輯 收藏
WebLogic9.2拒絕訪問的異常分析及解決方案
之前分析不對,特此改正
一、 故障概述
近三個月來,已有3次發(fā)生業(yè)務(wù)自動開通系統(tǒng)執(zhí)行平臺維護(hù)系統(tǒng)訪問異常,所有頁面拒絕訪問并提示:
Connection rejected, the server is in the RUNNING state. Starting service weblogic.application.internal.BackgroundDeploymentService$WaitForBackgroundCompletion, 110 of 112. Last service weblogic.deploy.service.internal.adminserver.HeartbeatService took 2ms. |
多點(diǎn)施工管理平臺維護(hù)系統(tǒng)同時出現(xiàn)上述問題,部署這兩個維護(hù)系統(tǒng)的WebLogic服務(wù)器服務(wù)異常。
該故障使工單查詢、系統(tǒng)監(jiān)控、失敗工單轉(zhuǎn)移和受理等功能無法使用。對業(yè)務(wù)工單的自動執(zhí)行無影響,所有執(zhí)行服務(wù)器正常。
每次均是采用強(qiáng)制停止服務(wù)后重啟的方式恢復(fù)服務(wù)。
二、 故障描述
訪問業(yè)務(wù)自動開通系統(tǒng)執(zhí)行平臺維護(hù)系統(tǒng)和多點(diǎn)施工管理平臺維護(hù)系統(tǒng)均報以下異常:
Connection rejected, the server is in the RUNNING state. Starting service weblogic.application.internal.BackgroundDeploymentService$WaitForBackgroundCompletion, 110 of 112. Last service weblogic.deploy.service.internal.adminserver.HeartbeatService took 2ms. |
此時,網(wǎng)絡(luò)狀況、設(shè)備狀態(tài)、服務(wù)器操作系統(tǒng)均正常;WebLogic應(yīng)用服務(wù)器異常,其控制臺無法正常訪問,顯示報告同業(yè)務(wù)自動開通系統(tǒng)執(zhí)行平臺維護(hù)系統(tǒng),且不能正常停止WebLogic服務(wù)。
經(jīng)查,WebLogic應(yīng)用服務(wù)器在記錄以下日志后無法正常訪問:
####<2011-8-13 上午10時46分15秒 CST> <Critical> <Server> <tfh-node2> <TFHWEB> <DynamicListenThread[Default]> <<WLS Kernel>> <> <> <1313203575118> <BEA-002616> <Failed to listen on channel "Default" on 132.60.5.29:8080, failure count: 2, failing for 1 seconds, java.net.SocketException: 無效的自變量> ####<2011-8-13 上午10時46分59秒 CST> <Critical> <Server> <tfh-node2> <TFHWEB> <DynamicListenThread[Default]> <<WLS Kernel>> <> <> <1313203619270> <BEA-002617> <Attempting to close and reopen the server socket on on channel "Default" on 132.60.5.29:8080.> ####<2011-8-13 上午10時47分09秒 CST> <Notice> <Server> <tfh-node2> <TFHWEB> <DynamicListenThread[Default]> <<WLS Kernel>> <> <> <1313203629287> <BEA-002614> <Reopening channel "Default" on 132.60.5.29:8080.> ####<2011-8-13 上午10時47分09秒 CST> <Notice> <Server> <tfh-node2> <TFHWEB> <DynamicListenThread[Default]> <<WLS Kernel>> <> <> <1313203629787> <BEA-002615> <After having failed to listen, the server is now listening on channel "Default" on 132.60.5.29:8080.> |
之后所有訪問均記錄如下日志:
####<2011-8-13 上午10時47分09秒 CST> <Notice> <Server> <tfh-node2> <TFHWEB> <DynamicListenThread[Default]> <<WLS Kernel>> <> <> <1313203629787> <BEA-002615> <After having failed to listen, the server is now listening on channel "Default" on 132.60.5.29:8080.> |
三、 處理過程和解決方法
使用正常停止WebLogic服務(wù)的命令無法停止服務(wù),強(qiáng)行kill掉WebLogic服務(wù)進(jìn)程,并按照正常流程啟動WebLogic服務(wù)
。
四、 故障分析和建議
1、故障的原因分析
此故障是由WebLogic9.2的bug導(dǎo)致,Oracle官方解釋如下:
在 Solaris 9 或更高版本上使用 JDK 1.5 時,半閉套接口上的任何設(shè)置操作都會引發(fā) SocketException。這延遲了服務(wù)器在相同端口上接受新連接,而且如果故障間的最大補(bǔ)償時間達(dá)到最大值,還會導(dǎo)致回收服務(wù)器套接口。
需要安裝CR283953補(bǔ)丁解決該BUG。
以下為Oracle官方對CR283953補(bǔ)丁的英文解釋:
http://docs.oracle.com/cd/E13222_01/wls/docs100/issues/known_resolved.html
On Solaris 9 or later, with JDK 1.5, any set operation on a half-closed socket throws a SocketException. This delayed the server in accepting new connections on the same port and also caused the server socket to be recycled if the maximum backoff time between failures reaches its maximum.
Solution:
WebLogic Server no longer throws an exception in connection with a set operation on half-closed sockets.
2、改進(jìn)措施和計劃
1.為WebLogic服務(wù)編寫守護(hù)程序,定時查看WebLogic服務(wù)狀態(tài),若出現(xiàn)故障則重啟WebLogic服務(wù)。守護(hù)程序采用crontab+shell腳本實(shí)現(xiàn),參見《掃描日志重啟WebLogic服務(wù)shell腳本》。
2.獲取CR283953補(bǔ)丁,并安裝。BEA已被oracle收購,補(bǔ)丁已不能免費(fèi)下載,具體詢oracle客服。
posted @
2011-08-16 17:31 身在半空 閱讀(3626) |
評論 (3) |
編輯 收藏
操作系統(tǒng):Solaris
1.使用oracle用戶進(jìn)行定時備份,添加crontab時要用root用戶添加,執(zhí)行命令為:crontab -e oracle;
2.shell腳本中不能使用“()”,如
exp ywkt/ywkt@ywkt buffer=64000 file=/backup/config_$dd.dmp log=/backup/exp_config.log tables=
(ACTIONTYPEIDLIST,RESOURCE_CONFIGURE)。會提示紅色括號附件錯誤。
附個人感覺有用的鏈接:
http://space.itpub.net/4227/viewspace-68717
http://www.itpub.net/thread-92487-1-1.html
posted @
2011-06-09 15:47 身在半空 閱讀(563) |
評論 (0) |
編輯 收藏
說明:IbosExecHistory系列表是提供歷史數(shù)據(jù)查詢的歷史表;
IbosExecHistory為試圖;
IbosExecHistory_XXXX中“XXXX”為年份,供存放該年所有歷史數(shù)據(jù),此類表做歷史數(shù)據(jù)備份用,不提供維護(hù)系統(tǒng)查詢;
IbosExecHistory_month_X中“X”為月份(1-9不加0),此類表做循環(huán)使用,根據(jù)維護(hù)系統(tǒng)要求查詢時提供6個月內(nèi)數(shù)據(jù),故在此前六個月之外的數(shù)據(jù)可清楚。最后及時清楚,否則將造成與往年數(shù)據(jù)共存現(xiàn)象,較難分離。若造成累計,建議將數(shù)據(jù)使用bcp導(dǎo)出后,對文件進(jìn)行操作,不要在數(shù)據(jù)庫中進(jìn)行操作。
工作原理:為減少對數(shù)據(jù)庫性能造成影響,使用bcp和truncate table操作,做truncate table時應(yīng)謹(jǐn)慎。
本文目的:提供IbosExecHistory_month_X表歷史數(shù)據(jù)清除步驟。
注:以下步驟以2010年5月份歷史數(shù)據(jù)清除為例,在實(shí)際操作中需更改重要sql語句,謹(jǐn)記。
具體步驟:
1.查詢年份表中是否已有該月數(shù)據(jù),結(jié)果為0,則順序執(zhí)行
select count(*) from IbosExecHistory_2010 where SendTime>='2010-05-01' and SendTime<'2010-06-01'
2.查詢月份表中是否已清除,結(jié)果不為0,則順序執(zhí)行
select count(*) from IbosExecHistory_month_5
3.使用bcp命令進(jìn)行數(shù)據(jù)導(dǎo)出,bcp命令OS命令,在已安裝sybase數(shù)據(jù)庫客戶端的系統(tǒng)上方可使用
bcp test..IbosExecHistory_month_5 out d:\IbosExecHistory_month_5.txt -c -t "{" -r "\r\n" -Uibos -Pibos123 -Stfh28
4.使用bcp命令進(jìn)行數(shù)據(jù)導(dǎo)入
bcp test..IbosExecHistory_2010 in d:\IbosExecHistory_month_5.txt -c -t "{" -r "\r\n" -Uibos -Pibos123 -Stfh28
5.清除月份表數(shù)據(jù)
truncate table IbosExecHistory_month_5
posted @
2010-12-22 15:54 身在半空 閱讀(291) |
評論 (0) |
編輯 收藏
摘要: Oracle SQL Developer外觀改為windows后啟動異常的解決方法
刪除我的文檔下面的 \AppData\Roaming\SQL Developer文件夾即可。
閱讀全文
posted @
2010-06-24 11:01 身在半空 閱讀(1602) |
評論 (0) |
編輯 收藏
引自:http://www.examda.com/linux/fudao/20090928/091946607.html
在Windows和Linux(Fedora/Ubuntu/RedHat)中安裝了NetBeans后,會遇到菜單等顯示亂碼的
問題。這里告訴大家如何解決中文顯示亂碼的問題,包括Windows、Fedora、Ubuntu下NetBeans中文亂碼解決辦法。
一、Windows下NetBeans中文亂碼解決辦法
l 找到你的Netbeans安裝目錄下的etc文件夾
l 用記事本打開netbeans.conf
l 找到netbeans_default_options(不是最后那個帶句號的…),
在其屬性的最后(引號以內(nèi))加一個空格, 再加上-J-Dfile.encoding=UTF-8
二、Fedora NetBeans中文亂碼解決辦法
l 拷貝/usr/share/fonts/zh_CN/TrueType中的ttf文件到你的JDK安裝目錄下
jre/lib/fonts/fallback里,如果在”java安裝目錄/jre/lib/fonts”下沒有”fallback”這個目錄,
可以手工創(chuàng)建一個,即可解決。
l
如果還不行的話,打開Netbeans的默認(rèn)配置文件:我的在/home/www.dengchao.org/netbeans-6.5.1/etc
/netbeans.conf。
l 找到netbeans_default_options這一項(xiàng)(注意不要在#后面,那個是注釋)。
l 在最后加上:(空格)-J-Duser.language=zh -J-Duser.country=CNs
-J-Dfile.encoding=UTF-8
三、Ubuntu NetBeans中文亂碼解決辦法
l 在$JAVA_HOME/jre/lib/fonts目錄下創(chuàng)建一名為fallback的目錄
l
將一可顯示中文的字體放到fallback目錄下,可以到Ubuntu字體目錄(/usr/share/fonts)去復(fù)制一份或者用ln命令做一個硬鏈
接到該目錄(注:軟鏈接無效)
l 再運(yùn)行NetBeans(or NetBean)即可
posted @
2010-05-16 13:44 身在半空 閱讀(1275) |
評論 (0) |
編輯 收藏
對于過濾流的關(guān)閉,一般采取先開后關(guān)、由外向內(nèi)的原則。
FileInputStream f=new FileInputStream( "file ");
BufferedInputStream b=new BufferedInputStream(f);
DataInputStream d=new DataInputStream(b);
關(guān)閉”真正有意義的事情在于“釋放系統(tǒng)資源”。在這個例子里,只有FileInputStream占據(jù)了系統(tǒng)資源(打開了一個文件),另外兩個流對象只是從數(shù)據(jù)處理角度做的包裝(可能會占用一些內(nèi)存,但不占用其它“系統(tǒng)資源”)。所以,只需要確保關(guān)閉了FileInputStream即可。
在實(shí)際編程實(shí)踐中,你不一定總能清楚地知道每層的流對象是否占據(jù)了系統(tǒng)資源,所以,最安全(也是最常規(guī))的做法就是
關(guān)閉最外層的那個對象。這種逐層包裝的對象在實(shí)現(xiàn)上都會有一個特點(diǎn),像“關(guān)閉”這種操作都會逐層向內(nèi)調(diào)用。
引自:http://blog.sina.com.cn/s/blog_6307d85b0100gqtt.html
posted @
2010-02-25 11:26 身在半空 閱讀(1154) |
評論 (0) |
編輯 收藏