# How can I expand the max amount of memory at running trimmomatic?

**URL:** <https://forum.biobakery.org/t/how-can-i-expand-the-max-amount-of-memory-at-running-trimmomatic/4280>\
**Category:** KneadData\
**Created:** [October 21, 2022, 7:24am UTC](https://forum.biobakery.org/t/how-can-i-expand-the-max-amount-of-memory-at-running-trimmomatic/4280 "2022-10-21T07:24:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kirby](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/kirby/32/1600_2.png) [@Kirby](https://forum.biobakery.org/u/Kirby)\
**Post date:** [October 21, 2022, 7:24am UTC](https://forum.biobakery.org/t/how-can-i-expand-the-max-amount-of-memory-at-running-trimmomatic/4280/1 "2022-10-21T07:24:32Z")

</div>

Hello,

I’m running kneaddata on my metagenomic samples and everything works perfectly.

but I have a trivial issue.

I used an option `--max-memory 10000m` in trimmomatic arguments,  
but when check the log file, the max-memory is still fixed at 500m.  
My working environment has enough RAM available.

How can I expand maximum memory for trimmomatic?

Maybe I’m misunderstood?  
I thought `--max-memory 500m` means “Setting the maximum memory available during trimmomatic to 500MB”.

Please advise me.

Thank you.  
Kirby

---

<div class="post-metadata">

**Author:** ![Kirby](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/kirby/32/1600_2.png) [@Kirby](https://forum.biobakery.org/u/Kirby)\
**Post date:** [October 29, 2022, 6:08am UTC](https://forum.biobakery.org/t/how-can-i-expand-the-max-amount-of-memory-at-running-trimmomatic/4280/2 "2022-10-29T06:08:48Z")

</div>

Sorry for the poor question.  
This issue was about the permissions of my linux account, and I bypassed it by editing the script in config.py.
