solr - java heap space out of memory

后端 未结 4 962
误落风尘
误落风尘 2021-01-04 04:23

Can any one help me to find out the error cause in tomcat. i m using solr in it. starting it works fine. later i will raise this error. after restarting it works fine. plea

4条回答
  •  春和景丽
    2021-01-04 04:34

    You can try lowering the default batchSize JDBC connection param in your dataSource definition.
    DataImportHandler is designed to stream row one-by-one. It passes a fetch size value (default: 500) to Statement#setFetchSize which some drivers do not honor.

    If you're using MsSQL you can add dataSource param responseBuffering="adaptive".

    See here for more info:
    http://wiki.apache.org/solr/DataImportHandlerFaq

提交回复
热议问题