# cluster.split error

**URL:** <https://forum.mothur.org/t/cluster-split-error/1701>\
**Category:** Commands in mothur\
**Created:** [February 18, 2014, 9:12am UTC](https://forum.mothur.org/t/cluster-split-error/1701 "2014-02-18T09:12:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rich](https://avatars.discourse-cdn.com/v4/letter/r/35a633/32.png) [@Rich](https://forum.mothur.org/u/Rich)\
**Post date:** [February 18, 2014, 9:12am UTC](https://forum.mothur.org/t/cluster-split-error/1701/1 "2014-02-18T09:12:27Z")

</div>

Dear Mothur Group,

I am getting following error when running the command below. I have enough space to run but still i am getting this error.

mothur \> cluster.split(column=stability.trim.contigs.good.unique.good.filter.unique.precluster.pick.pick.subsample.dist,name=stability.trim.contigs.good.unique.good.filter.unique.precluster.pick.pick.subsample.names, method=average, large=f,processors=1)

Using 1 processors.  
Using splitmethod distance.  
Splitting the file…  
[ERROR]: std::bad\_alloc has occurred in the SplitMatrix class function splitDistanceRAM. This error indicates your computer is running out of memory. This is most commonly caused by trying to process a dataset too large, using multiple processors, or a file format issue. If you are running our 32bit version, your memory usage is limited to 4G. If you have more than 4G of RAM and are running a 64bit OS, using our 64bit version may resolve your issue. If you are using multiple processors, try running the command with processors=1, the more processors you use the more memory is required. Also, you may be able to reduce the size of your dataset by using the commands outlined in the Schloss SOP, [http://www.mothur.org/wiki/Schloss\_SOP](http://www.mothur.org/wiki/Schloss_SOP). If you are uable to resolve the issue, please contact Pat Schloss at [mothur.bugs@gmail.com](mailto:mothur.bugs@gmail.com), and be sure to include the mothur.logFile with your inquiry.^[[H^[[2J

---

<div class="post-metadata">

**Author:** ![westcott](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.mothur.org/westcott/32/18_2.png) [@westcott](https://forum.mothur.org/u/westcott)\
**Post date:** [February 24, 2014, 5:44pm UTC](https://forum.mothur.org/t/cluster-split-error/1701/2 "2014-02-24T17:44:43Z")

</div>

How big is the distance file? Can you post the rest of the command line? Is the distance matrix really in column format?
