通过PHP向MSMQ发送大于1.1 MB的消息时“资源不足”

时间:2018-04-03 12:30:52

标签: php com resources msmq

我正在尝试使用PHP向MSMQ发送消息。当消息小于大约1.1 MB时,将发送消息。否则,我得到异常“com_exception:没有足够的资源来执行此操作。”该消息小于限制4 MB。 这是我到目前为止所发现的:

    使用PHP的
  • model.compile(loss='mae', optimizer='adam',metrics=['mae']) file_get_contents没有问题,因此上传限制应该没问题
  • 发送相同的消息不用PHP工作没有问题,所以它与PHP有关
  • 从队列中清除消息无济于事
  • 没有死信信息

php.ini设置:

  • 的upload_max_filesize = 20M
  • memory_limit的= 512M

msmq属性中的邮件大小没有限制。

我在file_get_contents中上传pdf文件。这是用于发送的php,例外是在$ msgOut->发送($ msgQueue):

file_put_contents

0 个答案:

没有答案