Solved

reading a large file using inputfilereader

Posted on 2007-03-24
2
389 Views
Last Modified: 2013-11-23
i am using inputFileReader (J2SE 1.4.2_10) to read a tab delimited file.
It works fine when the file size is a little over 5 mb. However when the file becomes 6 mb or larger, i get OutOfMemoryError: java heap space

How do i fix the problem?

Thanks
0
Comment
Question by:anothercto
2 Comments
 
LVL 30

Accepted Solution

by:
Mayank S earned 250 total points
ID: 18785801
Increase the heap space of Java using the -Xmx option

http://hausheer.osola.com/docs/5
0
 

Author Comment

by:anothercto
ID: 18786177
java -Xmx256m:
could not create the java virtual machine.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
reasons why a "inside Menu" would not appear for a web server 6 56
eclipse package explorer vs project explorer view 2 84
oracle 11g 23 50
javap not working 8 38
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now