安裝xmakrs后,只需要在它的網站注冊一個賬號,你收藏的網站就會定期備份到你的賬號中。這樣就可以方便的備份你的收藏網址了。
在你收藏某個網站的時候,它會根據別人收藏該網站時使用的標簽,給你推薦一個使用人數最多的標簽。
由此,它給出了我認為最好的一個功能:在你使用google進行搜索的時候,它會自動在google的每一個搜索結果后面,加上一個該搜索結果在相關領域內收藏次數的名次。
以我的搜索:UML為例,它就會在每個google的搜索結果后面給出其在xmarks中被以UML標簽收藏的次數的排名。由此我就能很容易的發現,argouml是被人以UML標簽收藏次數最多的網站,所以我想argouml應該就是我想找的最火的開源UML建模工具
Tab and window shortcuts
Ctrl+N | Opens a new window. |
Ctrl+T | Opens a new tab. |
Ctrl+Shift+N | Opens a new window in incognito mode. |
Ctrl+B | Toggles the bookmarks bar on and off. |
Press Ctrl+O, then select file. | Opens a file from your computer in Google Chrome. |
Press Ctrl and click a link. Or click a link with your middle mouse button (or mousewheel). | Opens the link in a new tab in the background . |
Press Ctrl+Shift and click a link. Or pressShift and click a link with your middle mouse button (or mousewheel). | Opens the link in a new tab and switches to the newly opened tab. |
Press Shift and click a link. | Opens the link in a new window. |
Ctrl+Shift+T | Reopens the last tab you've closed. Google Chrome remembers the last 10 tabs you've closed. |
Drag a link to a tab. | Opens the link in the tab. |
Drag a link to a blank area on the tab strip. | Opens the link in a new tab. |
Drag a tab out of the tab strip. | Opens the tab in a new window. |
Drag a tab out of the tab strip and into an existing window. | Opens the tab in the existing window. |
Press Esc while dragging a tab. | Returns the tab to its original position. |
Ctrl+1 through Ctrl+8 | Switches to the tab at the specified position number on the tab strip. |
Ctrl+9 | Switches to the last tab. |
Ctrl+Tab orCtrl+PgDown | Switches to the next tab. |
Ctrl+Shift+Tab orCtrl+PgUp | Switches to the previous tab. |
Ctrl+Shift+Q | Closes Google Chrome. |
Ctrl+W or Ctrl+F4 | Closes the current tab or pop-up. |
Click a tab with your middle mouse button (or mousewheel). | Closes the tab you clicked. |
Right-click, or click and hold either the Back or Forward arrow in the browser toolbar. | Displays your browsing history in the tab. |
Press Backspace | Goes to the previous page in your browsing history for the tab. |
PressShift+Backspace | Goes to the next page in your browsing history for the tab. |
Click either the Back arrow, Forward arrow, or Go button in the toolbar with your middle mouse button (or mousewheel). | Opens the button destination in a new tab in the background. |
Double-click the blank area on the tab strip. | Maximizes or minimizes the window. |
Address bar shortcuts
Use the following shortcuts in the address bar:
Type a search term, then press Enter. | Performs a search using your default search engine. |
Type a search engine keyword, press Space, type a search term, and press Enter. | Performs a search using the search engine associated with the keyword. |
Begin typing a search engine URL, pressTab when prompted, type a search term, and press Enter. | Performs a search using the search engine associated with the URL. |
Ctrl+L | Highlights the URL. |
Ctrl+E | Places a '?' in the address bar. Type a search term after the question mark to perform a search using your default search engine. |
Press Ctrl+Shift and the left arrow together. | Moves your cursor to the preceding key term in the address bar |
Press Ctrl+Shift and the right arrow together. | Moves your cursor to the next key term in the address bar |
Ctrl+Backspace | Deletes the key term that precedes your cursor in the address bar |
Select an entry in the address bar drop-down menu with your keyboard arrows, then press Shift+Delete. | Deletes the entry from your browsing history, if possible. |
Click an entry in the address bar drop-down menu with your middle mouse button (or mousewheel). | Opens the entry in a new tab in the background. |
Press Page Up orPage Down when the address bar drop-down menu is visible. | Selects the first or last entry in the drop-down menu. |
Webpage shortcuts
Ctrl+P | Prints your current page. |
Ctrl+S | Saves your current page. |
Ctrl+R | Reloads your current page. |
Esc | Stops the loading of your current page. |
Ctrl+F | Opens the find bar. |
Ctrl+G or Enter | Finds the next match for your input in the find bar. |
Ctrl+Shift+G orShift+Enter | Finds the previous match for your input in the find bar. |
Press Alt and click a link. | Downloads the target of the link. |
Drag a link to bookmarks bar | Bookmarks the link. |
Ctrl+D | Bookmarks your current webpage. |
Space bar | Scrolls down the web page. |
Home | Goes to the top of the page. |
End | Goes to the bottom of the page. |
Text shortcuts
Ctrl+C | Copies highlighted content to the clipboard. |
Ctrl+V or Shift+Insert | Pastes content from the clipboard. |
Ctrl+Shift+V | Paste content from the clipboard without formatting. |
Ctrl+X or Shift+Delete | Deletes the highlighted content and copies it to the clipboard. |
桌面屬性-->外觀-->高級: 下拉列表里選“消息框”,把字體改大些就行了。
不 過這個設置會改變所有的窗口的字體 extension points即接口,是插件暴露給其他插件的接口。
每一個插件都是在現有擴展點上開發,并且留有自己的擴展點。
除了小型的運行時內核之外,eclipse中的所有東西都是插件
org.eclipse.ui.editors 編輯器窗口
org.eclipse.ui.views 視圖窗口
Java 程序是由若干個 .class 文件組成的。這些 .class 文件必須根據它們所屬的包不同而分級分目錄存放;
其實不然,如果開發 者能夠制作一個可執行的 JAR 文件包交給用戶,那么用戶使用起來就方便了。在 Windows 下安裝 JRE (Java Runtime Environment) 的時候,安裝文件會將 .jar 文件映射給 javaw.exe 打開。那么,對于一個可執行的 JAR 文件包,用戶只需要雙擊它就可以運行程序了,和閱讀 .chm 文檔一樣方便 (.chm 文檔默認是由 hh.exe 打開的)。那么,現在的關鍵,就是如何來創建這個可執行的 JAR 文件包。
Jiri Mares wrote:
Hi,
I'm trying to change font size for my package explorer and it's not working. Is it right or not (I tried to find such a bug but I didn't).
It's based on the font of your OS. You'll have to change the font in the standard OS settings.
DaniTechnically, an Eclipse application is a plug-in that creates an extension for the extension point org.eclipse.core.runtime.applications. JVM內存的設置的原理
默認的java虛擬機的大小比較小,在對大數據進行處理時java就會報錯:java.lang.OutOfMemoryError。
設置jvm內存的方法,對于單獨的.class,可以用下面的方法對Test運行時的jvm內存進行設置。
java -Xms64m -Xmx256m Test
-Xms是設置內存初始化的大小
-Xmx是設置最大能夠使用內存的大小(最好不要超過物理內存大小)
Heap設定與垃圾回收Java Heap分為3個區,Young,Old和Permanent。Young保存剛實例化的對象。當該區被填滿時,GC會將對象移到Old區。 Permanent區則負責保存反射對象,本文不討論該區。JVM的Heap分配可以使用-X參數設定,
-Xms
|
初始Heap大小
|
-Xmx
|
java heap最大值
|
-Xmn
|
young generation的heap大小
|
在一些規模稍大的應用中,Java虛擬機(JVM)的內存設置尤為重要,想在項目中取得好的效率,GC(垃圾回收)的設置是第一步。
PermGen space:全稱是Permanent Generation space.就是說是永久保存的區域,用于存放Class和Meta信息,Class在被Load的時候被放入該區域Heap space:存放Instance。
GC(Garbage Collection)應該不會對PermGen space進行清理,所以如果你的APP會LOAD很多CLASS的話,就很可能出現PermGen space錯誤
Java Heap分為3個區
1.Young
2.Old
3.Permanent
Young保存剛實例化的對象。當該區被填滿時,GC會將對象移到Old區。Permanent區則負責保存反射對象,本文不討論該區。
JVM的Heap分配可以使用-X參數設定,
-Xms
初始Heap大小
-Xmx
java heap最大值
-Xmn
young generation的heap大小
JVM有2個GC線程
第一個線程負責回收Heap的Young區
第二個線程在Heap不足時,
遍歷Heap,將Young 區升級為Older區
Older區的大小等于-Xmx減去-Xmn,不能將-Xms的值設的過大,因為第二
個線程被迫運行會降低JVM的性能。
為什么一些程序頻繁發生GC?
有如下原因:
1.程序內調用了System.gc()或Runtime.gc()。
2.一些中間件軟件調用自己的GC方法,此時需
要設置參數禁止這些GC。
3.Java的Heap太小,一般默認的Heap值都很小。
4.頻繁實例化對象,Release對象
此時盡量保存并重用對象,例如使用StringBuffer()和String()。
如果你發現每次GC后,Heap的剩余空間會是總空間的50%,這表示你的Heap處于健康狀態,許多Server端的Java程序每次GC后最好 能有65%的剩余空間
經驗之談:
1.Server端JVM最好將-Xms和-Xmx設為相同值。為了優化GC,最好讓-Xmn值約等于-Xmx的1/3。
2.一個GUI程
序最好是每10到20秒間運行一次GC,每次在半秒之內完成。
注意:
1.增加Heap的大小雖然會降低GC的頻率,但也增加了每次GC的時間。并且GC運行時,所有的用戶線程將暫停,也就是GC期間,Java應用程
序不做任何工作。
2.Heap大小并不決定進程的內存使用量。進程的內存使用量要大于-Xmx定義的值,因為Java為其他任務分配內存,例如每
個線程的Stack等。
Stack的設定
每個線程都有他自己的Stack。
-Xss
每個線程的Stack大小
Stack的大小限制著線程的數量。如果Stack過大就好導致內存溢漏。-Xss參數決定Stack大小,例如-Xss1024K。如果 Stack太小,也會導致Stack溢漏。
硬件環境
硬件環境也影響GC的效率,例如機器的種類,內存,swap空間,和CPU的數量。
如果你的程序需要頻繁創建很多transient對象,
會導致JVM頻繁GC。這種情況你可以增加機器的內存,來減少Swap空間的使用。
4種GC
1、第一種為單線程GC,也是默認的GC,該GC適用于單CPU機器。
2、第二種為Throughput
GC,是多線程的GC,適用于多CPU,使用大量線程的程序。第二種GC與第一種GC相似,不同在于GC在收集Young區是多線程的,但在Old區和第
一種一樣,仍然采用單線程。-XX:+UseParallelGC參數啟動該GC。
3、第三種為Concurrent Low Pause
GC,類似于第一種,適用于多CPU,并要求縮短因GC造成程序停滯的時間。這種GC可以在Old區的回收同時,運行應用程序。
-XX:+UseConcMarkSweepGC參數啟動該GC。
4、第四種為Incremental Low Pause
GC,適用于要求縮短因GC造成程序停滯的時間。這種GC可以在Young區回收的同時,回收一部分Old區對象。-Xincgc參數啟動該GC。
單文件的JVM內存進行設置
默認的java虛擬機的大小比較小,在對大數據進行處理時java就會報錯:java.lang.OutOfMemoryError。
設置
jvm內存的方法,對于單獨的.class,可以用下面的方法對Test運行時的jvm內存進行設置。
java -Xms64m
-Xmx256m Test
-Xms是設置內存初始化的大小
-Xmx是設置最大能夠使用內存的大小(最好不要超過物理內存大小)
tomcat啟動jvm內存設置
Linux:
在/usr/local/apache-tomcat-5.5.23/bin目錄下的catalina.sh添加:JAVA_OPTS='-
Xms512m -Xmx1024m'要加“m”說明是MB,否則就是KB了,在啟動tomcat時會報內存不足。
-Xms:初始值
-Xmx:
最大值
-Xmn:最小值Windows
在catalina.bat最前面加入
set JAVA_OPTS=-Xms128m
-Xmx350m
如果用startup.bat啟動tomcat,OK設置生效.夠成功的分配200M內存.但是如果不是執行startup.bat啟動tomcat而是
利用windows的系統服務啟動tomcat服務,上面的設置就不生效了,就是說set JAVA_OPTS=-Xms128m -Xmx350m
沒起作用.上面分配200M內存就OOM了..windows服務執行的是bin"tomcat.exe.他讀取注冊表中的值,而不是
catalina.bat的設置.解決辦法:
修改注冊表HKEY_LOCAL_MACHINE"SOFTWARE"Apache Software Foundation"Tomcat Service Manager"Tomcat5"Parameters"JavaOptions
原值為
-Dcatalina.home="C:"ApacheGroup"Tomcat 5.0"
-Djava.endorsed.dirs="C:"ApacheGroup"Tomcat
5.0"common"endorsed"
-Xrs加入 -Xms300m -Xmx350m
重起tomcat服務,設置生效
weblogic啟動jvm內存設置
在weblogic中,可以在startweblogic.cmd中對每個domain虛擬內存的大小進行設置,默認的設置是在 commEnv.cmd里面。
JBoss
默認可以使用的內存為64MB
$JBOSSDIR$/bin/run.config
JAVA_OPTS = "-server
-Xms128 -Xmx512"
Eclipse
在所在目錄下,鍵入
eclipse.exe -vmargs -Xms256m -Xmx512m
256m表示JVM堆內存最
小值
512m表示JVM堆內存最大
Websphere
進入控制臺去設置:應用程序服務器 > server1 > 進程定義 > Java 虛擬機
| |||||||||
日 | 一 | 二 | 三 | 四 | 五 | 六 | |||
---|---|---|---|---|---|---|---|---|---|
28 | 29 | 30 | 31 | 1 | 2 | 3 | |||
4 | 5 | 6 | 7 | 8 | 9 | 10 | |||
11 | 12 | 13 | 14 | 15 | 16 | 17 | |||
18 | 19 | 20 | 21 | 22 | 23 | 24 | |||
25 | 26 | 27 | 28 | 29 | 30 | 1 | |||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
常用鏈接
留言簿
隨筆分類
隨筆檔案
文章檔案
搜索
最新評論

- 1.?re: windows 淡綠色
- 應該是不符合中國人的生理特征。
- --隔葉黃鶯-2
- 2.?re: Java虛擬機(JVM)中的內存設置詳解
- 很有用,收藏了,謝謝!
- --隔葉黃鶯