Git Integration for Jira Self-Managed (Data Center/Server) Documentation

Contact Support
GitKraken Status  

Avoid OutOfMemory exceptions by configuring or memory allocation with Jira to accommodate large repositories


The JGit library loads all index files into the memory and consumes about twice more memory than the size (in bytes) of these files.


The one or several of the following issues are encountered:

  • The JIRA application crashes

  • Unable to clone/reindex a repository

  • Unable to perform the Git GC procedure


The one or several of the following errors appear in the atlassian-jira.log:

2020-10-20 02:04:37,120-0400 bigbrassband-gitplugin-RevisionIndexerImpl:thread - 0 ERROR      [] Can't perform GC operation: GC overhead limit exceeded
java.lang.OutOfMemoryError: GC overhead limit exceeded
Can't auto-deploy a new repository <your repository origin> java.lang.OutOfMemoryError: Java heap space
2020-04-03 13:20:58,710+0100 bigbrassband-gitplugin-RevisionIndexerImpl:thread - 0 ERROR      [c.b.j.g.s.indexer.revisions.RevisionIndexerImpl] Unable to index repository '<your repository display name>' (repoId: <your repository id>)
org.eclipse.jgit.errors.TransportException: Out of memory loading unknown object
    at org.eclipse.jgit.transport.BasePackFetchConnection.doFetch(
    at org.eclipse.jgit.transport.BasePackFetchConnection.fetch(
    at org.eclipse.jgit.transport.BasePackFetchConnection.fetch(
    at org.eclipse.jgit.transport.FetchProcess.fetchObjects(
    at org.eclipse.jgit.transport.FetchProcess.executeImp(
    at org.eclipse.jgit.transport.FetchProcess.execute(
    at org.eclipse.jgit.transport.Transport.fetch(
    at java.util.concurrent.Executors$
    at java.util.concurrent.ThreadPoolExecutor.runWorker(
    at java.util.concurrent.ThreadPoolExecutor$
Caused by: org.eclipse.jgit.errors.LargeObjectException$OutOfMemory: Out of memory loading unknown object
    at org.aspectj.runtime.reflect.JoinPointImpl.proceed(
    at com.bigbrassband.common.git.blobmanagement.JGitAspects.interceptFor(
    at com.bigbrassband.common.git.blobmanagement.JGitAspects.ajc$inlineAccessMethod$com_bigbrassband_common_git_blobmanagement_JGitAspects$com_bigbrassband_common_git_blobmanagement_JGitAspects$interceptFor(
    at com.bigbrassband.common.git.blobmanagement.JGitAspects.intercept4(
    at org.eclipse.jgit.transport.PackParser.resolveDeltasWithExternalBases(
    at org.eclipse.jgit.transport.PackParser.processDeltas(
    at org.eclipse.jgit.transport.PackParser.parse(
    at org.eclipse.jgit.transport.PackParser.parse(
    at org.eclipse.jgit.transport.BasePackFetchConnection.receivePack(
    at org.eclipse.jgit.transport.BasePackFetchConnection.doFetch(
    ... 17 more
Caused by: java.lang.OutOfMemoryError: Java heap space

Additionally, go to System ➜ System info ➜ JAVA VM memory statistics to see if the allocated memory is running out:



The JVM running JIRA applications has hit an OutOfMemory Error (OOME). This is thrown when the Java Virtual Machine cannot allocate an object because it is out of memory, and no more memory can be made available by the garbage collector.


Follow these instructions to increase the memory available to the JIRA application.

Verify if the memory for Jira has changed by going to System ➜ System info ➜ JAVA VM memory statistics:

Contact Us
If you still have a question – reach out to our Support Desk or email us at [email protected].


More articles about troubleshooting, workarounds and solutions

Why I am getting the error, “git-upload-pack not permitted”?

Avoid OutOfMemory exceptions by configuring or memory allocation with Jira to accommodate large repositories (this page)

Cannot auto-deploy some tracked repositories: Specified origin is incorrect or not supported

Connection Reset when Accessing the Database

“Dangerous use of multiple connections” error on local database

Duplicate entry 0 for key PRIMARY exceptions in log

Error while reindexing – Java heap space / Object too large, rejecting the pack

Error creating git branches and also using NFS

Fix performance issues for nested cloned repositories with enabled Git Service Permissions mode

Fixing reindex issues using Indexing Queue Viewer

Gitolite integration: Why the Git integration app not see the master branch?

Health Check: Database Collation

Indexing error – Too many open files

Installation fails when installing manually

Jira index error: IndexNotFoundException: no segments* file found

Malformed input or input contains unmappable characters

Personal access token failing Azure DevOps integration with Not Authorized error

Problems with shared home on Azure Storage

Pull request index error: org.json.JSONException

Repositories missing from Azure DevOps integration

“Service proxy has been destroyed” exceptions in log

SQLException ‘Incorrect string value’ in merge requests

SSH key file format is invalid

TFS – Not authorized exception when Jira works thru proxy

Unexpected exception parsing XML document from URL error in log

Why don’t I see the Create Branch or Pull Request features?

Have feedback about this article? Did we miss something? Let us know!
On this page