Skip to main content
December 15, 2013
質問

"current reuse count is 1 of max reuse connection 250 and total endpoint count 1"?

  • December 15, 2013
  • 返信数 1.
  • 3741 ビュー

Hi there!

I am having an issue with a CF10 (newest update) running on Apache/2.2.22 (Ubuntu) mod_ssl/2.2.22 OpenSSL/1.0.1 mod_jk/1.2.32 .

mod_jk.log

...

[Sun Dec 15 11:46:22 2013] [24000:140554067519296] [info] ajp_process_callback::jk_ajp_common.c (2058): current reuse count is 1 of max reuse connection 250 and total endpoint count 1

[Sun Dec 15 11:46:42 2013] [25039:140554067519296] [info] ajp_process_callback::jk_ajp_common.c (2058): current reuse count is 1 of max reuse connection 250 and total endpoint count 1

[Sun Dec 15 11:46:58 2013] [25075:140554067519296] [info] ajp_process_callback::jk_ajp_common.c (2058): current reuse count is 1 of max reuse connection 250 and total endpoint count 1

[Sun Dec 15 11:47:03 2013] [25249:140554067519296] [info] ajp_process_callback::jk_ajp_common.c (2058): current reuse count is 1 of max reuse connection 250 and total endpoint count 1

[Sun Dec 15 11:47:05 2013] [25331:140554067519296] [info] ajp_process_callback::jk_ajp_common.c (2058): current reuse count is 1 of max reuse connection 250 and total endpoint count 1

...

I've run "wsconfig -upgrade" after the CF10 update (is that enough?). I've googled for the above text, but all of the hits had "connection 250 and total endpoint count 250" and not "1" like I do, so I might be having more than one issue with this. My problem is I don't know where to start troubleshooting this so maybe someone can tell me how to fix this.

As for the symptoms, only problem with the server is Apache not closing connections/sessions, so it keeps producing stuck "W" Sending Reply sessions. I had to come with a workround script for that to kill the connections in that state that are older then XX seconds. I don't know if the 2 issues are related.

hope some can help here.

    このトピックへの返信は締め切られました。

    返信数 1

    Legend
    December 16, 2013

    Perhaps this will help. Tomcat document in part says:

    specify how many seconds JK should keep an inactive socket in cache before closing it. This property should be used to reduce the number of threads on the Tomcat web server. The default value zero disables the closing (infinite timeout).

    refer:

    http://tomcat.apache.org/connectors-doc/reference/workers.html


    Changed mod_jk properties file EG:

    ColdFusion10\config\wsconfig\N\
    worker.list=cfusion
    worker.cfusion.type=ajp13
    worker.cfusion.host=localhost
    worker.cfusion.port=8012
    worker.cfusion.max_reuse_connections=250
    worker.cfusion.connection_pool_timeout = 600


    The connectors-doc reference also goes on to say:

    You should keep this time interval in sync with the connectionTimeout attribute of your AJP connector in Tomcat's server.xml. Note however, that the value for mod_jk is given in seconds, the one in server.xml has to use milliseconds.

    server.xml AJP section EG:

    <!-- Define an AJP 1.3 Connector on port 8009
    -->
    <Connector port="8012" protocol="AJP/1.3"
    redirectPort="8445"
    tomcatAuthentication="false"
    connectionTimeout="600000" />

    Note if making syntax changes to  files then backup before applying change. Changes to properties will not take effect until webserver is restarted. Changes to xml do not take effect until CF restart.

    You also might like this reference:

    http://tomcat.apache.org/tomcat-7.0-doc/config/ajp.html

    HTH, Carl.

    December 16, 2013

    Hi Carl!

    I've changed the 2 restarted both services, but I still keep getting the "current reuse count is 1 of max reuse connection 250 and total endpoint count 1" message in mod_jk.log .

    As I've restarted CF, I also noticed these entries in the log:

    ...

    [Mon Dec 16 10:03:14 2013] [25391:140089646937920] [info] ajp_process_callback::jk_ajp_common.c (2058): current reuse count is 1 of max reuse connection 250 and total endpoint count 1

    [Mon Dec 16 10:03:54 2013] [25392:140089646937920] [info] ajp_connection_tcp_get_message::jk_ajp_common.c (1313): (cfusion) can't receive the response header message from tomcat, network problems or tomcat (127.0.0.1:8012) is down (errno=104)

    [Mon Dec 16 10:03:54 2013] [25392:140089646937920] [error] ajp_get_reply::jk_ajp_common.c (2182): (cfusion) Tomcat is down or refused connection. No response has been sent to the client (yet)

    [Mon Dec 16 10:03:54 2013] [25392:140089646937920] [info] ajp_service::jk_ajp_common.c (2684): (cfusion) sending request to tomcat failed (recoverable),  (attempt=1)

    [Mon Dec 16 10:03:54 2013] [25392:140089646937920] [info] jk_open_socket::jk_connect.c (626): connect to 127.0.0.1:8012 failed (errno=111)

    [Mon Dec 16 10:03:54 2013] [25392:140089646937920] [info] ajp_connect_to_endpoint::jk_ajp_common.c (1047): Failed opening socket to (127.0.0.1:8012) (errno=111)

    [Mon Dec 16 10:03:54 2013] [25392:140089646937920] [error] ajp_send_request::jk_ajp_common.c (1669): (cfusion) connecting to backend failed. Tomcat is probably not started or is listening on the wrong port (errno=111)

    [Mon Dec 16 10:03:54 2013] [25392:140089646937920] [info] ajp_service::jk_ajp_common.c (2684): (cfusion) sending request to tomcat failed (recoverable), because of error during request sending (attempt=2)

    [Mon Dec 16 10:03:54 2013] [25392:140089646937920] [error] ajp_service::jk_ajp_common.c (2703): (cfusion) connecting to tomcat failed.

    [Mon Dec 16 10:03:54 2013] [25392:140089646937920] [info] jk_handler::mod_jk.c (2748): Service error=-3 for worker=cfusion

    [Mon Dec 16 10:04:56 2013] [25399:140089646937920] [info] ajp_process_callback::jk_ajp_common.c (2058): current reuse count is 1 of max reuse connection 250 and total endpoint count 1

    ...

    The website seems to be working though.

    How do I increase the "total endpoint count 1"?

    bye

    December 17, 2013

    These messages are normal nothing to be concerned about:

    current reuse count is 1 of max reuse connection 250 and total endpoint count 1

    Would indicate CF is not being overly loaded. On a more busier system or you might see this in logs (Windows example):

    [info] ajp_process_callback::jk_ajp_common.c (2066): current reuse count is 1 of max reuse connection 250
    [info] ...etc... max reuse connection 250 
    [info] ajp_process_callback::jk_ajp_common.c (2066): current reuse count is 6 of max reuse connection 250

    These indicate ColdFusion is down. Probably when you restarted CF:

    [info] ajp_connection_tcp_get_message::jk_ajp_common.c (1313): (cfusion) can't receive the response header message from tomcat,
    ... etc ...
    [info] jk_handler::mod_jk.c (2748): Service error=-3 for worker=cfusion

    HTH again, Carl.


    Cfstat reports between 5 (day low) and 20 (day high) pages per second. It is probably true that CF is not overly loaded (lot of content is cached), I just want to make sure I don't have a bottleneck somewhere else.