Your comments

No progress yet. I'll let you know once there is something to test.

That's correct, the used library does not support custom definitions.

But you are requesting this feature for SmartGit's Git integration, not its Mercurial integration?

The link points to /rest/api/1.0/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/comments/{commentId} which is about pull request comments only. SmartGit is already using this API. AFAIU, there is currently no API for ordinary commit comments.

Please have a look at following How-To which explains using JVisualVM to profile SmartGit:

http://www.syntevo.com/doc/display/SG/Inspecting+SmartGit%27s+process+using+JVisualVM


In a first step it would be important to understand whether Used heap size properly decreases when closing a Log or a repository or whether there might actually be some kind of memory leak. It would also be interesting whether you can get the overall (reserved) Size to decrease when invoking Perform GC from within JVisualVM.