Solved

reading a large file using inputfilereader

Posted on 2007-03-24
2
392 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
hibernate insert example 13 37
by zero exception 10 69
String array comparison 4 45
Running JavaFX on the Raspberry Pi 27 119
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

685 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