jGRASP 上的編譯時間很慢——為什麼? (Slow compile times on jGRASP -- why?)


問題描述

jGRASP 上的編譯時間很慢——為什麼? (Slow compile times on jGRASP ‑‑ why?)

抱歉,我問了一個更技術性的問題,但我現在很困惑。今年我的一些 AP 學生在他們的 MacBook(優勝美地)上使用帶有 Java 7 的 jGRASP 遇到了一個奇怪的情況,一天的第一次編譯通常需要幾分鐘才能完成。任何程序的後續重新編譯幾乎都是立即進行的,就好像沒有問題一樣。第二天,問題又出現了。

有什麼可能導致這個問題的想法嗎?我已經要求學生下載 JDK 和 jGRASP 並重新安裝它們,但這似乎並不能解決問題。班上其他機器設置看似相同的學生沒有問題。好困惑???

謝謝!羅傑


參考解法

方法 1:

Most likely this is an issue with the file system cache. Have them try entering the "purge" command in a terminal, and see if the problem repeats immediately afterward. I'm not familiar with diagnosing such problems, but that would at least point you in the right direction. One obvious "cause" would be too many applications running (or not enough memory).

If that isn't it, have them compile from the command line for the first compile of the day, and see if it repeats. That will tell you if it is jGRASP or javac that is triggering the problem (I say triggering, because some OS issue is most likely the actual cause).

(by user2356530lbarowski)

參考文件

  1. Slow compile times on jGRASP ‑‑ why? (CC BY‑SA 2.5/3.0/4.0)

#jgrasp #performance #java-7 #osx-yosemite #compilation






相關問題

jGrasp Java Break Ctrl-C 在運行期間 (jGrasp Java Break Ctrl-C during Run)

使用 jGRASP 的 Java 編譯器錯誤 (Java compiler errors using jGRASP)

無法與 .class 文件交互 (Unable to interact with .class files)

“目標不存在或不在 PATH 上。” 在“製作”之後 ("Target does not exist or is not on PATH." After 'make'-ing)

jGRASP 上的編譯時間很慢——為什麼? (Slow compile times on jGRASP -- why?)

使用並行數組和用戶輸入 (Using Parrallel array and user input)

在製作蛇遊戲的過程中,無法弄清楚如何使動作正確 (In process of making snake game, Can't figure out how to make the movement right)

未找到主要方法、小程序或 MIDlet (No main methods, applets, or MIDlets found)

在 mac 上運行 jGRASP 時不顯示彩色按鈕? (Colored buttons don't show up when jGRASP is run on mac?)

java.lang.ClassCastException:trail1modified 不能轉換為 java.applet.Applet (java.lang.ClassCastException: trail1modified cannot be cast to java.applet.Applet)

如何顯示多個用戶輸入的答案以及如何將其全部寫入文本文件 (How to display several user inputted answers and how to write it all to a text file)

在 Jgrasp 中丟失了我的工具欄如何找回它? (Lost my toolbar in Jgrasp how to get it back?)







留言討論