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

CF2023: Problem with mod_jk.log el arhivo is too large on Windows, Apache 2.4.58

Explorer ,
Nov 27, 2024 Nov 27, 2024

Copy link to clipboard

Copied

I have problems with the mod_jk.log file, it grows exponentially until it runs out of space on the hard drive

Windows Server 2022

ColdFuision 2023

Apache 2.4.62 (64Bits).

<Connector packetSize="65535" protocol="AJP/1.3" address="::1" port="8022" redirectPort="8455" secret="9c59d633-9c26-4560-bf94-85faf8a3f382" maxThreads="500" connectionTimeout="60000" tomcatAuthentication="false"/>

 

File mod_jk.log:

[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] wc_get_worker_for_name::jk_worker.c (157): found a worker cfusion
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] wc_get_name_for_type::jk_worker.c (341): Found worker type 'ajp13'
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_get_endpoint::jk_ajp_common.c (3779): (cfusion) acquired connection pool slot=0 after 0 retries
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_marshal_into_msgb::jk_ajp_common.c (763): (cfusion) ajp marshaling done
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_service::jk_ajp_common.c (2809): processing cfusion with 2 retries
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1368): sending to ajp13 pos=4 len=911 max=65536
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1368): 0000 12 34 03 8B 02 02 00 08 48 54 54 50 2F 32 2E 30 - .4......HTTP/2.0
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1368): 0010 00 00 E6 2F 69 6E 64 65 78 2E 63 66 6D 2F 61 63 - .../index.cfm/ac
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1368): 0020 65 72 63 61 2D 64 65 2F 63 6F 6D 6F 2D 61 63 63 - erca-de/como-acc
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1368): 0030 65 64 65 72 2D 61 6C 2D 73 69 73 74 65 6D 61 2D - eder-al-sistema-
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1368): 0040 69 6E 74 65 72 61 6D 65 72 69 63 61 6E 6F 2F 74 - interamericano/t
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1368): 0050 61 62 6C 61 73 2F 63 6F 72 74 65 69 64 68 74 76 - ablas/corteidhtv
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1368): 0060 2F 63 66 2F 4A 75 72 69 73 70 72 75 64 65 6E 63 - /cf/Jurisprudenc
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1368): 0070 69 61 32 2F 74 61 62 6C 61 73 2F 74 72 65 73 2D - ia2/tablas/tres-
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1368): 0080 63 6F 72 74 65 73 2F 74 61 62 6C 61 73 2F 64 69 - cortes/tablas/di
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1368): 0090 61 6C 6F 67 61 2F 74 61 62 6C 61 73 2F 63 6F 72 - aloga/tablas/cor
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1368): 00a0 74 65 69 64 68 74 76 2F 74 61 62 6C 61 73 2F 74 - teidhtv/tablas/t
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1368): 00b0 72 65 73 2D 63 6F 72 74 65 73 2F 74 61 62 6C 61 - res-cortes/tabla
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1368): 00c0 73 2F 72 65 70 61 72 61 6E 64 6F 2D 64 65 72 65 - s/reparando-dere
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1368): 00d0 63 68 6F 73 2F 64 6F 63 73 2F 72 65 67 6C 61 5F - chos/docs/regla_
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1368): 00e0 76 69 63 74 69 6D 61 73 2F 76 69 63 74 69 6D 61 - victimas/victima
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1368): 00f0 73 5F 65 73 70 2E 70 64 66 00 00 0D 31 37 32 2E - s_esp.pdf...172.
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1368): 0100 37 30 2E 31 37 34 2E 38 33 00 FF FF 00 12 77 77 - 70.174.83.....ww
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1368): 0110 77 2E 63 6F 72 74 65 69 64 68 2E 6F 72 2E 63 72 - w.corteidh.or.cr
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1368): 0120 00 01 BB 01 00 0E 00 10 43 66 2D 43 6F 6E 6E 65 - ........Cf-Conne
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1368): 0130 63 74 69 6E 67 2D 49 70 00 00 0B 35 37 2E 31 34 - cting-Ip...57.14
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1368): 0140 31 2E 30 2E 31 33 00 00 08 43 64 6E 2D 4C 6F 6F - 1.0.13...Cdn-Loo
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1368): 0150 70 00 00 13 63 6C 6F 75 64 66 6C 61 72 65 3B 20 - p...cloudflare;.
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1368): 0160 6C 6F 6F 70 73 3D 31 00 00 0F 41 63 63 65 70 74 - loops=1...Accept
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1368): 0170 2D 45 6E 63 6F 64 69 6E 67 00 00 08 67 7A 69 70 - -Encoding...gzip
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1368): 0180 2C 20 62 72 00 00 0F 58 2D 46 6F 72 77 61 72 64 - ,.br...X-Forward
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1368): 0190 65 64 2D 46 6F 72 00 00 0B 35 37 2E 31 34 31 2E - ed-For...57.141.
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1368): 01a0 30 2E 31 33 00 00 06 43 66 2D 52 61 79 00 00 14 - 0.13...Cf-Ray...
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1368): 01b0 38 65 39 35 62 65 38 65 30 66 39 31 65 66 35 65 - 8e95be8e0f91ef5e
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1368): 01c0 2D 4D 49 41 00 00 0E 54 72 75 65 2D 43 6C 69 65 - -MIA...True-Clie
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1368): 01d0 6E 74 2D 49 70 00 00 0B 35 37 2E 31 34 31 2E 30 - nt-Ip...57.141.0
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1368): 01e0 2E 31 33 00 00 0C 43 66 2D 49 70 63 6F 75 6E 74 - .13...Cf-Ipcount
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1368): 01f0 72 79 00 00 02 55 53 00 00 11 58 2D 46 6F 72 77 - ry...US...X-Forw
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1368): 0200 61 72 64 65 64 2D 50 72 6F 74 6F 00 00 05 68 74 - arded-Proto...ht
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1368): 0210 74 70 73 00 00 0A 43 66 2D 56 69 73 69 74 6F 72 - tps...Cf-Visitor
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1368): 0220 00 00 12 7B 22 73 63 68 65 6D 65 22 3A 22 68 74 - ...{"scheme":"ht
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1368): 0230 74 70 73 22 7D 00 A0 01 00 03 2A 2F 2A 00 A0 0E - tps"}.....*/*...
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1368): 0240 00 59 6D 65 74 61 2D 65 78 74 65 72 6E 61 6C 61 - .Ymeta-externala
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1368): 0250 67 65 6E 74 2F 31 2E 31 20 28 2B 68 74 74 70 73 - gent/1.1.(+https
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1368): 0260 3A 2F 2F 64 65 76 65 6C 6F 70 65 72 73 2E 66 61 - ://developers.fa
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1368): 0270 63 65 62 6F 6F 6B 2E 63 6F 6D 2F 64 6F 63 73 2F - cebook.com/docs/
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1368): 0280 73 68 61 72 69 6E 67 2F 77 65 62 6D 61 73 74 65 - sharing/webmaste
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1368): 0290 72 73 2F 63 72 61 77 6C 65 72 29 00 A0 0B 00 12 - rs/crawler).....
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1368): 02a0 77 77 77 2E 63 6F 72 74 65 69 64 68 2E 6F 72 2E - www.xxxx
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1368): 02b0 63 72 00 A0 08 00 01 30 00 00 0A 58 53 69 74 65 - cr.....0...XSite
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1368): 02c0 2D 6E 61 6D 65 00 00 09 6C 6F 63 61 6C 68 6F 73 - -name...localhos
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1368): 02d0 74 00 0C 00 24 39 63 35 39 64 36 33 33 2D 39 63 - t...$9c59d633-9c
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1368): 02e0 32 36 2D 34 35 36 30 2D 62 66 39 34 2D 38 35 66 - 26-4560-bf94-85f
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1368): 02f0 61 66 38 61 33 66 33 38 32 00 0E 00 31 41 70 61 - af8a3f382...1Apa
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1368): 0300 63 68 65 2F 32 2E 34 2E 36 32 20 28 57 69 6E 36 - che/2.4.62.(Win6
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1368): 0310 34 29 20 4F 70 65 6E 53 53 4C 2F 33 2E 31 2E 37 - 4).OpenSSL/3.1.7
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1368): 0320 20 6D 6F 64 5F 6A 6B 2F 31 2E 32 2E 34 36 00 05 - .mod_jk/1.2.46..
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1368): 0330 00 07 6C 61 6E 67 3D 65 6E 00 0A 00 0F 41 4A 50 - ..lang=en....AJP
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1368): 0340 5F 52 45 4D 4F 54 45 5F 50 4F 52 54 00 00 05 33 - _REMOTE_PORT...3
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1368): 0350 32 30 39 38 00 0A 00 0E 41 4A 50 5F 4C 4F 43 41 - 2098....AJP_LOCA
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1368): 0360 4C 5F 41 44 44 52 00 00 0A 31 37 32 2E 32 30 2E - L_ADDR...172.20.
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1368): 0370 34 2E 36 00 0A 00 10 4A 4B 5F 4C 42 5F 41 43 54 - 4.6....JK_LB_ACT
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1368): 0380 49 56 41 54 49 4F 4E 00 00 03 41 43 54 00 FF 00 - IVATION...ACT...
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_send_request::jk_ajp_common.c (1872): (cfusion) Statistics about invalid connections: connect check (0), cping (0), send (0)
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_send_request::jk_ajp_common.c (1883): (cfusion) request body to send 0 - request body to resend 0
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1563): received from ajp13 pos=0 len=14 max=65536
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1563): 0000 0F 00 0A 2F 69 6E 64 65 78 2E 63 66 6D 00 00 00 - .../index.cfm...
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_process_callback::jk_ajp_common.c (2121): Getting real path
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] getRealPath::mod_jk.c (639): Escape Path (/index.cfm)
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] jk_servlet_normalize::jk_util.c (2306): URI on entering jk_servlet_normalize: [/index.cfm]
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] jk_servlet_normalize::jk_util.c (2400): URI on exiting jk_servlet_normalize: [/index.cfm]
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] jk_translate::mod_jk.c (4710): jk_translate: sub-request so DECLINED
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] getRealPath::mod_jk.c (662): getRealPath(/index.cfm) = E:\domain\pagina_nueva\index.cfm
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1368): sending to ajp13 pos=4 len=37 max=38
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1368): 0000 12 34 00 21 41 45 3A 5C 64 6F 6D 61 69 6E 5C 70 - .4.!AE:\domain\p
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1368): 0010 61 67 69 6E 61 5F 6E 75 65 76 61 5C 69 6E 64 65 - agina_nueva\inde
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1368): 0020 78 2E 63 66 6D 00 00 00 00 00 00 00 00 00 00 00 - x.cfm...........
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1563): received from ajp13 pos=0 len=5 max=65536
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1563): 0000 0F 00 01 2F 00 00 00 00 00 00 00 00 00 00 00 00 - .../............
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_process_callback::jk_ajp_common.c (2121): Getting real path
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] getRealPath::mod_jk.c (639): Escape Path (/)
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] jk_servlet_normalize::jk_util.c (2306): URI on entering jk_servlet_normalize: [/]
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] jk_servlet_normalize::jk_util.c (2400): URI on exiting jk_servlet_normalize: [/]
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] jk_translate::mod_jk.c (4710): jk_translate: sub-request so DECLINED
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] jk_servlet_normalize::jk_util.c (2306): URI on entering jk_servlet_normalize: [/index.html]
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] jk_servlet_normalize::jk_util.c (2400): URI on exiting jk_servlet_normalize: [/index.html]
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] jk_translate::mod_jk.c (4710): jk_translate: sub-request so DECLINED
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] jk_servlet_normalize::jk_util.c (2306): URI on entering jk_servlet_normalize: [/index.cfm]
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] jk_servlet_normalize::jk_util.c (2400): URI on exiting jk_servlet_normalize: [/index.cfm]
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] jk_translate::mod_jk.c (4710): jk_translate: sub-request so DECLINED
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] getRealPath::mod_jk.c (662): getRealPath(/) = E:\domain\pagina_nueva\index.cfm
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1368): sending to ajp13 pos=4 len=37 max=38
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1368): 0000 12 34 00 21 41 45 3A 5C 64 6F 6D 61 69 6E 5C 70 - .4.!AE:\domain\p
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1368): 0010 61 67 69 6E 61 5F 6E 75 65 76 61 5C 69 6E 64 65 - agina_nueva\inde
[Wed Nov 27 17:02:10 2024] [10736:5656] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1368): 0020 78 2E 63 66 6D 00 00 00 00 00 00 00 00 00 00 00 - x.cfm...........

 

 

