Exception in thread "main" java.lang.OutOfMemoryError: Java heap space cloning project from TFS to local machine
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space cloning project from TFS to local machine
我在使用 git-tf
.
将项目从 TFS 克隆到本地计算机时遇到 Java 堆 space 错误
http://dsiServer1:8080/tfs/Project1 "$/Biling/Dev" C:\TFSProjects\Dev
--deep Picked up JAVA_TOOL_OPTIONS: -agentlib:jvmhook Picked up _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" Connecting to
TFS... Cloning $/IPNS Billing/Dev into C:\TFSProjects\Dev: 5%,
Subs_StartBr.html Exception in thread "main"
java.lang.OutOfMemoryError: Java heap space
at org.eclipse.jgit.internal.storage.file.UnpackedObject.open(UnpackedObject.java:135)
at org.eclipse.jgit.internal.storage.file.ObjectDirectory.openObject2(ObjectDirectory.java:469)
at org.eclipse.jgit.internal.storage.file.ObjectDirectory.openObject1(ObjectDirectory.java:360)
at org.eclipse.jgit.internal.storage.file.FileObjectDatabase.openObjectImpl1(FileObjectDatabase.java:173)
at org.eclipse.jgit.internal.storage.file.FileObjectDatabase.openObject(FileObjectDatabase.java:158)
at org.eclipse.jgit.internal.storage.file.WindowCursor.open(WindowCursor.java:145)
at org.eclipse.jgit.treewalk.CanonicalTreeParser.reset(CanonicalTreeParser.java:201)
at org.eclipse.jgit.treewalk.CanonicalTreeParser.createSubtreeIterator0(CanonicalTreeParser.java:235)
at org.eclipse.jgit.treewalk.CanonicalTreeParser.createSubtreeIterator(CanonicalTreeParser.java:213)
at org.eclipse.jgit.treewalk.CanonicalTreeParser.createSubtreeIterator(CanonicalTreeParser.java:60)
at org.eclipse.jgit.treewalk.TreeWalk.enterSubtree(TreeWalk.java:912)
at org.eclipse.jgit.treewalk.TreeWalk.forPath(TreeWalk.java:126)
at com.microsoft.gittf.core.tasks.CreateCommitForChangesetVersionSpecTask$ChangesetCommitItemReader.getFileObjectId(CreateCommitForChangesetVersionSpecTask.java:409)
at com.microsoft.gittf.core.tasks.CreateCommitForChangesetVersionSpecTask.createBlob(CreateCommitForChangesetVersionSpecTask.java:244)
at com.microsoft.gittf.core.tasks.CreateCommitForChangesetVersionSpecTask.run(CreateCommitForChangesetVersionSpecTask.java:180)
at com.microsoft.gittf.core.tasks.framework.TaskExecutor.execute(TaskExecutor.java:145)
at com.microsoft.gittf.core.tasks.CloneTask.run(CloneTask.java:232)
at com.microsoft.gittf.core.tasks.framework.TaskExecutor.execute(TaskExecutor.java:145)
at com.microsoft.gittf.client.clc.commands.CloneCommand.run(CloneCommand.java:216)
at com.microsoft.gittf.client.clc.Main.main(Main.java:328)
我已使用以下命令将 \git-tf.cmd 文件的堆大小增加到 4 GB。
java -ea -Xmx4096M -cp %GITTF_CLASSPATH% "-Dcom.microsoft.tfs.jni.native.base-目录=%BASE_DIRECTORY%native" com.microsoft.gittf.client.clc.Main %*
我在使用 git-tf
.
http://dsiServer1:8080/tfs/Project1 "$/Biling/Dev" C:\TFSProjects\Dev --deep Picked up JAVA_TOOL_OPTIONS: -agentlib:jvmhook Picked up _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" Connecting to TFS... Cloning $/IPNS Billing/Dev into C:\TFSProjects\Dev: 5%, Subs_StartBr.html Exception in thread "main" java.lang.OutOfMemoryError: Java heap space at org.eclipse.jgit.internal.storage.file.UnpackedObject.open(UnpackedObject.java:135) at org.eclipse.jgit.internal.storage.file.ObjectDirectory.openObject2(ObjectDirectory.java:469) at org.eclipse.jgit.internal.storage.file.ObjectDirectory.openObject1(ObjectDirectory.java:360) at org.eclipse.jgit.internal.storage.file.FileObjectDatabase.openObjectImpl1(FileObjectDatabase.java:173) at org.eclipse.jgit.internal.storage.file.FileObjectDatabase.openObject(FileObjectDatabase.java:158) at org.eclipse.jgit.internal.storage.file.WindowCursor.open(WindowCursor.java:145) at org.eclipse.jgit.treewalk.CanonicalTreeParser.reset(CanonicalTreeParser.java:201) at org.eclipse.jgit.treewalk.CanonicalTreeParser.createSubtreeIterator0(CanonicalTreeParser.java:235) at org.eclipse.jgit.treewalk.CanonicalTreeParser.createSubtreeIterator(CanonicalTreeParser.java:213) at org.eclipse.jgit.treewalk.CanonicalTreeParser.createSubtreeIterator(CanonicalTreeParser.java:60) at org.eclipse.jgit.treewalk.TreeWalk.enterSubtree(TreeWalk.java:912) at org.eclipse.jgit.treewalk.TreeWalk.forPath(TreeWalk.java:126) at com.microsoft.gittf.core.tasks.CreateCommitForChangesetVersionSpecTask$ChangesetCommitItemReader.getFileObjectId(CreateCommitForChangesetVersionSpecTask.java:409) at com.microsoft.gittf.core.tasks.CreateCommitForChangesetVersionSpecTask.createBlob(CreateCommitForChangesetVersionSpecTask.java:244) at com.microsoft.gittf.core.tasks.CreateCommitForChangesetVersionSpecTask.run(CreateCommitForChangesetVersionSpecTask.java:180) at com.microsoft.gittf.core.tasks.framework.TaskExecutor.execute(TaskExecutor.java:145) at com.microsoft.gittf.core.tasks.CloneTask.run(CloneTask.java:232) at com.microsoft.gittf.core.tasks.framework.TaskExecutor.execute(TaskExecutor.java:145) at com.microsoft.gittf.client.clc.commands.CloneCommand.run(CloneCommand.java:216) at com.microsoft.gittf.client.clc.Main.main(Main.java:328)
我已使用以下命令将 \git-tf.cmd 文件的堆大小增加到 4 GB。
java -ea -Xmx4096M -cp %GITTF_CLASSPATH% "-Dcom.microsoft.tfs.jni.native.base-目录=%BASE_DIRECTORY%native" com.microsoft.gittf.client.clc.Main %*