Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » clone : increase java heap space(Is there a way to increase memory?)
icon5.gif clone : increase java heap space [message #1009197] Thu, 14 February 2013 16:33 Go to next message
Nicolas Mising name is currently offline Nicolas Mising nameFriend
Messages: 3
Registered: September 2009
Junior Member
Hello there,
I am trying to use git on a Solaris system where I cannot install anything.
I find out that jgit produce a command line executable available in the download section.

But when I clone my repository, a Java Heap Space occurs (yeah my repository is like 1Go):
~/ fetch
remote: Counting objects: 20712
remote: Compressing objects: 100% (6527/6527)
Receiving objects:      100% (20712/20712)
Resolving deltas:        45% ( 5111/11357)Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
        at org.eclipse.jgit.transport.PackParser.inflateAndReturn(
        at org.eclipse.jgit.transport.PackParser.resolveDeltas(
        at org.eclipse.jgit.transport.PackParser.resolveDeltas(
        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(
        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 org.eclipse.jgit.pgm.TextBuiltin.execute(
        at org.eclipse.jgit.pgm.Main.execute(
        at org.eclipse.jgit.pgm.Main.main(

On a classic java program, I would have increased the memory using -Xmx options, but with this binary command, I have no clue.
Do you have any idea?

Thanks for your help.
Re: clone : increase java heap space [message #1011357 is a reply to message #1009197] Tue, 19 February 2013 11:46 Go to previous message
Christian Halstrick is currently offline Christian HalstrickFriend
Messages: 176
Registered: July 2009
Senior Member
Why is this a binary program? You are calling which is a shell script which can be edited. In the script there is a variable "java_args" which could include youre -Xmx options.

Previous Topic:Problem opening a file for edit
Next Topic:Http Push Error
Goto Forum:

Current Time: Sun Nov 29 17:48:02 GMT 2015

Powered by FUDForum. Page generated in 0.01604 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software