Views

234

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 ,
Nov 27, 2024 Nov 27, 2024

Copy link to clipboard

Copied

The root cause problem is the presence of the debug lines there, leading to the huge logs. Those lines are NOT enabled by default, so someone there had to enable them. That's easily solved: see the isapi_redirect.properties file in the same folder, and change log_level to info.

 

** Upate since posting: as for the rest of what I write here, I missed that Mary was running Apache rather than IIS. While the concepts are the same, the filenames and config elements are different. I correct these in a subsequent reply to here, when she pointed that out in response to this reply. **

 

Second, the file doesn't have to be allowed to grow unchecked--though that IS indeed the default configuration. Instead, that same file has settings that can control the max size and automatic rotation of that log. For more, see the "log rotation" section of the Tomcat isapi redirect docs, at https://tomcat.apache.org/connectors-doc/reference/iis.html

 

The same page also discusses the log_level setting I'd mentioned above, and still more that may interest you.

 

Once you make these changes, restart IIS (not CF). In fact, I'd suggest that while IIS is stopped you should rename the isapi_redirect.log, so that a new one would be created starting at 0 bytes.  You can keep the old one or delete it later. 

 

Let us know how things go. 


/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
Explorer ,
Nov 28, 2024 Nov 28, 2024

Copy link to clipboard

