Skip to main content

Home/ InfokeyDEV/ Group items matching "testing" in title, tags, annotations or url

Group items matching
in title, tags, annotations or url

Sort By: Relevance | Date Filter: All | Bookmarks | Topics Simple Middle
Benx Shen

Preventing Java's java.lang.OutOfMemoryError: PermGen space failure | Eric's Agile Answers - 0 views

  • The "OutOfMemoryError: PermGen space" message is normally encountered during development activites where a long-running JVM is asked to load/unload builds.
  • The message is a symptom of an incomplete garbage collection sweep where resources are not properly released upon unload/restart. There is no shortage of debate (Hibernate forum, Sun forum, Spring Framework forum ) regarding which codebase is responsible for this symptom, but the finger of blame has been pointed at CGLIB, Hibernate, Tomcat, and even Sun's JVM.
  • In my experience, the most pain-free method of resolving this issue is to switch from Sun's JDK implementation to BEA's freely available JRockit implementation.
  • ...1 more annotation...
  • On a recent project utilizing Tomcat 5.5.12 with Hibernate, I was plagued with this PermGen error, at times even experiencing it during web-based unit testing. Since making the switch to JRockit, I have not encountered this issue even once.
  •  
    又是一位和我一樣都慘遭 "PermGen Space" 錯誤的開發者了!
    很奇怪,為何會發生這樣的錯誤呢?
    其中這篇文章所提到的技術,恰巧都是我現在所發生問題的架構,像是 Hibernate, Spring, Tomcat 等,還有 Sun JVM.... Orz
    比較特別的是,多數提供的解決方式,都是去調整 JVM 的設定(-XX:MaxPermSize=256m)。這位老兄則是採用了 BEA JRockit 版本的 JVM 解決此問題,他表示至少這招對他是管用的!
    不過,軟體開發很多時候都會發生這種「魔咒」,這種狀況底下,就好像一個並無可醫的人,只好嘗試各種偏方了!

Benx Shen

mock框架搞什麼搞? - 0 views

  •  
    發文者 taowen 提出了一個對於 mock 框架(jMock, EasyMock)的使用經驗,認為這樣的框架並沒有帶給他測試上的方便性,反而似乎使得測試程式碼更多更亂,因此,他提出了對於 mock 框架技術的質疑。

    不過,taowen 並不是單純地從情緒上發揮論述,而是舉出了一些簡單的程式馬來進行測試,試圖寫 mock 測試程式並非那麼簡易。另外,他自己另外展示了如何不用 mock 框架來進行單元測試。從這一點來看,taowen 很棒地說明了該如何進行單元測試,無論使用哪一種方法。

    值得我學習的是,taowen 提出了自己對於 mock 框架的觀點,他的經驗告訴他:mock 到底在搞什麼東西!?於是勇敢地提出質疑。這樣的質疑,我認為比學習技術本身更有價值。從結果來看,這引發了相當多的迴響與討論,有人認為這樣,卻有人不以為然。(我相信 taowen 心臟必須要夠強,才能夠接受不同的意見而不感到生氣。我覺得我還需要學習這樣的質疑態度與接受批評的雅量。)總的來說,我發現我看到了更多元的資訊,作為一個學習者,比起單純地從一篇文章學習技術還要能夠學得更多。

    雖然我使用 mock 技術有一小段時間,而我也懂得 mock 真正的意圖以及單元測試所帶來的價值,這並不會使得我一開始就認為 taowen 是錯誤的,即便看完他的發表之後,我仍然不認為他不應該提出這樣的質疑(我想我已經在上面一段表達我的「推崇」之意,以及我所認為背後的價值)。和一些參與討論的網友一樣,認為這不是一個完全適當的例子,但 taowen 也的確指出了 mock 技術會讓開發者詬病之處。然而,這並不足以說明 mock 真是非常難用,或造成了單元測試的困擾。實際的狀況是,我們得再從 mock 技術所帶來的好處出發,瞭解了之
installonairipa

Best Beta App, iOS App,advanced Android App Distribution Services advanced - 0 views

  •  
    Install On Air is best application distribution service over the air. We offer Beta App, iOS App, and Android App distribution. Don't waste time and have an easy process for testing builds. advanced advanced advanced
Benx Shen

Tomcat 實用小技巧-Tomcat-Java - 3 views

Ching Yi Chan

Android aster slider - 6 views

  •  
    Chinese new year animals horoscope2016
    Happy Chinese new year 2016 messages & quotes
    Happy new year 2016 greetings for Chinese
    Chinese new year 2016 funny poems
‹ Previous 21 - 26 of 26
Showing 20 items per page