• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

setting JVM memory in WSAD

 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 42165
937
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 4356
45
jQuery Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic