我正在尝试解决有关使用mod_proxy_ajp连接Apache和Tomcat的问题.在我的情况下,Tomcat停止响应Apache,并且apache日志打印日志错误消息,如下所示:
[Mon May 06 15:22:47 2013] [error] ajp_read_header: ajp_ilink_receive failed
[Mon May 06 15:22:47 2013] [error] (120006)APR does not understand this error code: proxy: read response failed from [::1]:18009 (localhost)
Run Code Online (Sandbox Code Playgroud)
我不知道.有人可以帮帮我吗?
我有这样的文件格式:
9 8 1
3 4 1
...
...
Run Code Online (Sandbox Code Playgroud)
现在,我希望将每一行作为三个整数.
我用的时候
for line in f.readlines():
print line.split(" ")
Run Code Online (Sandbox Code Playgroud)
脚本打印了这个:
['9', '8', '1\r\n']
['3', '4', '1\r\n']
...
...
Run Code Online (Sandbox Code Playgroud)
如何将每一行作为三个整数?
我正在为每台机器使用带有1G缓存的ElasticSearch集群.我将搜索者配置为5000/perpage.
当我搜索第3页时,它花费大约400毫秒.但是当我搜索第300页时,成本增加到超过5000毫秒!在这种情况下,大约60%的缓存是免费的.
为什么成本增加了10倍以上?