Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

reading a large file using inputfilereader

Posted on 2007-03-24
2
Medium Priority
?
396 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 30

Accepted Solution

by:
Mayank S earned 1000 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
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…
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 video teaches viewers about errors in exception handling.
Suggested Courses

715 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