• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

setting JVM memory in WSAD

 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to run a little java application I have developed in WSAD 5.1.2. In the middle of creating an object, the app dies with an OutOfMemoryError.

I can run the app fine from the command prompt with java -Xms100m -Xmx100m.

I can't for the life of me figure out how to do something similar in WSAD. I've tried starting up WSAD with vmargs= -Xms250m -xmx250m, but it makes no difference at all. It dies at the same point. I can watch the memory usage grow on the javaw thread WSAD spawns, and it will consistently die at around 60MB.

Thanks!
 
author & internet detective
Posts: 40198
816
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Andrew,
You can set system properties if you run the application using "Run...". Then click on the arguments tab. There is a section for VM arguments.
 
author
Posts: 4223
33
jQuery Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Keep in mind the version of WebSphere that is installed with WSAD is a test environment, and is not meant to be run in production. So features like adding command line arguments are quite natural in a debug-styled environment.
 
Andrew McLaren
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Jeanne Boyarsky:
Andrew,
You can set system properties if you run the application using "Run...". Then click on the arguments tab. There is a section for VM arguments.



Hooray!

Thanks a ton!

Andrew
 
    Bookmark Topic Watch Topic
  • New Topic