dongtan5555 2016-12-20 07:27
浏览 65

Laravel记忆问题?

enter image description here

dear all

i am facing such problem on DO server, i have tried everything , the whole site is working 100% properly on linux server using Homestead but after uploading it , it works for one time , going down many times after reloading or refreshing the page . - i tried to increase the memory of the apache server - i also tried to track the laravel.log but no any issues. - i also deleted the compiled.php in addition of composer clear-cache + php artisan cache:clear + php artisan optimize but no use.

any ideas ? i would be so thankful. thank you in advance.

  • 写回答

2条回答 默认 最新

  • dongnigeng1295 2016-12-20 08:49
    关注

    Your droplet is running out of memory. Create a swap file to fix this issue.

    sudo fallocate -l 1G /swapfile
    sudo chmod 600 /swapfile
    sudo mkswap /swapfile
    sudo swapon /swapfile
    echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab
    

    Reference: DigitalOcean

    评论

报告相同问题?

悬赏问题

  • ¥15 微信会员卡等级和折扣规则
  • ¥15 微信公众平台自制会员卡可以通过收款码收款码收款进行自动积分吗
  • ¥15 随身WiFi网络灯亮但是没有网络,如何解决?
  • ¥15 gdf格式的脑电数据如何处理matlab
  • ¥20 重新写的代码替换了之后运行hbuliderx就这样了
  • ¥100 监控抖音用户作品更新可以微信公众号提醒
  • ¥15 UE5 如何可以不渲染HDRIBackdrop背景
  • ¥70 2048小游戏毕设项目
  • ¥20 mysql架构,按照姓名分表
  • ¥15 MATLAB实现区间[a,b]上的Gauss-Legendre积分