Originally posted by K Kiran Kumar:
You can increase the virtual memory by using "java -Xmx512m" command. You can try out even keeping "java -Xmx1024m"....
Did you read Rajan's post? His program is running on a PDA. It probably doesn't
have 512mb RAM. And invoking System.gc() is rarely helpful (and can impede performance).
Rajan, your code leaves much to the imagination. Are you attempting to extract the file to memory, then process it? Probably a Bad Idea. Can you read a small chunk of the file, process it, then discard it and retrieve another? That would be much easier on memory use.