Announcement Announcement Module
No announcement yet.
How do we set heap size in STS for DM-Server plugin Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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.
    SET JAVA_OPTS=-Xmx1024m (.bat)
    JAVA_OPTS="-Xmx1024m" (.sh)

    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
    You were on the right lines with 3. You need to set a VM argument in the launch configuration, rather than a program argument.


    • #3
      Thanks a lot Andy.
      It worked like a charm.