Open GoogleCodeExporter opened 9 years ago
The problem: java.net.ConnectException: Connection timed out: connect
What does that mean?
APJP_LOCAL tries to make a connection with APJP_REMOTE* but APJP_REMOTE* has
too many connections. After X time APJP_LOCAL has a connection timeout.
Why?
Google Maps makes a lot of connections to download images. Google Maps
downloads those images from multiple servers (load balancing).
The free HEROKU/DOTCLOUD/JELASTIC accounts have limited resources (they can
only handle 1-2 connections at the time).
Solution:
The free APPENGINE account can handle more connections (but has other
restrictions), so configure APJP_LOCAL with 10 APJP_REMOTE_APPENGINE
(preferable) or a combination of APJP_REMOTE_APPENGINE with APJP_REMOTE*.
By Jeroen
Original comment by goknmuse
on 15 Feb 2012 at 12:37
问题:java.net.ConnectException: Connection timed out: connect
这是什么意思?
答:APJP_LOCAL
尝试连接APJP_REMOTE*,但是APJP_REMOTE*(APJP_REMOTE_HEROKU,APJP_REMOTE
_DOTCLOUD...)有过多的连接。一段时间后,APJP_LOCAL有一个连接�
��时。
为什么?
答:Google Maps需要许多的连接下载图片。Google
Maps从多台服务器上下载图片(负载平衡)。
免费的HEROKU/DOTCLOUD/JELASTIC帐号,只有有限的配额。(他们只��
�一次处理1-2个连接)
解决方法:
免费的APPENGINE的帐号可以处理更多的连接(但是有其他的限��
�。例如:最大只能上传1MB的文件),因此给APJP_LOCAL配置10个APJ
P_REMOTE_APPENGINE(可行)或APJP_REMOTE_APPENGINE和APJP_REMOTE*组合。
Original comment by goknmuse
on 15 Feb 2012 at 12:56
OK, I will have a try, thanks for your reply. One more thing, it seems to work
better when I run APJP_UI than I just simply run APJP.bat. Is there any tricks?
Original comment by lsyc...@gmail.com
on 15 Feb 2012 at 4:22
No problem :)
APJP_UI has a different logger level than APJP:
APJP_LOGGER_LEVEL=2
APJP_LOCAL_PROXY_SERVER_LOGGER_LEVEL=0
APJP_LOCAL_HTTP_PROXY_SERVER_LOGGER_LEVEL=0
APJP_LOCAL_HTTP_SERVER_LOGGER_LEVEL=0
APJP_LOCAL_HTTPS_PROXY_SERVER_LOGGER_LEVEL=0
APJP_LOCAL_HTTPS_SERVER_LOGGER_LEVEL=0
Original comment by jeroen.v...@gmail.com
on 15 Feb 2012 at 7:28
Original issue reported on code.google.com by
lsyc...@gmail.com
on 15 Feb 2012 at 8:52