• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 405
  • Last Modified:

reading a large file using inputfilereader

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?

1 Solution
Mayank SAssociate Director - Product EngineeringCommented:
Increase the heap space of Java using the -Xmx option

anotherctoAuthor Commented:
java -Xmx256m:
could not create the java virtual machine.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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

Tackle projects and never again get stuck behind a technical roadblock.
Join Now