how to read a file which contains more than 95000 <95 thousand> lines in java.
techgig
0
Newbie Poster
Recommended Answers
Jump to PostWhat kind of problems are you running into? If you can read a couple of lines, you can read 95K lines...
Jump to PostAs I suspected, you are running out of heap space. When spawning the JVM process, pass in the following switch as JVM argument:
-Xms128m -Xmx128m
.If you are invoking the java process from the command line, you can use:
java -Xms128m -Xmx128m pkg.MainClass
If …
All 6 Replies
~s.o.s~
2,560
Failure as a human
Team Colleague
Featured Poster
techgig
0
Newbie Poster
~s.o.s~
2,560
Failure as a human
Team Colleague
Featured Poster
masijade
1,351
Industrious Poster
Team Colleague
Featured Poster
tamaris
0
Newbie Poster
jclawson000
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.