使用OpsHub迁移工具迁移到Visual Studio Online时出现Java堆空间错误 [英] Java heap space error when migrating to Visual Studio Online using OpsHub Migration Tool

查看:77
本文介绍了使用OpsHub迁移工具迁移到Visual Studio Online时出现Java堆空间错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用OpsHub迁移工具将源代码下载到Visual Studio Online中.在迁移的过程中,进度页指示发生了错误,并且迁移已停止,但是该过程仍在继续运行(即-迁移状态仍然表明它正在运行,并且进程管理器指示opshubtfsservice仍在完成工作. exe程序).

I'm trying to use the OpsHub migration tool to get our source code onto Visual Studio Online. Partway through the migration, the progress page indicates an error occurred and that the migration has halted, and yet the process still continues to run (ie - Migration Status still says it's Running, and process manager indicates work is still being done by the opshubtfsservice.exe process).

如果我单击错误消息中的超级链接,它将打开一个弹出对话框,指示存在某种Java堆空间错误.仔细观察正在运行的进程,我可以看到Java.exe进程正在使用超过2GB的RAM.我正在具有16GB RAM和可用磁盘空间的Windows 7 x64计算机上运行迁移工具.源服务器正在运行TFS 2013.

If I click on the hyper link in the error message, it opens a popup dialog indicating there's been a Java heap space error of some kind. Looking closer at running processes, I can see the Java.exe process is using up over 2GB of RAM. I'm running the migration tool on a Windows 7 x64 machine with 16GB of RAM and loads of disc space free. Source server is running TFS 2013.

我已经运行了几次该工具,并且在迁移过程中的同一时间(通过xxxx/yyyy Chageset/Label)遇到了相同的问题.它似乎并没有达到xxxx + 1/yyyy的水平,但是也许我只需要让它运行更长的时间,因为它可能会咀嚼某种大的变更集.

I've run the tool a few times now, and run into the same issue right at the same point during the migration (xxxx/yyyy Chageset(s)/Label(s) passed). It doesn't seem to get to xxxx+1/yyyy, but perhaps I just need to let it run longer as it's likely chewing on some large changeset of somekind.

关于如何或是否有可能通过此错误的任何建议?我应该担心它,还是只是滚动一下,看看如果我继续进行下去会发生什么?

Any suggestions on how, or if it's possible to get passed this error? Should I be concerned about it, or just roll with it and see what happens if I let the process continue?

推荐答案

默认情况下,迁移实用程序仅限使用2GB内存.

By default the migration utility is restricted to using 2GB of memory.

请按照以下步骤操作,以使其使用更多的内存.

Please follow the following steps to allow it to use more memory.

1)关闭应用程序

2)转到\ OpsHub Visual Studio在线迁移实用程序\ OpsHubServer6.0.16 \ bin(安装驱动器可能是:C:\ Program Files)

2) Go to \OpsHub Visual Studio Online Migration Utility\OpsHubServer6.0.16\bin (Installation Drive may be: C:\Program Files)

3)在记事本中打开service.bat.查找以下字符串"-Xmx2048m".将-Xmx2048m替换为-Xmx4096m(或最大内存大小的适当数字)

3) Open service.bat in NotePad. Find following string "-Xmx2048m". Replace -Xmx2048m to -Xmx4096m (or the appropriate number for the max memory size)

4)保存文件

5)在同一文件夹中

以管理员身份运行 unregisterservice.bat (这将取消注册OpsHub服务.通过打开 services.msc 进行验证,将没有"OpsHub Visual Studio在线迁移实用程序"服务)

Run unregisterservice.bat as administrator (Which will unregister OpsHub service. Verify by opening services.msc there will be no "OpsHub Visual Studio Online Migration Utility" service)

以管理员身份运行 registerservice.bat (这将注册OpsHub服务.通过打开 services.msc 进行验证,然后将有"OpsHub Visual Studio Online Migration Utility"服务与自动"启动类型)

Run registerservice.bat as administrator (Which will register OpsHub service. Verify by opening services.msc and there will be "OpsHub Visual Studio Online Migration Utility" service with "Automatic" startup type)

6)打开 services.msc ,右键单击"OpsHub Visual Studio在线迁移实用程序",单击属性,选择启动类型手动",单击应用"

6) Open services.msc, Right click on "OpsHub Visual Studio Online Migration Utility" , Click on properties, select startup type "Manual" click on "Apply"

7)启动现在将使用4096m内存(4 GB)或第3步中指定的任何数量的应用程序

7) Start application which will now use 4096m memory (4 GB) or whatever amount specified in step 3

这篇关于使用OpsHub迁移工具迁移到Visual Studio Online时出现Java堆空间错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