File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Performance and the fly likes Out of memeory Error Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Performance
Reply Bookmark "Out of memeory Error" Watch "Out of memeory Error" New topic
Author

Out of memeory Error

Dhananjay Ghanwat
Greenhorn

Joined: Dec 23, 2002
Posts: 27
Hi,
I am getting an Out Of Memory exception.
Trying to read from Files. it is working fine till 50 files but then it gives this exception .Please help me out as it is very urgent
Thanks
Adrian Yan
Ranch Hand

Joined: Oct 02, 2000
Posts: 688
how big are the files? What's the memory space on your pc?
Why do you have 50 files opened? That's usually a bad pratice to open all these files.
Avi Abrami
Ranch Hand

Joined: Oct 11, 2000
Posts: 1109

Hi Dhananjay,
I'm guessing that you are getting this "OutOfMemoryError" due to the way you have written your code. But without seeing your code, I can't be sure. Of-course, the added bonus -- for you -- if you post your (problematic) code, is that I may be able to suggest something that will help you to get rid of that "OutOfMemoryError" -- assuming that you want to get rid of it, of-course!
Good Luck,
Avi.
 
IntelliJ Java IDE
 
subject: Out of memeory Error
 
Threads others viewed
What is java.library.path?
JDBC & SQLServer
request & response
Java Heap Space
How do I join multiple files into one
developer file tools