Installing JIRA as a Service
For long-term use, the app server hosting JIRA should be configured to survive server restarts. For Windows servers, this means configuring the app server to run as a service. JIRA's Standalone distribution can be installed as a service as follows:
1. Open a DOS prompt,
2. 'cd' to the JIRA Standalone directory, and then the bin\ subdirectory
3. If a directory in the path has spaces (eg. 'C:\Program Files\..'), please convert it to its eight-character equivalent.
4. Ensure the JAVA_HOME variable is set to the JDK base directory, with echo %JAVA_HOME%.
5. Run the following command:
service.bat install JIRA
6. In addition, to have the service start automatically when the server starts, run:
tomcat5 //US//JIRA --Startup auto
7. To increase maximum memory JIRA can use (default will already be 256MB) run:
tomcat5 //US//JIRA --JvmMx 512
8. To add JVM parameter, for example pass a parameter to enable JIRA's Jelly support, run:
tomcat5 //US//JIRA ++JvmOptions="-Djira.jelly.on=true"
9.If you are running JIRA and Confluence in the same JVM, increase the MaxPermSize size to 128 MB:
tomcat5 //US//JIRA ++JvmOptions="-XX:MaxPermSize=128m"