简体   繁体   English

难以在arangodb-php中注册文档

[英]Difficult with registering a document in arangodb-php

Has anyone also had this problem working with arangodb and php? 有没有人在使用arangodb和php时也遇到这个问题? If yes, could you help me understand what it would be. 如果是的话,您能帮我理解吗? Thanks for listening! 谢谢收听!

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /var/www/clube/parceiros/vendor/triagens/arangodb/lib/triagens/ArangoDb/Document.php on line 333 致命错误:在第333行的/var/www/clube/parceiros/vendor/triagens/arangodb/lib/triagens/ArangoDb/Document.php中,已用完的内存大小为134217728字节(尝试分配20480字节)

It looks like your PHP code is trying to use more than 128 MB of memory in total. 看来您的PHP代码正在尝试总共使用128 MB以上的内存。 In PHP, a config option ( memory_limit ) controls the maximum amount of memory that each PHP process is allowed to use. 在PHP中,配置选项( memory_limit )控制允许每个PHP进程使用的最大内存量。 It seems that your script hits that limit, so the PHP runtime aborts script execution. 您的脚本似乎达到了该限制,因此PHP运行时中止了脚本执行。

To avoid this, you can either reconfigure the memory_limit value in your php.ini config file or adjust the PHP script so it uses less memory. 为了避免这种情况,您可以在php.ini配置文件中重新配置memory_limit值,也可以调整PHP脚本以使用更少的内存。 It's hard to tell from here whether the latter is actually possible, because it mostly depends on what the script is actually doing, and this is neither explained nor shown in the question. 从这里很难说出后者是否确实可行,因为它主要取决于脚本的实际作用,而问题中既没有解释也没有显示。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM