{"id":435,"date":"2008-11-10T21:21:29","date_gmt":"2008-11-10T19:21:29","guid":{"rendered":"http:\/\/www.ora-solutions.net\/web\/?p=435"},"modified":"2008-11-10T23:21:39","modified_gmt":"2008-11-10T21:21:39","slug":"listener-coredumps-on-heavy-load-system","status":"publish","type":"post","link":"https:\/\/www.ora-solutions.net\/web\/2008\/11\/10\/listener-coredumps-on-heavy-load-system\/","title":{"rendered":"Listener Coredumps on heavy load system"},"content":{"rendered":"<p>Recently I have come across a system which experiences listener crashes (core dumps) every couple of days. The listener logfile shows errors shortly before core-dumping:<\/p>\n<blockquote><p><code>29-SEP-2008 03:49:07 * (CONNECT_DATA=(SID=MDDB1)(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.0.1)(PORT<br \/>\n=1398)) * establish * MDDB1 * 12518<br \/>\nTNS-12518: TNS:listener could not hand off client connection<br \/>\nTNS-12571: TNS:packet writer failure<br \/>\nTNS-12560: TNS:protocol adapter error<br \/>\nTNS-00530: Protocol adapter error<br \/>\nLinux IA64 Error: 104: Connection reset by peer<\/code><\/p><\/blockquote>\n<p>After analysing the core dump with gdb, the stack points to malloc() calls, which mean that the listener requests memory from the OS.<\/p>\n<blockquote><p><code>gdb \/oracle\/ora10\/bin\/tnslsnr core.311<br \/>\nGNU gdb Red Hat Linux (6.3.0.0-1.153.el4rh)<br \/>\nCopyright 2004 Free Software Foundation, Inc.<br \/>\nGDB is free software, covered by the GNU General Public License, and you are<br \/>\nwelcome to change it and\/or distribute copies of it under certain conditions.<br \/>\nType \"show copying\" to see the conditions.<br \/>\nThere is absolutely no warranty for GDB. Type \"show warranty\" for details.<br \/>\nThis GDB was configured as \"ia64-redhat-linux-gnu\"...(no debugging symbols found)<br \/>\nUsing host libthread_db library \"\/lib\/tls\/libthread_db.so.1\".<\/p>\n<p>Reading symbols from shared object read from target memory...(no debugging symbols found)...done.<br \/>\nLoaded system supplied DSO at 0xa000000000000000<br \/>\nCore was generated by `\/oracle\/ora10\/bin\/tnslsnr listenerv -inherit'.<br \/>\nProgram terminated with signal 11, Segmentation fault.<\/p>\n<p>#0 0x20000000027ee220 in malloc_consolidate ()<br \/>\nfrom \/lib\/tls\/libc.so.6.1<br \/>\n(gdb) bt<br \/>\n#0 0x20000000027ee220 in malloc_consolidate () from \/lib\/tls\/libc.so.6.1<br \/>\n#1 0x20000000027f0e30 in _int_malloc () from \/lib\/tls\/libc.so.6.1<br \/>\n#2 0x20000000027f4b50 in malloc () from \/lib\/tls\/libc.so.6.1<br \/>\n#3 0x40000000000079f0 in nsglconcrt ()<br \/>\n#4 0x4000000000011a00 in nsglhc ()<br \/>\n#5 0x4000000000019690 in nsglhe ()<br \/>\n#6 0x400000000001b980 in nsglma ()<br \/>\n#7 0x4000000000007770 in main ()<br \/>\n(gdb) quit<\/p>\n<p><\/code><\/p><\/blockquote>\n<p>After contacting Oracle Support with this stack, they confirmed it to be Bug #6752308 which was closed as Duplicate of Bug 6139856. There is patch for 10.2.0.3 available and they also recommend to implement hugepages. <a href=\"http:\/\/www.pythian.com\/blogs\/1326\/performance-tuning-hugepages-in-linux\">By the way, there is an interesting article on the effect of utilizing &#8211; or not utilizing &#8211; hugepages here.<\/a><\/p>\n<p><code>6139856 - TT11.1VALGRIND: FMR (FREE MEMORY READ\/WRITE) IN NSEV.C<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently I have come across a system which experiences listener crashes (core dumps) every couple of days. The listener logfile shows errors shortly before core-dumping: 29-SEP-2008 03:49:07 * (CONNECT_DATA=(SID=MDDB1)(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.0.1)(PORT =1398)) * establish * MDDB1 * 12518 TNS-12518: TNS:listener could not hand off client connection TNS-12571: TNS:packet writer failure TNS-12560: TNS:protocol adapter error TNS-00530: [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[13,49,5,12],"tags":[],"class_list":["post-435","post","type-post","status-publish","format-standard","hentry","category-10g","category-linux-itanium","category-oracle-database","category-unix"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.ora-solutions.net\/web\/wp-json\/wp\/v2\/posts\/435","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ora-solutions.net\/web\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ora-solutions.net\/web\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ora-solutions.net\/web\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ora-solutions.net\/web\/wp-json\/wp\/v2\/comments?post=435"}],"version-history":[{"count":8,"href":"https:\/\/www.ora-solutions.net\/web\/wp-json\/wp\/v2\/posts\/435\/revisions"}],"predecessor-version":[{"id":494,"href":"https:\/\/www.ora-solutions.net\/web\/wp-json\/wp\/v2\/posts\/435\/revisions\/494"}],"wp:attachment":[{"href":"https:\/\/www.ora-solutions.net\/web\/wp-json\/wp\/v2\/media?parent=435"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ora-solutions.net\/web\/wp-json\/wp\/v2\/categories?post=435"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ora-solutions.net\/web\/wp-json\/wp\/v2\/tags?post=435"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}