搜尋此網誌

windows常用命令

[ 群組原則 ]
開始 → 執行 → gpedit.msc

[ 惡意軟體移除工具 ]
開始 → 執行 → mrt

[ 機碼 ]
開始 → 執行 → regedit

[ 系統設定公用程式 ]
開始 → 執行 → msconfig

[ 控制client端所有網路設備 ]
開始 → 執行 → cmd → ipconfig
開始 → 執行 → cmd → ipconfig/all

[ 顯示封包經過的路由器的IP位址 ]
開始 → 執行 → cmd → tracert (網址或IP)

2011年6月3日 星期五

DbVisualizer 出現 Virtual Memory Problem的錯誤訊息

原因:
Virtual Memory Problem! The application is running low on virtual memory. Open Help->Online Resources and choose the FAQ page. It explains how to increase the memory for Java (DbVisualizer).
Stack Trace:
java.lang.OutOfMemoryError: Java heap space
    at java.util.Arrays.copyOf(Unknown Source)
    at java.lang.AbstractStringBuilder.expandCapacity(Unknown Source)
    at java.lang.AbstractStringBuilder.append(Unknown Source)
    at java.lang.StringBuffer.append(Unknown Source)
    at java.io.StringWriter.write(Unknown Source)
    at com.onseven.dbvis.K.M.ā(Z:1107)
    at com.onseven.dbvis.E.A.C.ą(Z:3412)
    at com.onseven.dbvis.D.E.ā(Z:3514)
    at com.onseven.dbvis.editor.G.Ă(Z:2719)
    at com.onseven.dbvis.editor.E.Ĵ(Z:75)
    at com.onseven.dbvis.editor.E$1.execute(Z:838)
    at se.pureit.swing.Q.F.actionPerformed(Z:1875)
    at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
    at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
    at com.jidesoft.plaf.basic.BasicJideButtonListener.mouseReleased(Unknown Source)
    at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
    at java.awt.Component.processMouseEvent(Unknown Source)
    at javax.swing.JComponent.processMouseEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
System Information:
Product: DbVisualizer Personal 7.1.4
Build: #1585 (2010/11/23 12:21)
Java VM: Java HotSpot(TM) Client VM
Java Version: 1.6.0_24
Java Vendor: Sun Microsystems Inc.
OS Name: Windows XP
OS Arch: x86
OS Version: 5.1
解決:

How do I increase the memory for Java? 
DbVisualizer is configured by default to use a maxmimum of 256 MB in the Java VM. The following explains how to increase the memory for each platform.
Windows/Linux/UNIX:
  1. Open the dbvis.vmoptions options file in a texteditor. (This file is located in the installation directory for DbVisualizer).
  2. Any Java system property can be added to this file and each row is interpreted as a standard system property to the Java VM
  3. To increase the maximum memory available for Java modify the following property:
    -Xmx256m
    (This example sets the memory to 256MB but you can set it to any value that is appropriate for your system).
Mac OS X:
On Mac OS X, edit the Info.plist file to change the Java VM parameters including the maximum memory property.