0
我對應用程序的響應時間有一些抱怨,所以我正在尋找我可以加速的地方。使用一個分析階段監聽器和一些分析包裝器,我期望找到一些需要緩存的東西。但是,似乎並非如此。一個典型的例子來看看起來是這樣的:做一些性能調優,不知道如何找到在哪裏花費時間
Controller>afterRestoreView completed in 0:00.000.044769
PhaseProfiler>LIFECYCLE>RESTORE_VIEW completed in 0:00.017.090231
PhaseProfiler>LIFECYCLE>APPLY_REQUEST_VALUES completed in 0:00.012.076884
PhaseProfiler>LIFECYCLE>PROCESS_VALIDATIONS completed in 0:00.003.804324
PhaseProfiler>LIFECYCLE>UPDATE_MODEL_VALUES completed in 0:00.002.898762
PhaseProfiler>LIFECYCLE>INVOKE_APPLICATION completed in 0:00.000.113143
Controller>beforeRenderResponse completed in 0:00.000.012222
Controller>afterRenderResponse completed in 0:00.000.003143
Counted resolves: 4975
Top ten most expensive resolves:
Total took a total of 0:00.020.281386s
flashScope took a total of 0:00.006.770973s
caseBean took a total of 0:00.004.517358s
caseFilter took a total of 0:00.003.038453s
row took a total of 0:00.001.741708s
session took a total of 0:00.001.026528s
compositeData took a total of 0:00.000.983215s
uiService took a total of 0:00.000.641919s
requestScope took a total of 0:00.000.391530s
options took a total of 0:00.000.176558s
PhaseProfiler>LIFECYCLE>RENDER_RESPONSE completed in 0:02.900.494895
PhaseProfiler>LIFECYCLE completed in 0:02.936.944360
所以東西的renderResponse正在約2.9秒,但它不是我的事件處理程序,這是不是我的變量綁定。使用System.nanoTime並不是完全的性能,但與System.currentTimeMillis相比似乎增加了約一秒或更少的時間,所以我仍然缺少相當多的時間。我只能佔不到21ms。
是否有更深的挖掘技術?
我仍然在8.5.3上,所以沒有R9是一個功能,而不是一個bug:D。 –
XPages Toolbox應該可以在8.5.2+上運行。關鍵要素是將數據庫放在正確的位置(根目錄),jar文件指向的位置是在需要進入Domino程序文件夾的文本配置文件中定義的,該位置指向notes.ini。還需要對java安全策略進行更改(這可能僅用於更改日誌記錄級別)。因此,不推薦用於生產服務器。 –