Copied

Hi Charlie, thanks for your reply. This is how the file you have indicated is configured: 

extension_uri= /jakarta/isapi_redirect.dll
log_file= C:\ColdFusion2023\config\wsconfig\2\isapi_redirect.log
log_level= info
worker_file= C:\ColdFusion2023\config\wsconfig\2\workers.properties
worker_mount_file= C:\ColdFusion2023\config\wsconfig\2\uriworkermap.properties
iis_buffer_enable= true
auth_complete= 1
iis_skip_custom_errors_enable= false

 

The web server is configured with Apache 2.4.62 and the IIS service is stopped.

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 ,
Nov 28, 2024 Nov 28, 2024

Copy link to clipboard

Copied

The "log_level= info" line is going to capture everything. Great for debugging, not so great for daily operation. Set it to something lower. Also, set up the log rotation @Charlie Arehart recommended, it's a best practice on a production server.

 

In general, people having "CF" problems should search for their other platform components to see if there's anything they can do. In this case, your other components are Tomcat and IIS and maybe even Windows itself.

 

 

Dave Watts, Eidolon LLC

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 ,
Nov 28, 2024 Nov 28, 2024

Copy link to clipboard

Copied

Agh, my bad. I missed that in your first note you were using Apache rather than IIS (you made it clear: it's just that on my phone's small interface, I couldn't see that indication in the title and first paragraph as I was reading the rest of your initial note.)

 

Then again, you have now shared with us your properties file...and that's one that the CF wsconfig tool would create for in fact an IIS web server connection, rather than an Apache one (even Apache on Windows). Let's take things step by step.

 

1) What is the name of that file whose properties you're showing? Is it indeed iapi_redirect.properties? If so, that would again be the file that the wsconfig tool would setup for use with IIS. Are you saying that is in the same folder as the mod_jk.log you were initially referring to? that would seem odd.

 

