Details
-
Bug
-
Resolution: Won't Fix
-
High
-
None
-
6.3.0, 6.5.0, 6.7.1, 6.4.4, 7.1.0, 7.1.3, 7.1.4, 6.10.5, 7.3.1
-
11
-
Severity 2 - Major
-
4
-
Description
Issue Summary
Running Bitbucket with external JDK in Windows Server 2016 is leaking git.exe processes which are being created in kernel memory space and cannot be observed in Task manager or Process Monitor. The speed of generation of such git.exe processes depends on the load on the server. Each process is occupying 20KB RAM and cannot be terminated by the user.
Steps to Reproduce
- Install Bitbucket Server as a service to Windows Server 2016
- Download and install AdoptOpenJDK 8/11
- Edit service properties and switch the Java to newly installed AdoptOpenJDK
- Generate the load on the server for continuous amount of time (the more RAM free the longer)
- Download and install RAMmap https://docs.microsoft.com/en-us/sysinternals/downloads/rammap
- Check with Task manager that there is no git processes
- Open RAMmap and switch to Processes tab
Expected Results
All git.exe processes are finished successfully and no processes are occupying the RAM
Actual Results
No related entries in the logs.
Workaround
Switch back to embedded JRE under Bitbucket installation directory.
If the embedded JRE is not available, it is possible to simply download and extract the following archive and then point Bitbucket to use this as its JRE: