将应用程序从 32 位迁移到 64 位
我们有一个用 C# 编写的针对 AnyCPU 的 Windows 服务应用程序。它运行在Win2003(32位)服务器上。最近它开始内存不足。
将此服务重新部署到 Win2003(64 位)机器涉及什么。我需要重新编译它吗?如果我不重新编译它,应用程序会获得更多内存吗?
We have a Windows Service app written in C# targeted for AnyCPU. It runs on a Win2003 (32bit) server. Recently it started to run out of memory.
What is involved in redeploying this service to a Win2003 (64bit) box. Do I need to recompile it and will the App get more memory if I do not recompile it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果 exe 设置为 AnyCPU,则没有什么特别的 - 64 位 CLR 将默认在 64 位计算机上加载。您只需确保您真正准备好 AnyCPU(没有不安全或安全的 32 位指针数学假设等)。如果您在没有 PInvoke 的情况下运行所有托管代码,那么您应该处于良好状态。
Nothing special if the exe is set for AnyCPU- the 64-bit CLR will load by default on a 64-bit machine. You just have to make sure you're REALLY AnyCPU ready (no unsafe OR safe 32-bit pointer math assumptions, etc). If you're running all managed code with no PInvokes, you should be in good shape.