The default memory setting for Jira is usually sufficient for a small- to medium-sized deployment. As Jira's adoption rate increases, you will find that the amount of memory allocated by default is no longer enough. If Jira is running as a Windows service, as we described in this chapter, you can increase the memory as follows:
- Find the JIRA Windows service name. You can do this by going to the Windows services console and double-clicking on the Atlassian JIRA service. The service name will be the part after //RS// in the Path to executable field, for example, JIRA150215215627.
- Open a new Command Prompt and change the current working directory to the JIRA_INSTALL/bin directory.
- Run the following command by substituting the actual service name for Jira:
tomcat7w //ES//<JIRA Windows service name>
- Select the Java tab, update the Initial memory pool and Maximum memory pool sizes, and click on OK:
- Restart Jira to apply the change.
If you are not running Jira as a Windows service, you need to open the setenv.bat file (for Windows) or the setenv.sh (for Linux) file in the JIRA_INSTALL/bin directory. Then, locate the following lines:
set JVM_MINIMUM_MEMORY="384m" set JVM_MAXIMUM_MEMORY="768m"
Change the value for the two parameters and restart Jira. Normally, 4 GB (4,096 m) of memory is enough to support a fairly large instance of Jira used by hundreds of users.
Make sure that you have sufficient physical RAM available before allocating instances to Jira.