(To be clear, for the sake of others who may have read my first reply, the name of the log file would indeed be mod_jk.log for an Apache connector rather than isapi_redirect.log for an IIS connector.)

 

2) The file that the wsconfig tool would create for such properties for an Apache connector would instead be mod_jk_vhost.conf. Do you have that file in this folder? It sure seems you should, if this is the folder that has the large mod_jk.log file.

 

3) If you do not have both in one folder, that will be odd. Note how the folder you're looking in (within CF's config/wsconfig folder) has a number for its name. Do you have more than one such numbered folder in config/wsconfig? If so, look at the others. Maybe one of them has the mod_jk_vhost.conf...and though it should NOT, maybe that file points to THIS folder where you are finding the large mod_jk.log.

 

4) Putting all this aside for a moment, as far as the huge log is concerned, if you stop Apache, you will be able to rename the large mod_jk.log. That way, you buy yourself time both to make it easier to work with and to work on keeping it from growing huge again.

 

5) As for the debug lines, that is indeed controlled by a setting similar to the log_level line I referred to originally. Instead, it's called JkLogLevel, and again its value would be "debug" for the config file that's causing creation of this large log you found. You'd want to change it to "info" (without the quotes)...once you figure out which mod_jk_vhost.conf file is controlling its creation.

 

6) As for finding what folder that should be, besides poking around in the config/wsconfig folder, it may well be  in your apache conf folder, as in "C:/Apache24/conf/mod_jk.conf".

 

7)  Perhaps better, you should let Apache itself tell you how it's configured for your sites and their respective config files. In the apache bin folder, you can use the -S -M args on the httpd.exe, to see that. If you have Apache installed in C:\Apache24\bin, this would do that:

 

C:\Apache24\bin\httpd.exe -t -D DUMP_VHOSTS

 

Better still, while that will list what httpd conf files are used for what sites you have, you can also ask it to tell you what files those conf files point to, as in:

 

C:\Apache24\bin\httpd.exe -t -D DUMP_INCLUDES

 

Let us know how you sort things out. Or if you may want consulting help, I can help (via remote screenshare). More at carehart.org/consulting. But if you ask follow up questions here, I (and others) are happy to help, of course.


/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
Explorer ,
Nov 28, 2024 Nov 28, 2024

Copy link to clipboard

Copied

Hi Charlie, no worries, I guess I didn't explain myself.


Here are my answers:

1) This file is located in the following location: C:\ColdFusion2023\config\wsconfig\backup\2.2
The web server is configured with Apache 2.4.62 and the IIS service is stopped.

The mod_jk.log file is located at the following location C:\ColdFusion2023\config\wsconfig\1

2) This is the location of the mod_jk_vhost.conf file:
C:\ColdFusion2023\config\wsconfig\1
And this is its content:
# Where to find uriworkermap.properties
JkMountFile "C:\ColdFusion2023\config\wsconfig\1\uriworkermap.properties"
JkMountCopy "All"
# Where to put jk logs
JkLogFile "C:\ColdFusion2023\config\wsconfig\1\mod_jk.log"
# custom environment variables
JkEnvVar REDIRECT_URL
JkEnvVar REDIRECT_REMOTE_HOST
JkEnvVar REDIRECT_PATH
JkEnvVar REDIRECT_QUERY_STRING
JkEnvVar REDIRECT_HTTP_ACCEPT
JkEnvVar REDIRECT_HTTP_USER_AGENT
JkEnvVar REDIRECT_REMOTE_ADDR
JkEnvVar REDIRECT_SERVER_NAME
JkEnvVar REDIRECT_SERVER_PORT
JkEnvVar REDIRECT_SERVER_SOFTWARE
# Set the jk log level [debug/error/info]
JkLogLevel debug
# Select the timestamp log format
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
AddHandler jakarta-servlet .cfm .cfml .cfc .cfr .cfswf
DirectoryIndex index.cfm
Aliases /cf_scripts "C:\ColdFusion2023\cfusion\wwwroot\cf_scripts"
<Directory "C:\ColdFusion2023\cfusion\wwwroot\cf_scripts">
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
<Files ~ ".hbmxml$">
Require all denied
</Files>

