Solved

reading a large file using inputfilereader

Posted on 2007-03-24
2
388 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:
mayankeagle earned 250 total points
Comment Utility
Increase the heap space of Java using the -Xmx option

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

Author Comment

by:anothercto
Comment Utility
java -Xmx256m:
could not create the java virtual machine.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

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…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
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.

763 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

11 Experts available now in Live!

Get 1:1 Help Now