lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reyna Melara <>
Subject Exception in thread "main" java.lang.OutOfMemoryError: GC overhead limit exceeded
Date Wed, 19 Sep 2012 17:44:33 GMT
Hi, I'm trying to index a big set of plain text files, almost 8,104,467
files, that are all under the same
directory /media/MAFALDA/yohasebewp2txt/Archivos and want to get my index
under /media/MAFALDA/LuceneIndex using program from the

I'm using Netbeans IDE, and I get the folllowing error message:

Indexing to directory '/media/MAFALDA/LuceneIndex'...
Exception in thread "main" java.lang.OutOfMemoryError: GC overhead limit
at java.nio.ByteBuffer.wrap(
at java.lang.StringCoding$StringDecoder.decode(
at java.lang.StringCoding.decode(
at java.lang.String.<init>(
at java.lang.String.<init>(
at Method)
at lucenetest.IndexFiles.indexDocs(
at lucenetest.IndexFiles.main(
Java Result: 1
BUILD SUCCESSFUL (total time: 1 minute 23 seconds)

I've googled the Exception and also I've found that I must increase the
maximum memory allocation of the JVM in the user netbeans.conf file under
the user directory of netbeans: /usr/local/netbeans-7.1.2/etc

I've already done that but I can make it work.

I'm pasting the netbeans.conf file content:

# ${HOME} will be replaced by JVM user.home system property

# Options used by NetBeans launcher by default, can be overridden by
# command line switches:
netbeans_default_options="-J-client -J-Xss2m -J-Xms32m -J-XX:PermSize=512m
-J-Xmx3g -J-Dapple.laf.useScreenMenuBar=true -J-Dsun.java2d.noddraw=true -J-XX:+UseConcMarkSweepGC
-J-XX:+CMSClassUnloadingEnabled -J-XX:+CMSPermGenSweepingEnabled"
# Note that default -Xmx and -XX:MaxPermSize are selected for you
# You can find these values in var/log/messages.log file in your userdir.
# The automatically selected value can be overridden by specifying -J-Xmx or
# -J-XX:MaxPermSize= here or on the command line.

# If you specify the heap size (-Xmx) explicitly, you may also want to
# Concurrent Mark & Sweep garbage collector. In such case add the following
# options to the netbeans_default_options:
# -J-XX:+UseConcMarkSweepGC -J-XX:+CMSClassUnloadingEnabled
# (see

# Default location of JDK, can be overridden by using --jdkhome <dir>:

# Additional module clusters, using ${path.separator} (';' on Windows or
':' on Unix):

# If you have some problems with detect of proxy settings, you may want to
# detect the proxy settings provided by JDK5 or higher.
# In such case add to the


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message