Websphere Application Server 有提供一個 script 來大量編譯 JSP 檔案成 Java Class,如果 JSP 有錯誤的時候,可以拿來看看產出的 Java source,粉好用喔!!
/usr/WebSphere/AppServer/bin/JspBatchCompiler.sh -cell.name yourCell -node.name yourNode -server.name yourServer -enterpriseapp.name MyTestApp -filename /test/body.jsp -verbose true -keepgenerated true
IBM中国技术支持与下载 - 蓝色航标 - 如何在 WebSphere Application Server 5.0.x 中批量编译 JSP?
Friday, November 18, 2005
Friday, July 22, 2005
Tuesday, February 15, 2005
Resolve cvs login error : server has insufficient rights
if you encounter cvs error on windows system that says :
Cannot login : Server has insufficient rights to validate user account
try to add the user in $CVSROOT/passwd file using the following command :
cvs -d :local:c:\cvsrepo\neb passwd -a robin
Adding user robin
New password: *****
Verify password: *****
Cannot login : Server has insufficient rights to validate user account
try to add the user in $CVSROOT/passwd file using the following command :
cvs -d :local:c:\cvsrepo\neb passwd -a robin
Adding user robin
New password: *****
Verify password: *****
Friday, February 04, 2005
關閉 Windows 2000 / XP 不常用的服務(Services)
Windows 2000 或 XP 使用久了之後,是不是覺得會越來越慢
甚至發生系統資源不足的現象,例如平常使用的程式無法開啟,IE開不起來,瀏覽網頁常常出問題,等等
如 果你有這樣的問題(如果你常不關機的話,應該有遇到過吧),雖然微軟宣稱 windows 2000以後的洗統資源會依應用程式的需求兒加大,但是,這樣的問題還是經常會發生,關閉不必要的服務,減少系統資源浪費,應該會讓你的日子好過些,下面 這個網站會教你如何關閉不必要的系統服務(你知道的,這種東西在M$的產品裡應該很常見 :-P )
http://www.blackviper.com/
windows xp sp2
http://www.blackviper.com/WinXP/servicecfg.htm
PDF的版本:
windows 2000 http://www.blackviper.com/WIN2K/Files/2000Services.zip
ps. 作者養了幾隻很可愛的貓喔 :)
甚至發生系統資源不足的現象,例如平常使用的程式無法開啟,IE開不起來,瀏覽網頁常常出問題,等等
如 果你有這樣的問題(如果你常不關機的話,應該有遇到過吧),雖然微軟宣稱 windows 2000以後的洗統資源會依應用程式的需求兒加大,但是,這樣的問題還是經常會發生,關閉不必要的服務,減少系統資源浪費,應該會讓你的日子好過些,下面 這個網站會教你如何關閉不必要的系統服務(你知道的,這種東西在M$的產品裡應該很常見 :-P )
http://www.blackviper.com/
windows xp sp2
http://www.blackviper.com/WinXP/servicecfg.htm
PDF的版本:
windows 2000 http://www.blackviper.com/WIN2K/Files/2000Services.zip
ps. 作者養了幾隻很可愛的貓喔 :)
Tuesday, February 01, 2005
Websphere 能安裝的 AP 總數計算方式
這是從 Websphere Journal 網路版本中節錄出來的,計算server中總共能裝多少AP
The total memory used is equal to the current heap size plus the Java interpreter. The size of the Java interpreter depends on the heap size. For example, a 256MB heap typically has approximately 64 MB additional from the interpreter, whereas a 128MB heap will have approximately 42 MB. Therefore, an application server with a maximum heap size of 256MB can grow to approximately 320MB of physical memory. A 128MB node agent will grow to approximately 170MB.
via: http://www.findarticles.com/p/articles/mi_m0QVB/is_6_3/ai_n6123202
Total Physical Memory |
| 4096 MB |
Other processes (operating system and
other processes) memory | OS + process 1 + process 2 ... | 400 MB |
Deployment Manager Memory (if
co-resident) | DM Max heap + Java interpreter | 0 (DM not co-resident) |
Node Agent Memory | NA Max heap + Java interpreter | 128 + 42 = 170 MB |
Memory Available for Application
Servers | Total memory - other processes - node
agent memory | 4096MB - 400 - 170 = 3430MB |
Single Application Server Memory | App Srv Max heap + Java interpreter | 256 + 64 = 320 MB |
Maximum Number of Application Servers
| (Available memory/Single application
server memory) * margin for safety | (3430/320) * 0.8 = 8 application
server maximum |
The total memory used is equal to the current heap size plus the Java interpreter. The size of the Java interpreter depends on the heap size. For example, a 256MB heap typically has approximately 64 MB additional from the interpreter, whereas a 128MB heap will have approximately 42 MB. Therefore, an application server with a maximum heap size of 256MB can grow to approximately 320MB of physical memory. A 128MB node agent will grow to approximately 170MB.
via: http://www.findarticles.com/p/articles/mi_m0QVB/is_6_3/ai_n6123202
Subscribe to:
Posts (Atom)