Forum Discussion

alibaba82's avatar
alibaba82
Super Contributor
16 years ago

Problems with increasing Xmx

Hello,
I have a virtual windows 2003 server with 4 GB of memory. My task manager shows a total of 800M committed out of 7758M available.

I noticed that I can't really go beyond Xmx1600m even though there is plenty of memory available.

Am I doing something wrong ?

Ali

10 Replies

  • omatzura's avatar
    omatzura
    Super Contributor
    Hi Ali,


    Sorry for the delayed response.. This could be a limitation with the JRE and/or OS, which version are you using?

    regards,

    /Ole
    eviware.com
  • omatzura's avatar
    omatzura
    Super Contributor
    Hi Ali,

    ok.. I googled around and it seems that this is unfortunately the general limit for the JRE on this platform. If you need to use more memory you will either have to try another JRE (for example JRockit from BEA) or move to SUN hardware.. hmm..  are you running loadtests?

    regards!

    /Ole
    eviware.com
  • alibaba82's avatar
    alibaba82
    Super Contributor
    Hi Ole,
    I download JRockit. How do I get soapUI to use this JRE ?

    Thanks

    Ali
  • omatzura's avatar
    omatzura
    Super Contributor
    Hi Ali,

    you need to modify the soapuipro.bat file and replace the call to "java" with the corresponding jrockit exe file.. (not sure what it is named)..

    regards,

    /Ole
    eviware.com
  • alibaba82's avatar
    alibaba82
    Super Contributor
    Hi Ole,
    I am having difficulty using the JRockit JRE.

    So I tried to replace

    set JAVA=..\jre\bin\java

    with

    set JAVA=C:\Program Files\Java\jrockit-R27.5.0-jre1.6.0_03\bin\java

    I get the following error when I try to start soapUI.

    C:\>cd "Program Files\eviware\soapUI-Pro-2.0.3\bin"

    C:\Program Files\eviware\soapUI-Pro-2.0.3\bin>soapui-pro.bat
    [WARN ] Unable to acquire some virtual address space - reduced from 2600 to 1885
    MB.
    Configuring log4j from [C:\Program Files\eviware\soapUI-Pro-2.0.3\bin\soapui-log
    4j.xml]
    11:13:35,886 INFO  [DefaultSoapUICore] initialized soapui-settings from [C:\Prog
    ram Files\eviware\soapUI-Pro-2.0.3\bin\soapui-settings.xml]
    11:13:36,027 INFO  [SoapUIProGroovyScriptEngineFactory] Initializing scripts fol
    der [C:\Workspace\Phase6.0\Performance\Groovy]
    11:13:36,980 INFO  [SoapUIProGroovyScriptEngineFactory] 2 classes loaded
    11:13:36,996 INFO  [DefaultSoapUICore] Adding listeners from [C:\Program Files\e
    viware\soapUI-Pro-2.0.3\bin\listeners\demo-listeners.xml]
    Exception in thread "Main Thread" java.lang.OutOfMemoryError: CG(q0) [javax/swin
    g/plaf/metal/MetalLookAndFeel.initComponentDefaults(Ljavax/swing/UIDefaults;)V]
    JVM@cgFail (src/jvm/code/code
            at javax.swing.plaf.basic.BasicLookAndFeel.getDefaults(BasicLookAndFeel.
    java:130)
            at javax.swing.plaf.metal.MetalLookAndFeel.getDefaults(MetalLookAndFeel.
    java:1591)
            at javax.swing.UIManager.setLookAndFeel(UIManager.java:537)
            at javax.swing.UIManager.setLookAndFeel(UIManager.java:577)
            at javax.swing.UIManager.initializeDefaultLAF(UIManager.java:1331)
            at javax.swing.UIManager.initialize(UIManager.java:1418)
            at javax.swing.UIManager.maybeInitialize(UIManager.java:1406)
            at javax.swing.UIManager.getUI(UIManager.java:1004)
            at javax.swing.JPanel.updateUI(JPanel.java:109)
            at javax.swing.JPanel.(JPanel.java:70)
            at javax.swing.JPanel.(JPanel.java:93)
            at javax.swing.JPanel.(JPanel.java:101)
            at javax.swing.JRootPane.createGlassPane(JRootPane.java:528)
            at javax.swing.JRootPane.(JRootPane.java:347)
            at javax.swing.JFrame.createRootPane(JFrame.java:265)
            at javax.swing.JFrame.frameInit(JFrame.java:241)
            at javax.swing.JFrame.(JFrame.java:209)
            at com.eviware.soapui.SoapUI.startSoapUI(SoapUI.java:496)
            at com.eviware.soapui.SoapUIPro.a(SourceFile:186)
            at com.eviware.soapui.SoapUIPro.main(SourceFile:147)
  • omatzura's avatar
    omatzura
    Super Contributor
    Hi,

    hmm.. can you try restoring the orginal memory settings in soapuipro.bat to see if that changes anything?

    Where did you find the JRockit download? (so I can download and try myself..)

    regards,

    /Ole
    eviware.com
  • All 32-bit Windows JRE's have this limitation.
    The practical maxium is 1536 mb.

    If you switch to a 64-bit windows then you can go higher.

    An alternative is to use the technology from terracotta.org, to scale your in memory data up to terabyte sizes. Another alternative is to get a hardware box from azul systems, that will scale enormously.