On Fri, Mar 4, 2011 at 3:32 AM, Solr User <solr...@gmail.com> wrote:
> Hi All,
>
> I am trying to create indexes out of a 400MB XML file using the following
> command and I am running into out of memory exception.

Is this a single record in the XML file? If it is more than one, breaking
it up into separate XML files, say one per record, should help.

> $JAVA_HOME/bin/java -Xms768m -Xmx1024m -*Durl*=http://$SOLR_HOST
> SOLR_PORT/solr/customercarecore/update -jar
> $SOLRBASEDIR/*dataconvertor*/common/lib/post.jar
> $SOLRBASEDIR/dataconvertor/customercare/xml/CustomerData.xml
>
> I am planning to bump up the memory and try again.
[...]

If you give Solr enough memory this should work, but IMHO, it would
be better to break up your input XML files if you can.

Regards,
Gora

Reply via email to