2012-09-07 201 views
0

我有一个共享的托管网站,我有3个网站托管。 2个域和一个子域。共享虚拟主机上的System.OutOfMemoryException

我遇到了我的子域名问题。我每次去我得到它

'System.OutOfMemoryException' 

Server Error in '/' Application. 
Exception of type 'System.OutOfMemoryException' was thrown. 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown. 

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 

Stack Trace: 


[OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.] 
    System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0 
    System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +39 
    System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks) +132 
    System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +144 
    System.Reflection.Assembly.Load(String assemblyString) +28 
    System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +46 

[ConfigurationErrorsException: Exception of type 'System.OutOfMemoryException' was thrown.] 
    System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +618 
    System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +209 
    System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +130 
    System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +178 
    System.Web.Compilation.BuildManager.GetPreStartInitMethodsFromReferencedAssemblies() +94 
    System.Web.Compilation.BuildManager.CallPreStartInitMethods() +332 
    System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +677 

[HttpException (0x80004005): Exception of type 'System.OutOfMemoryException' was thrown.] 
    System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9090876 
    System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +97 
    System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +256 

该网站已经部署了几个星期现在我使用的唯一用户。自从几周前发布以来,没有对代码进行任何新的更改,当我上周使用该网站时,它的运行良好。

我试图重新上传所有的代码,但仍然是同样的问题。代码的本地副本工作正常,没有问题。

我的另2位是正常工作

+0

您的所有网站都使用相同的应用程序池是32位还是64位? – MichaelT

+0

我不知道。 – chobo2

回答

0

您的其他网站也有可能增加其使用到一个地步,你的总内存需求更大然后由您的托管公司分配的内存。与他们联系,让他们将更多内容添加到您的帐户中。

+0

雅我发邮件给他们,因为我无法看到任何地方,它说我有多少内存和我有多少使用。 – chobo2

+0

雅他们回到我身边说,它正在工作。一定是一些随机的东西。 – chobo2

+0

它是一个随机的问题是它可能会再次发生。很可能您的其他网站的内存使用量会随着时间的推移而发生变化,因此您将来可能仍然会收到相同的错误(并且如果流量增加,则更多)。归根结底,你是从这些网站的任何一个网站赚钱,还是以某种其他方式,如果有人看到这个错误有关系?如果不是,那么接受它将在未来再次发生。但是,如果它确实重要,那么支付更好的托管或与您的当前提供者或新的托管。 –