3) No, I only have one numbered folder.
4) I tried to change the name of the file, it stopped growing rapidly, but the hard drive indicated that the space was being reduced rapidly, it did not show me where the increase was being generated; so I placed the file again.

5) No, it is configured.

6) The mod_jk.conf file is located in the location you have indicated:
C:\Apache24\conf and this is its content:
# Where to find workers.properties
JkWorkersFile "C:/Apache24/conf\workers.properties"
# Load mod_jk module
LoadModule jk_module "C:/Apache24/conf\mod_jk.so"
# Where to put jk shared memory
JkShmFile "C:/Apache24/conf\jk_shm"
# Worker File reload interval in seconds
JkWorkersFileReload "60"
# Where to put global jk logs
JkLogFile "C:/Apache24/conf\mod_jk_global.log"
# Set the jk log level [debug/error/info]
JkLogLevel debug

7) Run the following command C:\Apache24\bin\httpd.exe -t -D DUMP_VHOSTS through CMD as Administrator user and the screen shows the following:
C:\Apache24\bin>httpd.exe -t -D DUMP_VHOSTS
VirtualHost configuration:
*:443 is a NameVirtualHost
default server localhost (C:/apache24/conf/extra/httpd-ahssl.conf:142)
port 443 hostname localhost (C:/apache24/conf/extra/httpd-ahssl.conf:142)
port 443 namevhost serverone.tld (C:/apache24/conf/extra/httpd-ahssl.conf:160)
port 443 hostname servertwo.tld (C:/Apache24/conf/extra/httpd-ahssl.conf:175)

Run the following command C:\Apache24\bin\httpd.exe -t -D DUMP_INCLUDES through CMD as Administrator user and the following is displayed on the screen:
C:\Apache24\bin>httpd.exe -t -D DUMP_INCLUDES
Included configuration files:
(*) C:/Apache24/conf/httpd.conf
(543) C:/Apache24/conf/extra/httpd-ahssl.conf
(563) C:/Apache24/conf/mod_jk.conf
(564) C:/ColdFusion2023/config/wsconfig/1/mod_jk_vhost.conf

8) It would be great if you could help me remotely.

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 ,
Nov 29, 2024 Nov 29, 2024

Copy link to clipboard

Copied

Have a look at the JkLogLevel setting. It is currently debug. Experiment by changing it to info, which is in the spirit of Charlie's first suggestion.

BKBK_0-1732881194629.png

 

 

 

 

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 ,
Nov 29, 2024 Nov 29, 2024

Copy link to clipboard

Copied

Remember to restart Apache after making changes to workers.properties.

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
Explorer ,
Nov 29, 2024 Nov 29, 2024

Copy link to clipboard

Copied

Hi, I have applied the changes and it is now working correctly. Thank you all for your collaboration.

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 ,
Nov 29, 2024 Nov 29, 2024

Copy link to clipboard

Copied

LATEST

Certainly good to hear things are resolved. I'd said in my previous reply's point 5 that you'd find the jkloglevel set to debug, which was causing the problem. Your response was to say "no, it is configured".

 

I see bkbk then said to change it "in the spirit of" what I'd proposed...but I must say that it's what I was proposing from the very first reply 🙂 (though i admitted I mistook things as your referring to iis--but either way the debug logging was so clearly the issue). 

 

Just a bit frustrating to see this thread drag out, with so much effort on all our parts, for what was identified from the first.

 

But again, glad it's resolved for you. 


/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
Resources
Documentation