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