• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JVM Memory

 
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm not sure if this is 'Intermediate' or 'Beginner', but here goes.

How does a person go about setting up the JVM memory? (Is this specific to the App Server that you are running, in a config file, or is there a global way to set it?).

I'm installing SAP NetWeaver, and it needs the JVM memory set to 1024, it is currently at 512...

Thanks... in advance.
 
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The preferred way to do it will be specific to your app server. Ultimately, if you're running a Sun JVM, you want the JVM executable to get a command-line argument that looks like "-Xmx1024m" . Most app servers come with more or less complicated scripts which you either edit, or, preferably, with config files you can add things to .
 
Ranch Hand
Posts: 257
Hibernate Firefox Browser Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Matt Holloway:
I'm not sure if this is 'Intermediate' or 'Beginner', but here goes.

How does a person go about setting up the JVM memory? (Is this specific to the App Server that you are running, in a config file, or is there a global way to set it?).

I'm installing SAP NetWeaver, and it needs the JVM memory set to 1024, it is currently at 512...

Thanks... in advance.



Hi,
you can do it. you have to pass these as arguments to jvm.

-Xxs=20Mb ( the startup memeory)

-Xxm=1024MB ( The maximum memory to use...after that blow up... )





 
Ernest Friedman-Hill
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Srinivas Kalvala:

Hi,
you can do it.



Yes, as I said, he can. However, he'll need to do it with the syntax I provided, as both of the flags you listed are invalid, as is the syntax of their arguments.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic