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 / December 2006

Tip: Looking for answers? Try searching our database.

memory settings on windows

Thread view: 
r.rohan@gmail.com - 19 Dec 2006 17:41 GMT
I am running a java program on my local machine which uses some IO
funtions. The program throws a outofmemory error. My machine has 1 GB
of ram and I can see that the memory usage is at 600M all the time the
application is running. So there is plenty of memory avilable. How do I
give more memory to my application?
Andrew Thompson - 19 Dec 2006 18:30 GMT
> ..How do I give more memory to my application?

<http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/java.html#nonstandard>
-Xms(/-Xms)

Andrew T.
Oliver Wong - 19 Dec 2006 18:37 GMT
>I am running a java program on my local machine which uses some IO
> funtions. The program throws a outofmemory error. My machine has 1 GB
> of ram and I can see that the memory usage is at 600M all the time the
> application is running. So there is plenty of memory avilable. How do I
> give more memory to my application?

   Use JConsole (which comes with Sun's JDK) to determine what *kind* of
memory you're running out of:
http://java.sun.com/developer/technicalArticles/J2SE/jconsole.html Depending
on what kind (heap, permgen, etc.), different solutions exists.

   - Oliver


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.