Results 1 to 3 of 3

Thread: How do we set heap size in STS for DM-Server plugin

  1. #1
    Join Date
    Oct 2009
    Posts
    7

    Default How do we set heap size in STS for DM-Server plugin

    I am having trouble setting the jvm heap min size and max size while running DM-Server in STS.

    I am able to set the heap size when I am running DM-Server from command line.
    bin/startup.sh(bat)
    SET JAVA_OPTS=-Xmx1024m (.bat)
    JAVA_OPTS="-Xmx1024m" (.sh)
    courtesy:
    http://forum.springsource.org/showthread.php?t=69747

    While I am running DM-Server from STS in Windows. I could not increase my heap size and as result getting OutOfMemory Exception.

    I tried following three things

    1. I opened DM-Server configuration; In - "Launch Configuraition add Environment variable; JAVA_OPTS and value as -Xmx1024m
    2. I added a OS Envrionment variable - JAVA_OPTS and value -Xmx1024m
    3. I add program arguments in Server launch configuration -Xmx1024m

    None of these increased memory heap and I am still getting OutOfMemoryException while running DM-Server in STS (windows) and launching the app.

    Can anyone please help me on this?

  2. #2
    Join Date
    Oct 2008
    Posts
    493

    Default

    You were on the right lines with 3. You need to set a VM argument in the launch configuration, rather than a program argument.
    Andy Wilkinson
    SpringSource

  3. #3
    Join Date
    Oct 2009
    Posts
    7

    Default

    Thanks a lot Andy.
    It worked like a charm.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •