0
을위한 시간이 오래 걸릴, 당신 중 일부는 몇 가지 조언을 나에게건초 더미가 나는 건초 더미 영역에 대한 문제가 모든 검색 요청
내 응용 프로그램에서, 검색 요청은 시간이 오래 걸릴 때마다, 그리고 건초 더미를 줄 수있는 한 희망 높은 CPU 비용.
Building Trie..., from /Users/yonzhang/script/hss/hibox/demo/jieba/dict.txt
loading model from cache /var/folders/2y/nmm0yhhx3tx0mwjrt8yqztxr0000gn/T/jieba.cache
loading model cost 1.41886401176 seconds.
Trie has been built succesfully.
때로는이 같은 오류 로그 사항 : : 여기에 일부 로그 인 조언에
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/wsgiref/handlers.py", line 86, in run
self.finish_response()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/wsgiref/handlers.py", line 128, in finish_response
self.write(data)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/wsgiref/handlers.py", line 212, in write
self.send_headers()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/wsgiref/handlers.py", line 270, in send_headers
self.send_preamble()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/wsgiref/handlers.py", line 194, in send_preamble
'Date: %s\r\n' % format_date_time(time.time())
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 324, in write
self.flush()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 303, in flush
self._sock.sendall(view[write_offset:write_offset+buffer_size])
error: [Errno 32] Broken pipe
[08/Apr/2014 08:35:36] "GET /search?q=%E4%BA%A7%E5%93%81%E7%BB%8F%E7%90%86 HTTP/1.1" 500 59
감사합니다 ~
yonzhang