{"id":2145,"date":"2016-05-16T14:07:56","date_gmt":"2016-05-16T17:07:56","guid":{"rendered":"http:\/\/www.dbarj.com.br\/?p=2145"},"modified":"2016-05-16T14:09:28","modified_gmt":"2016-05-16T17:09:28","slug":"em-agent-falha-ao-iniciar-outofmemoryerror","status":"publish","type":"post","link":"https:\/\/www.dbarj.com.br\/pt-br\/2016\/05\/em-agent-falha-ao-iniciar-outofmemoryerror\/","title":{"rendered":"EM agent falha ao iniciar com &#8216;Target Interaction Manager failed at Startup&#8217; e &#8216;java.lang.OutOfMemoryError: Java heap space&#8217; nos logs"},"content":{"rendered":"<p>Neste artigo, vou demonstrar como resolver o problema quando o agente do EM falha ao iniciar por problemas de mem\u00f3ria no java.<\/p>\n<p>Estes dias, ap\u00f3s aplicar alguns patches no agente do EM, ao tentar reinici\u00e1-lo, comecei a receber o erro abaixo:<\/p>\n<pre class=\"lang:ps decode:true\">[emc12@localhost ~]$ emctl start agent\r\nOracle Enterprise Manager Cloud Control 12c Release 5\r\nCopyright (c) 1996, 2015 Oracle Corporation.  All rights reserved.\r\nStarting agent ........................................................................... failed.\r\nFatal agent error: Target Interaction Manager failed at Startup\r\nFatal agent error: Target Interaction Manager failed at Startup\r\nFatal agent error: Target Interaction Manager failed at Startup\r\nEMAgent is Thrashing. Exiting watchdog\r\nConsult emctl.log and emagent.nohup in: \/u01\/app\/emc12\/agent_inst\/sysman\/log\r\n[emc12@localhost ~]$<\/pre>\n<p>Ao verificar o arquivo <strong>emagent.nohup<\/strong>, havia um erro relacionado \u00e0 mem\u00f3ria do java:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">Agent is going down due to an OutOfMemoryError\r\n----- Fri May 13 10:46:21 2016::18719::Checking status of EMAgent : 19177 -----\r\n----- Fri May 13 10:46:21 2016::18719::EMAgent exited at Fri May 13 10:46:21 2016 with return value 57. -----\r\n----- Fri May 13 10:46:21 2016::18719::EMAgent will be restarted because of an Out of Memory Exception. -----\r\n----- Fri May 13 10:46:21 2016::18719::EMAgent is Thrashing. Exiting loop. -----\r\n----- Fri May 13 10:46:21 2016::18719::Commiting Process death. -----\r\n----- Fri May 13 10:46:21 2016::18719::writeAbnormalExitTimestampToAgntStmp: exitCause=OOM : restartRequired=0 -----\r\n----- Fri May 13 10:46:21 2016::18719::Exited due to Thrash. -----<\/pre>\n<p>Como o erro mostra, \u00e9 um problema de falta de mem\u00f3ria (&#8220;<strong>Out of Memory Exception<\/strong>&#8220;). Para resolver, foi necess\u00e1rio aumentar o espa\u00e7o alocado para o &#8220;java heap space&#8221; no emagent.<\/p>\n<p>Edite o arquivo &#8216;<strong>$AGENT_BASE\/agent_inst\/sysman\/config\/emd.properties&#8217;<\/strong> e aumente a mem\u00f3ria alocada para <strong>512M<\/strong> (que \u00e9 um valor bom e suficiente).<\/p>\n<p>Antes:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">[emc12@localhost config]$ cat emd.properties | grep agentJavaDefines\r\nagentJavaDefines=-Xmx128M -XX:MaxPermSize=96M<\/pre>\n<p>Ap\u00f3s editado:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">[emc12@localhost config]$ cat emd.properties | grep agentJavaDefines\r\nagentJavaDefines=-Xmx512M -XX:MaxPermSize=96M<\/pre>\n<p>Por fim, tente reexecutar o agente atrav\u00e9s do comando &#8220;<strong>emctl start agent<\/strong>&#8220;:<\/p>\n<pre class=\"lang:ps decode:true \">[emc12@localhost ~]$ emctl start agent\r\nOracle Enterprise Manager Cloud Control 12c Release 5\r\nCopyright (c) 1996, 2015 Oracle Corporation.  All rights reserved.\r\nStarting agent ..................... started.<\/pre>\n<p>\u00d3timo, o agente voltou a funcionar. No entanto, se voc\u00ea ainda receber qualquer erro, ser\u00e1 necess\u00e1rio limpar o &#8220;estado&#8221; do agente e tentar novamente.<\/p>\n<p>Siga os passos:<\/p>\n<ol>\n<li>Pare e mate qualquer processo ainda existente e relacionado ao EM Agent que ainda estiver executando (perl ou java).<\/li>\n<li>Apague todos os arquivos da pasta &#8216;<strong>$AGENT_BASE\/agent_inst\/sysman\/emd\/state\/*<\/strong>&#8216; (ou mova para uma pasta tempor\u00e1ria).<\/li>\n<li>Limpe o estado do agente executando:\u00a0<strong>emctl clearstate agent<\/strong>.<\/li>\n<li>Aumente a mem\u00f3ria alocada editando o arquivo <strong>emd.properties<\/strong>, como demonstrado anteriormente, caso ainda n\u00e3o tenha feito.<\/li>\n<li>Tente iniciar o agente novamente.<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<p>Para maiores informa\u00e7\u00f5es, existe um DOC ID no MOS que pode auxiliar:<\/p>\n<ul>\n<li><a href=\"https:\/\/support.oracle.com\/epmos\/faces\/DocumentDisplay?id=1902124.1\" target=\"_blank\">Doc 1902124.1 (Duplicate 1952593.1 &#8211; EM12c: emctl start agent Fails With &#8216; Target Interaction Manager failed at Startup java.lang.OutOfMemoryError: Java heap space&#8217; reported in gcagent_errors.log)<\/a><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<b>Gostou? N\u00e3o deixe de comentar ou deixar um \ud83d\udc4d!<\/b>\n<div class='watch-action'><div class='watch-position align-left'><div class='action-like'><a class='lbg-style2 like-2145 jlk' href='javascript:void(0)' data-task='like' data-post_id='2145' data-nonce='de4404f630' rel='nofollow'><img class='wti-pixel' src='https:\/\/www.dbarj.com.br\/wp-content\/plugins\/wti-like-post\/images\/pixel.gif' title='Like' \/><span class='lc-2145 lc'>+2<\/span><\/a><\/div><\/div> <div class='status-2145 status align-left'><\/div><\/div><div class='wti-clear'><\/div>","protected":false},"excerpt":{"rendered":"<p>Neste artigo, vou demonstrar como resolver o problema quando o agente do EM falha ao iniciar por problemas de mem\u00f3ria no java. Estes dias, ap\u00f3s aplicar alguns patches no agente do EM, ao tentar reinici\u00e1-lo, comecei a receber o erro abaixo: [emc12@localhost ~]$ emctl start agent Oracle Enterprise Manager Cloud Control 12c Release 5 Copyright &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"https:\/\/www.dbarj.com.br\/pt-br\/2016\/05\/em-agent-falha-ao-iniciar-outofmemoryerror\/\">Continue lendo<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-2145","post","type-post","status-publish","format-standard","hentry","category-oem12c","item-wrap"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>EM agent falha ao iniciar com &#039;Target Interaction Manager failed at Startup&#039; e &#039;java.lang.OutOfMemoryError: Java heap space&#039; nos logs - DBA - Rodrigo Jorge - Oracle Tips and Guides<\/title>\n<meta name=\"description\" content=\"Neste artigo, vou demonstrar como resolver o problema quando o agente do EM falha ao iniciar por problemas de mem\u00f3ria no java.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.dbarj.com.br\/pt-br\/2016\/05\/em-agent-falha-ao-iniciar-outofmemoryerror\/\" \/>\n<meta name=\"twitter:label1\" content=\"Escrito por\" \/>\n\t<meta name=\"twitter:data1\" content=\"DBA RJ\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. tempo de leitura\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutos\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/pt-br\\\/2016\\\/05\\\/em-agent-falha-ao-iniciar-outofmemoryerror\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/pt-br\\\/2016\\\/05\\\/em-agent-falha-ao-iniciar-outofmemoryerror\\\/\"},\"author\":{\"name\":\"DBA RJ\",\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/pt-br\\\/#\\\/schema\\\/person\\\/28a44ca3a6633fe4156ad1ea209d40a9\"},\"headline\":\"EM agent falha ao iniciar com &#8216;Target Interaction Manager failed at Startup&#8217; e &#8216;java.lang.OutOfMemoryError: Java heap space&#8217; nos logs\",\"datePublished\":\"2016-05-16T17:07:56+00:00\",\"dateModified\":\"2016-05-16T17:09:28+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/pt-br\\\/2016\\\/05\\\/em-agent-falha-ao-iniciar-outofmemoryerror\\\/\"},\"wordCount\":299,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/pt-br\\\/#\\\/schema\\\/person\\\/28a44ca3a6633fe4156ad1ea209d40a9\"},\"articleSection\":[\"Enterprise Manager 12c\"],\"inLanguage\":\"pt-BR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.dbarj.com.br\\\/pt-br\\\/2016\\\/05\\\/em-agent-falha-ao-iniciar-outofmemoryerror\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/pt-br\\\/2016\\\/05\\\/em-agent-falha-ao-iniciar-outofmemoryerror\\\/\",\"url\":\"https:\\\/\\\/www.dbarj.com.br\\\/pt-br\\\/2016\\\/05\\\/em-agent-falha-ao-iniciar-outofmemoryerror\\\/\",\"name\":\"EM agent falha ao iniciar com 'Target Interaction Manager failed at Startup' e 'java.lang.OutOfMemoryError: Java heap space' nos logs - DBA - Rodrigo Jorge - Oracle Tips and Guides\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/pt-br\\\/#website\"},\"datePublished\":\"2016-05-16T17:07:56+00:00\",\"dateModified\":\"2016-05-16T17:09:28+00:00\",\"description\":\"Neste artigo, vou demonstrar como resolver o problema quando o agente do EM falha ao iniciar por problemas de mem\u00f3ria no java.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/pt-br\\\/2016\\\/05\\\/em-agent-falha-ao-iniciar-outofmemoryerror\\\/#breadcrumb\"},\"inLanguage\":\"pt-BR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.dbarj.com.br\\\/pt-br\\\/2016\\\/05\\\/em-agent-falha-ao-iniciar-outofmemoryerror\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/pt-br\\\/2016\\\/05\\\/em-agent-falha-ao-iniciar-outofmemoryerror\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.dbarj.com.br\\\/pt-br\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"EM agent falha ao iniciar com 'Target Interaction Manager failed at Startup' e 'java.lang.OutOfMemoryError: Java heap space' nos logs\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/pt-br\\\/#website\",\"url\":\"https:\\\/\\\/www.dbarj.com.br\\\/pt-br\\\/\",\"name\":\"DBA - Rodrigo Jorge - Oracle Tips and Guides\",\"description\":\"Blog about Databases, Security and High Availability\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/pt-br\\\/#\\\/schema\\\/person\\\/28a44ca3a6633fe4156ad1ea209d40a9\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.dbarj.com.br\\\/pt-br\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"pt-BR\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/pt-br\\\/#\\\/schema\\\/person\\\/28a44ca3a6633fe4156ad1ea209d40a9\",\"name\":\"DBA RJ\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/wp-content\\\/uploads\\\/2019\\\/09\\\/RodrigoJorgePOUG19.png\",\"url\":\"https:\\\/\\\/www.dbarj.com.br\\\/wp-content\\\/uploads\\\/2019\\\/09\\\/RodrigoJorgePOUG19.png\",\"contentUrl\":\"https:\\\/\\\/www.dbarj.com.br\\\/wp-content\\\/uploads\\\/2019\\\/09\\\/RodrigoJorgePOUG19.png\",\"width\":712,\"height\":712,\"caption\":\"DBA RJ\"},\"logo\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/wp-content\\\/uploads\\\/2019\\\/09\\\/RodrigoJorgePOUG19.png\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"EM agent falha ao iniciar com 'Target Interaction Manager failed at Startup' e 'java.lang.OutOfMemoryError: Java heap space' nos logs - DBA - Rodrigo Jorge - Oracle Tips and Guides","description":"Neste artigo, vou demonstrar como resolver o problema quando o agente do EM falha ao iniciar por problemas de mem\u00f3ria no java.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.dbarj.com.br\/pt-br\/2016\/05\/em-agent-falha-ao-iniciar-outofmemoryerror\/","twitter_misc":{"Escrito por":"DBA RJ","Est. tempo de leitura":"2 minutos"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dbarj.com.br\/pt-br\/2016\/05\/em-agent-falha-ao-iniciar-outofmemoryerror\/#article","isPartOf":{"@id":"https:\/\/www.dbarj.com.br\/pt-br\/2016\/05\/em-agent-falha-ao-iniciar-outofmemoryerror\/"},"author":{"name":"DBA RJ","@id":"https:\/\/www.dbarj.com.br\/pt-br\/#\/schema\/person\/28a44ca3a6633fe4156ad1ea209d40a9"},"headline":"EM agent falha ao iniciar com &#8216;Target Interaction Manager failed at Startup&#8217; e &#8216;java.lang.OutOfMemoryError: Java heap space&#8217; nos logs","datePublished":"2016-05-16T17:07:56+00:00","dateModified":"2016-05-16T17:09:28+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dbarj.com.br\/pt-br\/2016\/05\/em-agent-falha-ao-iniciar-outofmemoryerror\/"},"wordCount":299,"commentCount":0,"publisher":{"@id":"https:\/\/www.dbarj.com.br\/pt-br\/#\/schema\/person\/28a44ca3a6633fe4156ad1ea209d40a9"},"articleSection":["Enterprise Manager 12c"],"inLanguage":"pt-BR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dbarj.com.br\/pt-br\/2016\/05\/em-agent-falha-ao-iniciar-outofmemoryerror\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dbarj.com.br\/pt-br\/2016\/05\/em-agent-falha-ao-iniciar-outofmemoryerror\/","url":"https:\/\/www.dbarj.com.br\/pt-br\/2016\/05\/em-agent-falha-ao-iniciar-outofmemoryerror\/","name":"EM agent falha ao iniciar com 'Target Interaction Manager failed at Startup' e 'java.lang.OutOfMemoryError: Java heap space' nos logs - DBA - Rodrigo Jorge - Oracle Tips and Guides","isPartOf":{"@id":"https:\/\/www.dbarj.com.br\/pt-br\/#website"},"datePublished":"2016-05-16T17:07:56+00:00","dateModified":"2016-05-16T17:09:28+00:00","description":"Neste artigo, vou demonstrar como resolver o problema quando o agente do EM falha ao iniciar por problemas de mem\u00f3ria no java.","breadcrumb":{"@id":"https:\/\/www.dbarj.com.br\/pt-br\/2016\/05\/em-agent-falha-ao-iniciar-outofmemoryerror\/#breadcrumb"},"inLanguage":"pt-BR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dbarj.com.br\/pt-br\/2016\/05\/em-agent-falha-ao-iniciar-outofmemoryerror\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.dbarj.com.br\/pt-br\/2016\/05\/em-agent-falha-ao-iniciar-outofmemoryerror\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.dbarj.com.br\/pt-br\/"},{"@type":"ListItem","position":2,"name":"EM agent falha ao iniciar com 'Target Interaction Manager failed at Startup' e 'java.lang.OutOfMemoryError: Java heap space' nos logs"}]},{"@type":"WebSite","@id":"https:\/\/www.dbarj.com.br\/pt-br\/#website","url":"https:\/\/www.dbarj.com.br\/pt-br\/","name":"DBA - Rodrigo Jorge - Oracle Tips and Guides","description":"Blog about Databases, Security and High Availability","publisher":{"@id":"https:\/\/www.dbarj.com.br\/pt-br\/#\/schema\/person\/28a44ca3a6633fe4156ad1ea209d40a9"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dbarj.com.br\/pt-br\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"pt-BR"},{"@type":["Person","Organization"],"@id":"https:\/\/www.dbarj.com.br\/pt-br\/#\/schema\/person\/28a44ca3a6633fe4156ad1ea209d40a9","name":"DBA RJ","image":{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/09\/RodrigoJorgePOUG19.png","url":"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/09\/RodrigoJorgePOUG19.png","contentUrl":"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/09\/RodrigoJorgePOUG19.png","width":712,"height":712,"caption":"DBA RJ"},"logo":{"@id":"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/09\/RodrigoJorgePOUG19.png"}}]}},"_links":{"self":[{"href":"https:\/\/www.dbarj.com.br\/pt-br\/wp-json\/wp\/v2\/posts\/2145","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dbarj.com.br\/pt-br\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dbarj.com.br\/pt-br\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dbarj.com.br\/pt-br\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dbarj.com.br\/pt-br\/wp-json\/wp\/v2\/comments?post=2145"}],"version-history":[{"count":0,"href":"https:\/\/www.dbarj.com.br\/pt-br\/wp-json\/wp\/v2\/posts\/2145\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.dbarj.com.br\/pt-br\/wp-json\/wp\/v2\/media?parent=2145"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dbarj.com.br\/pt-br\/wp-json\/wp\/v2\/categories?post=2145"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dbarj.com.br\/pt-br\/wp-json\/wp\/v2\/tags?post=2145"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}