Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / July 2006

Tip: Looking for answers? Try searching our database.

Sun JVM and memory requirements

Thread view: 
Vincent van Beveren - 21 Jul 2006 11:06 GMT
Hi everybody,

For maximum separation of environment we want to run multiple java
instances (each running a webserver). now at peak moments I want these
to use the maximum heap, however, if the peak moments are passed, it
should free up the heap it doesn't use. Is this possible? Is it even
nessesary? What are the alternatives. I must be able to shut one JVM
down without it affecting the others.

Thanks in advance,
Vincent
Thomas Hawtin - 21 Jul 2006 13:09 GMT
> For maximum separation of environment we want to run multiple java
> instances (each running a webserver). now at peak moments I want these
> to use the maximum heap, however, if the peak moments are passed, it
> should free up the heap it doesn't use. Is this possible? Is it even
> nessesary? What are the alternatives. I must be able to shut one JVM
> down without it affecting the others.

Usually for a server application you want a fixed allocation of memory.
Set -Xms and -Xmx to the same value. It shouldn't be all of the system
memory - you will want some for the operating system and file cache. If
you have variable heap sizes with maximum near physical memory size,
then when all the applications are hit at once the machine will swap badly.

Don't start opening desktop applications on the server. Small
administrative programs should just take physical memory away from the
file cache. Probably the best move is to buy boatloads of RAM.

Tom Hawtin
Signature

Unemployed English Java programmer
http://jroller.com/page/tackline/



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.