Can any one tell my to access all the available memory from within the
program. i tried a program which takes file and do some manipulations
and write it back. But i cant take files above 20 Mb. How i can
increase the heap size for program.
Roedy Green - 11 Feb 2006 06:32 GMT
>How i can
>increase the heap size for program.
see http://mindprod.com/javaexe.html
command line switches.

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
Kevin - 11 Feb 2006 08:10 GMT
So you get "out of memory" error, right?
Add a parameter when you run your java program, such as:
-Xms32M -Xmx512M
which tells the java to initialize 32M memory on startup, and use up to
(at most) 512M memory.
tom fredriksen - 11 Feb 2006 23:05 GMT
> Can any one tell my to access all the available memory from within the
> program. i tried a program which takes file and do some manipulations
> and write it back. But i cant take files above 20 Mb. How i can
> increase the heap size for program.
RTFM
or
you could try googling for words like "java set heap size".
/tom