• Post Reply Bookmark Topic Watch Topic
  • New Topic

Possible to change heap size while java is running on a Solaris box?  RSS feed

 
Matt Kidd
Ranch Hand
Posts: 267
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm working with a Solaris system and it seems the native Java is running at heap space size of 512Mb. The problem is that an application running which works with PDFs is also running at 512Mb. The manual says to increase both heap sizes.

On one installation this of this application utilizes 2Gb of heap space for both the native java and the secondary application. This server is not an issue since the primary application is running WebObjects and I can change environment variables on the fly.

What I want to know is it possible to change the heap space allocation on a Solaris machine on the fly?
 
Ninad Kulkarni
Ranch Hand
Posts: 802
Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Matt,
You can change heap size.
Go through the following links.
3.5.3 Heap
Garbage Collector Ergonomics
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!