Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • 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
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Forcing jvm to start in higher memory area.

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am comming up with an issue where my application is starting up in an erea of memory on a 32bit machine with 8GB of RAM. I have an SQL server running and I want it to have the first 4GB of memory dedicated to its operation. I then want to force the web server jvm to take memory from the top 4GB of the memory space. Currently they are both starting in the bottom 4GB and wont even try to get memory from the top 4GB when there combined memory foot print hits 4GB.

Does anyone know how I can force the jvm to do this, or is it not possible to do?

Cheers

Bill
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is nothing special about the JVM - as far as the OS is concerned, it is just another program. Therefore you should investigate what the OS provides for control. Java tries to be as OS-agnostic as possible.
Bill
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!