# SPAdes error -- running out of memory/not enough memory allocated for job

**URL:** <https://help.galaxyproject.org/t/spades-error-running-out-of-memory-not-enough-memory-allocated-for-job/12654>\
**Category:** Resources\
**Tags:** spades, exceeds-memory-error, resources\
**Created:** [June 6, 2024, 6:39pm UTC](https://help.galaxyproject.org/t/spades-error-running-out-of-memory-not-enough-memory-allocated-for-job/12654 "2024-06-06T18:39:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniel\_Hogan](https://sea2.discourse-cdn.com/flex020/user_avatar/help.galaxyproject.org/daniel_hogan/32/5675_2.png) [@Daniel\_Hogan](https://help.galaxyproject.org/u/Daniel_Hogan)\
**Post date:** [June 6, 2024, 6:39pm UTC](https://help.galaxyproject.org/t/spades-error-running-out-of-memory-not-enough-memory-allocated-for-job/12654/1 "2024-06-06T18:39:50Z")

</div>

Hi,  
I am trying to run SPAdes for genome assembly but get error below which I think means it is running out of memory.  
Job Message 1:

- **desc:** Fatal error: Exit code 250 ()
- **error\_level:** 3
- **exit\_code:** 250
- **type:** exit\_code

It seems only 182 GB of ram are allocated. According to SPAdes manual at least 250 GB of ram are needed. So then how does anyone run SPAdes on Galaxy? Or is there a way to allocate more ram so I can run this job. Its not a terribly large dataset – around 50 million 150 bp paired end reads.

thanks

---

<div class="post-metadata">

**Author:** ![jennaj](https://sea2.discourse-cdn.com/flex020/user_avatar/help.galaxyproject.org/jennaj/32/27_2.png) [@jennaj](https://help.galaxyproject.org/u/jennaj)\
**Post date:** [June 6, 2024, 9:15pm UTC](https://help.galaxyproject.org/t/spades-error-running-out-of-memory-not-enough-memory-allocated-for-job/12654/2 "2024-06-06T21:15:06Z")

</div>

Hi @Daniel_Hogan

Error message

> This job was terminated because it used more memory than it was allocated.

You are working at [UseGalaxy.org](http://UseGalaxy.org), correct? Try running this job at [UseGalaxy.eu](http://UseGalaxy.eu) or [UseGalaxy.org.au](http://UseGalaxy.org.au) to see if those servers can handle the job instead. Each public server offers distinct public computational resources. Details → [Public Galaxy Servers](https://help.galaxyproject.org/docs?topic=10860)

Other troubleshooting options include:

1. Use **Sub-sample sequences files** e.g. to reduce coverage. This is a pretty common solution. More coverage is not necessarily “better” during initial assembly steps, and for scientific reasons, too.

2. Run SPAdes through **Shovill** Faster SPAdes assembly of Illumina reads.

- Why? The logs are _very_ informative and can give some clues about how to better tune parameters to fit your data when you rerun (with SPAdes directly or with this same tool-around-a-tool).

1. Or, tune parameters on your own, maybe by reviewing some publications that also work with your target species. Defaults are unlikely to be the best fit for real data. To match things up: know that options are labeled on the tool form with the command line flags (try a browser search), and the Galaxy command line is captured on the same place you found the other logs (“i” icon).

Hope this helps! 🙂
