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 / October 2005

Tip: Looking for answers? Try searching our database.

setting the -mx parameter

Thread view: 
johnyrufus@gmail.com - 27 Oct 2005 06:55 GMT
Hi ,

I have to set the memory limit of the JVM to prevent ouofmemory error
and can someone help me how do i set this in an application .

Thanks in advance,
rufus
Roedy Green - 27 Oct 2005 07:07 GMT
>I have to set the memory limit of the JVM to prevent ouofmemory error
>and can someone help me how do i set this in an application .

You mean once you have started running the app?  You can't. It would
be like changing your tires while barrelling along the freeway.
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.

HalcyonWild - 28 Oct 2005 02:02 GMT
> Hi ,
>
> I have to set the memory limit of the JVM to prevent ouofmemory error
> and can someone help me how do i set this in an application .

====
I dont think this can prevent OutOfMemory Error. Setting limits on the
memory usage, will not allow JVM to access more memory, even when
available.
Or , I am mistaken. JVM takes some value by default, and you have to
tell it to use more memory.

Anyway, there is an option to use,

-Xms128m -Xmx256m

initial size is 128 MB, max limit is 256 MB


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



©2009 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.