memory settings on windows

R

r.rohan

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?
 
O

Oliver Wong

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,777
Messages
2,569,604
Members
45,233
Latest member
AlyssaCrai

Latest Threads

Top