Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

你好,laravel5.5 初始化init的时候错误 #42

Closed
bestcyt opened this issue Jun 14, 2018 · 7 comments
Closed

你好,laravel5.5 初始化init的时候错误 #42

bestcyt opened this issue Jun 14, 2018 · 7 comments

Comments

@bestcyt
Copy link

bestcyt commented Jun 14, 2018

你好,我在控制器中初始化这两个Jieba::init();Finalseg::init();

线上环境500 ; 本地没有问题;

注释掉这两句后,网页正常打开;

在这两句前后dd('test');正常;

就是init的时候不知道什么问题,laravel.log没有记录;network显示500没有提示信息

@bestcyt
Copy link
Author

bestcyt commented Jun 14, 2018

加了1024m内存 好了 ; 但是是不是就炸了,是不是我服务器内存太少了》?

@xiaosanye
Copy link

@bestcyt 你好,请问读写炸了,之后怎么解决呢

@xiaosanye
Copy link

每次执行之后,缓存增大,进程解锁,没有释放,这个是怎么处理的

@fukuball
Copy link
Owner

如果本地端可以,但產品端出問題,那的確是環境問題,通常就是 memory 不夠用

@bestcyt
Copy link
Author

bestcyt commented Sep 10, 2018

@xiaosanye 嗯,我是换了个分词方案,换了scws,我这有写一个简单使用的文章你可以参考一下https://laravel-china.org/articles/13601/the-use-of-php-thesaurus-jieba-and-scws-in-laravel

@fukuball
Copy link
Owner

#49

@fukuball
Copy link
Owner

已在 master 改善這問題囉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants