使用git-tf
将项目从TFS克隆到本地计算机时,出现Java堆空间错误。
http://dsiServer1:8080/tfs/Project1“ $ / Biling / Dev” C:\ TFSProjects \ Dev --deep拾取了JAVA_TOOL_OPTIONS:-agentlib:jvmhook拾取了_JAVA_OPTIONS:-Xrunjvmhook -Xbootclasspath / a:“ C:\ Program Files(x86)\ HP \ Unified Functional Testing \ bin \ java_shared \ classes“;” C:\ Program Files(x86)\ HP \ Unified Functional Testing \ bin \ java_shared \ classes \ jasmine.jar“连接到 TFS ...将$ / IPNS Billing / Dev克隆到C:\ TFSProjects \ Dev:5%, Subs_StartBr.html线程“ main”中的异常 java.lang.OutOfMemoryError:Java堆空间 在org.eclipse.jgit.internal.storage.file.UnpackedObject.open(UnpackedObject.java:135) 在org.eclipse.jgit.internal.storage.file.ObjectDirectory.openObject2(ObjectDirectory.java:469) 在org.eclipse.jgit.internal.storage.file.ObjectDirectory.openObject1(ObjectDirectory.java:360) 在org.eclipse.jgit.internal.storage.file.FileObjectDatabase.openObjectImpl1(FileObjectDatabase.java:173) 在org.eclipse.jgit.internal.storage.file.FileObjectDatabase.openObject(FileObjectDatabase.java:158) 在org.eclipse.jgit.internal.storage.file.WindowCursor.open(WindowCursor.java:145) 在org.eclipse.jgit.treewalk.CanonicalTreeParser.reset(CanonicalTreeParser.java:201) 在org.eclipse.jgit.treewalk.CanonicalTreeParser.createSubtreeIterator0(CanonicalTreeParser.java:235) 在org.eclipse.jgit.treewalk.CanonicalTreeParser.createSubtreeIterator(CanonicalTreeParser.java:213) 在org.eclipse.jgit.treewalk.CanonicalTreeParser.createSubtreeIterator(CanonicalTreeParser.java:60) 在org.eclipse.jgit.treewalk.TreeWalk.enterSubtree(TreeWalk.java:912) 在org.eclipse.jgit.treewalk.TreeWalk.forPath(TreeWalk.java:126) 在com.microsoft.gittf.core.tasks.CreateCommitForChangesetVersionSpecTask $ ChangesetCommitItemReader.getFileObjectId(CreateCommitForChangesetVersionSpecTask.java:409) 在com.microsoft.gittf.core.tasks.CreateCommitForChangesetVersionSpecTask.createBlob(CreateCommitForChangesetVersionSpecTask.java:244) 在com.microsoft.gittf.core.tasks.CreateCommitForChangesetVersionSpecTask.run(CreateCommitForChangesetVersionSpecTask.java:180) 在com.microsoft.gittf.core.tasks.framework.TaskExecutor.execute(TaskExecutor.java:145) 在com.microsoft.gittf.core.tasks.CloneTask.run(CloneTask.java:232) 在com.microsoft.gittf.core.tasks.framework.TaskExecutor.execute(TaskExecutor.java:145) 在com.microsoft.gittf.client.clc.commands.CloneCommand.run(CloneCommand.java:216) 在com.microsoft.gittf.client.clc.Main.main(Main.java:328)
答案 0 :(得分:0)
我已使用以下命令将\ git-tf.cmd文件的堆大小增加到4 gb。
java -ea -Xmx4096M -cp%GITTF_CLASSPATH%“ -Dcom.microsoft.tfs.jni.native.base-directory =%BASE_DIRECTORY%native” com.microsoft.gittf.client.clc.Main%*