Home arrow static arrow Java Programming [Archive] - reading a large zip file
Warning: Creating default object from empty value in /www/htdocs/w008deb8/wiki/components/com_staticxt/staticxt.php on line 51
Java Programming [Archive] - reading a large zip file
This topic has 2 replies on 1 page.

Posts:10
Registered: 5/27/04
reading a large zip file  
Aug 3, 2004 6:25 AM



 
My application is reading the .zip files from the archive to access the information which is in the .log file ( 2500 bytes) within the .zip file ( between 100 - 400 MB). I am getting an outofmemory error when the application tries to create an object of file greater than 300MB. I checked my code to see if there is any memory leak,but was unable to find any leaks. Can you please post your suggestions to get throughthis problem? I would really appreciate it.

Thanks in advance
 

Posts:19,725
Registered: 9/26/01
Re: reading a large zip file  
Aug 3, 2004 6:36 AM (reply 1 of 2)



 
Don't try to read the whole 300MB file into memory - break it up into smaller "chunks", processing each "chunk" before reading in the next (and discarding the previous). Your whole app sounds like it is a "memory leak".
 

Posts:19,725
Registered: 9/26/01
Re: reading a large zip file  
Aug 3, 2004 6:37 AM (reply 2 of 2)



 
... which was already said on your other thread, you cross-poster you.
http://forum.java.sun.com/thread.jsp?thread=543045&forum=31&message=2635396
 
This topic has 2 replies on 1 page.