如何解决内存异常问题 [英] how to solve out memory exceptions

查看:71
本文介绍了如何解决内存异常问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

var pptApplication = new ppt.Application();
var presentation = pptApplication.Presentations;
 
var pptPresentation = presentation.Open2007(DocumentURL, MsoTriState.msoTrue, MsoTriState.msoTrue, MsoTriState.msoFalse);







i我正在尝试加载演示文稿:DocumentURL是我保持ppt(2003-2007)的地方。



但我的内存不足以继续程序执行错误。



i尝试了各种代码和方法来解决:但是失败了。



当我把它保存在本地时工作正常。当我收到它时,我收到了这个错误。



提前致谢,

Vaidhya.P




i am trying to load a presentation : DocumentURL is the Place where i kept my ppt (2003-2007).

but i am getting insufficient memory to continue the program execution error.

i tried various codes and methods to solve : but failed.

its working fine when i keep it local. when i host it i am getting this error.

Thanks in advance,
Vaidhya.P

推荐答案

嗯,这发生了。您尝试创建应用程序,订阅,上传源代码,现在您无处可去!



在获得订阅之前,您必须始终考虑检查硬件提供给您的资源。不仅仅是硬件,还有基于网络的资源。我甚至在期待他们的定价之前必须经常检查的一些事情是:



1.我能获得的CPU

- 大多数情况下,共享会做这项工作。但如果专用,那么我必须知道正在使用的CPU。

2. RAM金额。

- 获得至少1 GB,如果是4 GB或8 GB,如果您的应用程序需要超过1 GB的空间。大多数托管服务提供商提供的空间大小为256 MB,这还不够;因此导致你现在面临的这些问题。

3.硬盘空间

- 无限制(首选),10GB +(最低)

4。数据库

- 如果我可以支付那个幸运饼干,否则我更喜欢JSON文件并自己编写数据库引擎。 :-)

5.带宽

- 带宽用于上传和下载数据,确保它们至少为您提供50GB,并且随着用户的增长而增长。 br />
6.正常运行时间

- 99%

7.框架

- 我所有的框架需要得到支持,我不想为每个新插件支付一大笔钱。

8.客户支持

24x7



这些只是必须检查的一些事情。现在,您创建的程序只能在您的计算机上完美运行,但不会在托管环境中运行。为什么?因为它们没有为它提供足够的RAM量,所以( OutOfMemory告诉没有足够的内存来处理所有内容)。



只有解决方案,请联系团队并要求他们升级您的服务。您应该考虑获得更多的RAM,可以使用您的应用程序。升级其他资源并始终记住首先查看他们提供的服务,然后查看他们的定价。额外支付5美元应该不是问题,但是停机时间对你来说应该是一个问题。
Hm, that happens. You tried to create an application, got a subscription, uploaded the source, and now you have nowhere to do!

Before getting a subscription you must always consider checking the hardware resources being provided to you. Not just hardware, but network based resources. A few of the things that I must always check before even looking forward at their pricing are:

1. CPU that I can get
- Mostly, shared would do the work. But if dedicated, then I must know the CPU being used.
2. RAM amount.
- Get a minimum of 1 GB, go for 4 GB or 8 GB if your application needs more than 1 GB of space. Most hosting providers provide a space of like 256 MB, that is not enough; thus causes these problems that you are facing now.
3. HDD space
- Unlimited (preferred), 10GB+ (minimum)
4. Databases
- If I can pay that fortune cookie, otherwise I prefer JSON files and write the database engine myself. :-)
5. Bandwidth
- Bandwidth is used for upload and download data, make sure they give you a minimum of 50GB and can grow as your users grow.
6. Up-time
- 99%
7. Frameworks
- All frameworks that I need must be supported, I do not want to pay a fortune for every new plugin.
8. Customer support
24x7

These are just a few of those things that must be checked. Now, you create a program that works just perfecly on your machine, but doesn't on the hosting environment. Why? Because they do not provide it with enough RAM amount that it needs, (OutOfMemory tells that there is not enough memory to process everything).

There is only solution to this, contact the team and ask them to upgrade your service. You should consider getting more amount of RAM, the one that can work with your application. Upgrade other resources and always remember to first look at what service they provide, then look at their pricing. Paying 5 bucks extra should not be a problem, but having a downtime should be a problem for you.


这篇关于如何解决内存异常问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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