首页 > 解决方案 > Azure 应用服务:“磁盘空间不足。” 虽然 300MB/50GB

问题描述

我们在服务计划中运行了一项应用服务,该服务计划的存储限制为 50GB。

应用服务是服务计划的唯一一部分。

我们有一个运行在D:\home\site\services>一个文件夹上的 .NET Web 服务,我们定期在其中创建.docx.pdf文件。

几个月前,我们只是There is not enough space on the disk在该上传文件夹中存储了多个千兆字节后才收到。但是随着时间的推移,这个异常被越来越快地抛出——我们通过清空上传文件夹来解决这个问题。

到目前为止,当上传文件夹中的文件少于 100 个时,我们会收到此异常。虽然应用服务的总存储空间只有 400MB/50GB...

这是堆栈跟踪的顶部:

System.IO.IOException: There is not enough space on the disk.

   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.WriteCore(Byte[] buffer, Int32 offset, Int32 count)
   at System.IO.FileStream.Write(Byte[] array, Int32 offset, Int32 count)
   at Xceed.Words.NET.DocX.Save()
   at Xceed.Words.NET.DocX.SaveAs(String filename)

有谁知道我们做错了什么?

编辑:应用服务和应用服务计划的配额均为 50GB。我根本没有看到任何存储限制。

标签: azurestorageazure-web-app-serviceazure-app-service-plans

解决方案


推荐阅读