.
D 2002-10-02T16:12:50
J assignee dkf
J cmimetype text/plain
J comment We\shave\sa\sservice\swritten\sin\sTCL\sthat\sperforms\sHTTP\s\ngeturl\srequests\sfor\sbackend\sclients....\n\nAfter\s10000\stransactions,\swe\shave\sit\srestart\s--\sto\sreset\s\nmemory\sin\scase\sa\shuge\sweb\spage\swas\spulled.\n\nWe\sare\sseeing\sour\sservice\shang\son\sthe\s'exit'\scommand\sin\s\nboth\sTCL\s8.4a3\sand\sTCL8.4.0.\n\nOf\snote...the\sservice\suses\sthe\sTLS\spackage\sand\sruns\son\s\nthe\sAIX\splatform.\s\sOn\sthe\shang,\san\sSSL\ssocket\swas\s\nopen...\n\nThe\sservice\sperforms\sHTTP\srequests\svia\scallbacks.\nIt\suses\san\stimer\scallback\sfor\smaintenance...\nAnd\sit\sreads\smessages\sfrom\sport\s11555\sby\sdoing\sa\s\n[gets]\sin\sa\swhile\sloop.\n\nHere's\sthe\scode\sin\sthe\swhile\sloop:\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sif\s{\s$total\s>\s10000\s}\s{\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sif\s{\s$pending\s==\s0\s||\s$total\s>\s15000\s}\s{\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\slogit\s"SYSTEM||restarting\sdue\sto\s\nMAX\sTRANSACTIONS\s$total\sp=$pending"\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sexit\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s}\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s}\n\nHere's\sthe\slog\sfile:\nunix>\stail\slog_39872.20020904\n...\n152545|SYSTEM||restarting\sdue\sto\sMAX\s\nTRANSACTIONS\s10001\sp=0\n\nNotice\sthe\spid\sis\s39872\sand\sthe\stime\sis\s152545.\n\nAt\s16:02,\sthe\spid\s39872\swas\sstill\srunning:\nunix>ps\s-ef\s|grep\shttpserv\n\s\s\s\sroot\s39872\s\s\s\s\s1\s\s\s0\s\s\sSep\s03\s\s\s\s\s\s-\s698:31\s\nwictcl\s/wic/sys/httpserv/bin/httpserv.tcl\s\n\nDoing\sa\slow-level\s'lsof'\swe\ssee\sthat\snothing\sstuck\sin\s\nCLOSE_WAITs.\n\nunix>sudo\slsof\s-p\s39872\nlsof:\sWARNING:\scompiled\sfor\sAIX\sversion\s4.3.2.0;\sthis\sis\s\n4.3.3.0.\nCOMMAND\s\s\sPID\sUSER\s\s\sFD\s\s\sTYPE\s\s\s\s\sDEVICE\s\nSIZE/OFF\s\sNODE\sNAME\nwictcl\s\s39872\sroot\s\scwd\s\s\sVDIR\s\s\s\s\s\s\s10,4\s\s\s\s\s\s512\s\s\s\s\s2\s/\s\n(/dev/hd4)\nwictcl\s\s39872\sroot\s\s\s\s0u\s\sVCHR\s\s\s\s\s\s\s\s2,2\s\s\s\s\s\s0t0\s\s\n4157\s/dev/null\nwictcl\s\s39872\sroot\s\s\s\s1w\s\sVREG\s\s\s\s\s\s10,10\s\s\s\s\s\s\s\s0\s\s\s\s\n17\s/wic/log\s(/dev/wicloglv)\nwictcl\s\s39872\sroot\s\s\s\s2w\s\sVREG\s\s\s\s\s\s10,10\s\s\s\s\s\s\s\s0\s\s\s\s\n17\s/wic/log\s(/dev/wicloglv)\nwictcl\s\s39872\sroot\s\s\s\s3u\s\sIPv4\s0x7052cadc\s\s\s\s\s\s0t0\s\s\sTCP\s\nlocalhost:38156->localhost:11555\s(ESTABLISHED)\nwictcl\s\s39872\sroot\s\s\s\s4u\s\sunix\s0x70373800\s\s\s\s\s\s0t0\s\s\s\s\s\s\s-\n>0x7038a600\s\nwictcl\s\s39872\sroot\s\s\s\s5w\s\sVREG\s\s\s\s\s\s10,10\s\s1576780\s\n14357\s/wic/log\s(/dev/wicloglv)\nwictcl\s\s39872\sroot\s\s\s\s6u\s\sIPv4\s0x70489adc\s\s\s\s\s\s0t0\s\s\sTCP\s\niwww2:51407->198.178.10.180:443\s(ESTABLISHED)\n\n\nOriginally\sI\sthought\sthis\swas\sa\stcl8.4a3\sissue,\sbut\swe\sgot\s\nit\sto\shappen\son\stcl8.4.0\swhen\sI\swas\son\svacation\slast\s\nweek.\n\nTo\ssolve\sthe\sexit\sproblem,\swe\sreplaced\s'exit'\swith:\n\n\s\scatch\s{exec\skill\s[pid]}\n\s\safter\s5000\n\s\scatch\s{exec\skill\s-9\s[pid]}\n\nWe\sare\smoving\sthis\splatform\sto\sLinux,\sso\sI\swill\stry\sit\son\s\nTCL8.4.0\sfor\slinux\sin\sa\sfew\sweeks.\n
J foundin obsolete:\s8.4.0
J priority 5\sMedium
J resolution None
J status Open
J submitter pedietz
J subsystem 16.\sCommands\sA-H
J title exit\scommand\shangs\stcl8.4.0
J type Bug
K 617624ffffffffffffffffffffffffffffffffff
U pedietz
Z e9767867048b45adedd75df434f5c50f