# java.lang.OutOfMemoryError: Metaspace error installing Atlassian JIRA using Ansible

**URL:** <https://forum.ansible.com/t/java-lang-outofmemoryerror-metaspace-error-installing-atlassian-jira-using-ansible/22766>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [October 11, 2016, 3:31am UTC](https://forum.ansible.com/t/java-lang-outofmemoryerror-metaspace-error-installing-atlassian-jira-using-ansible/22766 "2016-10-11T03:31:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jim\_Reprogle](https://avatars.discourse-cdn.com/v4/letter/j/71e660/32.png) [@Jim\_Reprogle](https://forum.ansible.com/u/Jim_Reprogle)\
**Post date:** [October 11, 2016, 3:31am UTC](https://forum.ansible.com/t/java-lang-outofmemoryerror-metaspace-error-installing-atlassian-jira-using-ansible/22766/1 "2016-10-11T03:31:08Z")

</div>

Greetings. I realize that much of this is going to sound crazy and a little noob-ish, but…  
I’m playing with Ansible for the first time, and I’m trying to automate the installation of a JIRA server (on Windows, mind you). I went through all the rigmarole of enabling WinRM with a self-signed certificate, and Ansible is now communicating with hosts in the inventory.

The JIRA installer uses an install4j executable with a response.varfile for unattended installations. So I built a quick and dirty jira.yaml file that runs the JIRA installer with arguments “-q -varfile response.varfile” using the ‘raw’ module. I have successfully gotten it to download the JIRA installer from Atlassian using the win\_get\_url module. I have successfully gotten Ansible to copy the response.varfile to the destination server. However, when I call the ‘raw’ module to run the install I get java.lang.OutOfMemoryError: Metaspace and the installer quits. Any ideas? Running the installer from the command line with the same arguments works without the out of memory errors.

Thank you in advance.

---

<div class="post-metadata">

**Author:** ![Matt\_Davis](https://avatars.discourse-cdn.com/v4/letter/m/ce7236/32.png) [@Matt\_Davis](https://forum.ansible.com/u/Matt_Davis)\
**Post date:** [October 13, 2016, 4:24pm UTC](https://forum.ansible.com/t/java-lang-outofmemoryerror-metaspace-error-installing-atlassian-jira-using-ansible/22766/2 "2016-10-13T16:24:26Z")

</div>

WinRM enforces a job memory quota (documented [here](https://msdn.microsoft.com/en-us/library/ee309367(v=vs.85).aspx)) that you’ll probably need to adjust upward for a heavyweight installer like Jira. Also, if you’re running Powershell 3.0, there’s a hotfix that fixes that setting on some OSs, though I’d recommend just upgrading to PS4 or 5 instead of messing with the hotfix.

-Matt
