• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

ColdFusion 2021 Apache connector or Apache not closing connections

Community Beginner ,
Aug 10, 2021 Aug 10, 2021

Copy link to clipboard

Copied

Centos 7.9

ColdFusion 2021 w/ Update1

Apache 2.4.6

Connector version:321158

 

I have noticed that when using Apache via the connector to serve ColdFusion pages that over time the server quits responding.  Looking in the mod_jk.log I see:

[info] ajp_connection_tcp_get_message::jk_ajp_common.c (1443) : (cfusion) can't receive the response header message from tomcat, tomcat (127.0.0.1:8020) has forced a connection close for socket 13

[error] ajp_get_reply:: jk_ajp_common.c (2420) : (cfusion) Tomcat is down or refused connection. No response has been sent to the client (yet)

[info] ajp_service::jk_ajp_common.c (3000) : (cfusion) sending request to tomcat failed (recoverable),  (attempt=1)

 

Checking netstat I see thousands of connections in the CLOSE_WAIT state.  

Restarting Apache does not clear the hung sockets

Restarting ColdFusion does clear them

 

Using the built-in Tomcat server on port 8500 I do not see this issue.

Is this an Apache problem or a connector problem?

 

Thanks,

Dan Mather

TOPICS
Connector

Views

937

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Beginner , Aug 13, 2021 Aug 13, 2021

I installed a previous version of the connector and the issue seems to have gone away (I had received serveral engineeering versions trying to resolve a different problem.)  All is well now.

 

Dan Mather

Votes

Translate

Translate
Community Beginner ,
Aug 10, 2021 Aug 10, 2021

Copy link to clipboard

Copied

Update --I ran the Apache Server Status and can see Apache is running just fine -it closes the connection and frees the child processes.  From the Apache perspective things are fine.

 

This leads me to suspect the connector is not closing the connection.

 

Dan

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 13, 2021 Aug 13, 2021

Copy link to clipboard

Copied

I installed a previous version of the connector and the issue seems to have gone away (I had received serveral engineeering versions trying to resolve a different problem.)  All is well now.

 

Dan Mather

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Sep 08, 2021 Sep 08, 2021

Copy link to clipboard

Copied

Good afternoon!
Is there more information on this issue available?  We're running CF-2021 on a Solaris server.  Which version of WSConfig is current & which is the previous version?  Where can we get the previous version?  Any info on this issue would be most helpful.

Thanks!
V/R
John

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 08, 2021 Sep 08, 2021

Copy link to clipboard

Copied

I can answer the last question of yours, John.

 

1) First, note that the connector file (mod_jk.so) for each update can be found in the wsconfig.jar file (which is just a comoressed/zip file). If you extract or explore into it, you'll find that file for different OSs.

 

The current one (for whatever cf update you're on) would be in the wsconfig.jar in the cfusion/runtime/lib folder.

 

2) Previous versions of that file (for each past update you've applied) would be in the backup of the next update. So if you're on cf2018 update 11, for instance, when you applied that it created a folder for that update 11 in your cfusion/hf-updates folder. In that is a backup folder, and in that are whatever files you had before that the update changes.

 

So you could find your previous runtime/lib/wsconfig.jar there.

 

3) But you may want to find one for an earlier update that you did not apply.

 

For that, you could download whatever past update you want via the technote for that update (which you can find via web search). That will itself be a jar you could extract.

 

Sorry, but there is no simple repo of past connectors, on their own.

 

I hope others may answer your other questions. 


/Charlie (troubleshooter, carehart.org)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Sep 09, 2021 Sep 09, 2021

Copy link to clipboard

Copied

LATEST

Thanks Charlie!  🙂

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation