This documentation relates to Crowd 2.4.
If you are using an earlier version, please view the previous versions of the Crowd documentation and select the relevant version.
Skip to end of metadata
Go to start of metadata

For long-term use, you should configure Crowd to restart automatically when the operating system restarts. For Windows servers, this means configuring Crowd to run as a Windows service.

Running Crowd as a Windows service has other advantages. When Crowd is started manually, a console window opens - there is a risk that someone may accidentally shut down Crowd by closing the window. Also, the Crowd logs are properly managed by the Windows service (reliably found in \atlassian-crowd.log in the root Crowd directory, and rotated by file size).

Note for 64-bit Windows

If you are running 64-bit Windows, please note that Apache Tomcat cannot run as a Windows service if you are using a 64-bit JDK. Please ensure that you are using a 32-bit JDK. For more information, please refer to CONF-12293 for a workaround if you intend to continue using the 64-bit JDK.

Installing Crowd as a Windows Service

  1. Open a DOS prompt.
  2. 'cd' to your Crowd directory, and then the Tomcat bin subdirectory, e.g. {CROWD_INSTALL}\apache-tomcat\bin
  3. If a directory in the path has spaces (e.g. C:\Program Files\..), please convert it to its eight-character equivalent (e.g. c:\Progra~1\..).
  4. Ensure the JAVA_HOME variable is set to the JDK base directory. Use echo %JAVA_HOME% to confirm this.
  5. Run the following command:


    Screenshot: Installing Crowd as a Windows Service
     


    Crowd should now have been installed as a service, and will be visible in the Windows Services console.
    Screenshot: Windows Services Console
     

  6. Run the following command, to have the Crowd service start automatically when the server starts:

    The Crowd service will automatically start up the next time the server reboots.

    • You can manually start the Crowd service with the command net start Crowd, and stop it with net stop Crowd.
    • To see what parameters the Crowd service is starting with, go to Start -> Run and run regedt32.exe. There should be an entry at HKEY_LOCAL_MACHINE -> SOFTWARE -> Apache Software Foundation -> Procrun 2.0 -> Crowd.

Additional Crowd Setup Options (Optional)

  • To increase the maximum memory Crowd can use (the default will already be 256MB), run:

  • If you are running Crowd with JIRA and/or Confluence in the same JVM, increase the MaxPermSize to 512 MB:

  • Occasionally, it may be useful to view Crowd's Garbage Collection information. This is especially true when investigating memory issues.
    • To turn on the Verbose GC (garbage collection) logging, execute the following command in the command prompt

    • The path (denoted by \path\to) refers to the directory in which Crowd is currently installed. For example:

  • In order to check all the configurations for the service, you can access:

  • If you are using HSQL as your database server: after installing Crowd as a Windows service, you will need to copy your database files.
    1. Create a folder called c:\windows\system32\database
    2. Copy over the database files from your atlassian-crowd-1.1.2/database.
      (warning) We recommend strongly that you use an external database server rather than the HSQL database supplied with Crowd for evaluation purposes.

      Refer to the Tomcat documentation for further service options.

      RELATED TOPICS

  1. Jan 18, 2011

    Anonymous

    Btw; on my Windows 2008 R2 server, the registry key for the Java settings is: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Apache Software Foundation\Procrun 2.0\Crowd\Parameters\Java.

    In other words - the Wow6432Node is 'new' as to this page. 

  2. Jun 16, 2011

    To save you following the trail from the Jira issue to the Knowledge Base article to Apache.... here is the link for the 64-bit versions of the Tomcat binaries you will need for a 64-bit JDK

    http://svn.apache.org/viewvc/tomcat/tc6.0.x/tags/TOMCAT_6_0_16/res/procrun/amd64/

  3. Sep 20, 2011

    If you keep getting "Failed installing 'Crowd' service" make sure you ran the command prompt as Administrator. It wasn't working for me when I realized that the command prompt was not using the elevated privileges.

  4. Sep 27, 2011

    Anonymous

    I had to go get the 64 bit binaries for my specific Tomcat Version from http://tomcat.apache.org/ .  I downloaded the zip copied out the two binaries mentioned above and voila worked.

  5. Oct 05, 2011

    Anonymous

    If Crowd 2.3.3 crashes after some time when you run is a service make sure that the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Apache Software Foundation\Procrun 2.0\Crowd\Parameters\Java has the entry  maxPermSize=256m defined - it seems that it's not automatically installed.

    https://jira.atlassian.com/browse/CWD-2286