Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jgit-dev] Facing Issue of Heap Space error in JGit 6.6.1

On Tue, Feb 6, 2024 at 6:27 AM abhi patel via jgit-dev <jgit-dev@xxxxxxxxxxx> wrote:

Dear [Community Members],

I hope this message finds you well. I am writing to seek insights and advice regarding an issue encountered after upgrading from JGit version 6.3.0 to 6.6.1.

Why are you updating to an old jgit release ? Latest one is 6.8.0.202311291450-r.
If you hit a problem with jgit always first try the latest release or the tip of the master branch 
otherwise you miss already existing fixes.

Since the upgrade, I have been facing Heap Space Errors in a Java application that runs continuously. The problem seems to be associated with the continuous addition of cleanup hooks in the ApplicationShutdownHooks. Upon investigation, I observed that the upgraded version of JGit introduced a new PidLock with a lock() method in the jgit.internal.storage.file.GC class.

As per my understanding, ApplicationShutdownHooks execute hooks during the application or JVM closing. However, in our scenario, the application needs to run continuously, leading to a continuous insertion of hooks in ApplicationShutdownHooks and resulting in heap space errors after some time.

I would greatly appreciate any insights or guidance from the community on how to address this issue effectively.

I think that's fixed in 6.8.0.202311291450-r.

-Matthias 

Thank you for your time and expertise.

Best regards, Abhi Patel

_______________________________________________
jgit-dev mailing list
jgit-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/jgit-dev

Back to the top