Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit » jgit.sh clone : increase java heap space(Is there a way to increase jgit.sh memory?)
icon5.gif  jgit.sh 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 name
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 jgit.sh available in the download section.

But when I clone my repository, a Java Heap Space occurs (yeah my repository is like 1Go):
~/jgit.sh 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(PackParser.java:1476)
        at org.eclipse.jgit.transport.PackParser.resolveDeltas(PackParser.java:556)
        at org.eclipse.jgit.transport.PackParser.resolveDeltas(PackParser.java:534)
        at org.eclipse.jgit.transport.PackParser.parse(PackParser.java:491)
        at org.eclipse.jgit.storage.file.ObjectDirectoryPackParser.parse(ObjectDirectoryPackParser.java:179)
        at org.eclipse.jgit.transport.PackParser.parse(PackParser.java:433)
        at org.eclipse.jgit.transport.BasePackFetchConnection.receivePack(BasePackFetchConnection.java:717)
        at org.eclipse.jgit.transport.BasePackFetchConnection.doFetch(BasePackFetchConnection.java:324)
        at org.eclipse.jgit.transport.BasePackFetchConnection.fetch(BasePackFetchConnection.java:269)
        at org.eclipse.jgit.transport.FetchProcess.fetchObjects(FetchProcess.java:247)
        at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:160)
        at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:122)
        at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1104)
        at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:128)
        at org.eclipse.jgit.pgm.Fetch.run(Fetch.java:110)
        at org.eclipse.jgit.pgm.TextBuiltin.execute(TextBuiltin.java:174)
        at org.eclipse.jgit.pgm.Main.execute(Main.java:200)
        at org.eclipse.jgit.pgm.Main.run(Main.java:120)
        at org.eclipse.jgit.pgm.Main.main(Main.java:94)


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: jgit.sh 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 Halstrick
Messages: 108
Registered: July 2009
Senior Member
Why is this a binary program? You are calling jgit.sh which is a shell script which can be edited. In the script there is a variable "java_args" which could include youre -Xmx options.

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


Current Time: Thu Oct 30 13:13:24 GMT 2014

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

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