# increase GAP memory via Python script?

I'm trying to find the automorphism group of a large network (roughly 5000 nodes). I get the following memory error message:

RuntimeError: Gap produced error output Error, reached the pre-set memory limit (change it with the -o command line option)

I'm running Sage in a Python script (i.e. accessing Sage by importing its functions and calling them). Obviously, one of the Sage functions calls GAP. But how do I increase the memory for GAP (and Sage if applicable?). The command line option above can't be passed directly to GAP. Is there some way to deal with this? Yes, I've googled for this, but found nothing.

I'm running Sage 10.11 on a Mac Pro with 32 GB of memory. Mac OS 10.10.5. Thanks for any suggestions.

Is http://doc.sagemath.org/html/en/refer... relevant? I've seen other references before to this issue but I can't for the life of me find them now.

PS if you are running Sage 10.11 that is impressive indeed!

kcrisman. 10.11 It's the version that was available online. Did I miss something?

Yes, you missed something, because the current Sage version is 7.5.1 at this time. I could imagine you having Sage built for Mac 10.11, but not Sage 10.11. In any case, hope @nbruin's answer helps you!