{"action":"created","issue":{"url":"https://api.github.com/repos/projeto-siga/siga/issues/241","labels_url":"https://api.github.com/repos/projeto-siga/siga/issues/241/labels{/name}","comments_url":"https://api.github.com/repos/projeto-siga/siga/issues/241/comments","events_url":"https://api.github.com/repos/projeto-siga/siga/issues/241/events","html_url":"https://github.com/projeto-siga/siga/issues/241","id":66680052,"number":241,"title":"[Crítico] Alteração na solução de cache","user":{"login":"kmacedovarela","id":253186,"avatar_url":"https://avatars.githubusercontent.com/u/253186?v=3","gravatar_id":"","url":"https://api.github.com/users/kmacedovarela","html_url":"https://github.com/kmacedovarela","followers_url":"https://api.github.com/users/kmacedovarela/followers","following_url":"https://api.github.com/users/kmacedovarela/following{/other_user}","gists_url":"https://api.github.com/users/kmacedovarela/gists{/gist_id}","starred_url":"https://api.github.com/users/kmacedovarela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmacedovarela/subscriptions","organizations_url":"https://api.github.com/users/kmacedovarela/orgs","repos_url":"https://api.github.com/users/kmacedovarela/repos","events_url":"https://api.github.com/users/kmacedovarela/events{/privacy}","received_events_url":"https://api.github.com/users/kmacedovarela/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/projeto-siga/siga/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/projeto-siga/siga/labels/[EquipeSIGA]","name":"[EquipeSIGA]","color":"eb6420"},{"url":"https://api.github.com/repos/projeto-siga/siga/labels/[PROD]","name":"[PROD]","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-04-06T19:01:05Z","updated_at":"2015-04-29T00:49:00Z","closed_at":null,"body":"Conforme conversa iniciada por e-mail, é necessário que a equipe tome providência a respeito do seguinte item :\r\n\r\n   Gargalo na aplicação que possivelmente é uma das causas das quedas do sigaex quando com muitos usuários simultâneos. \r\n\r\n**br.gov.jfrj.siga.cp.bl.CpConfiguracaoBL:130**\r\nprivate **synchronized** void atualizarCache(Long idTipoConfig) {\r\n\r\n   Este método está gerando lock em diversas threads, aumentando o consumo de CPU, e por consequência causando lentidão e até indisponibilidade do serviço.é necessário tomar alguma providência a respeito do funcionamento deste método.\r\n\r\n**A seguinte atualização foi realizada segundo solicitação de @crivano  **\r\n13760f20b4d2d1276f46a10bcbdc89cc401d73df\r\n\r\nInformação extra:\r\nExemplo de log exibido quando a instância do sigaex atinge um alto consumo de CPU por muito tempo, fica lento, e *cai*:\r\n````\r\n15:28:58,495 WARN  [com.arjuna.ats.arjuna] (Transaction Reaper) ARJUNA012117: TransactionReaper::check timeout for TX 0:ffff0a0a0048:-5373dc95:551b1e01:12e1e in state  RUN\r\n15:28:58,501 WARN  [com.arjuna.ats.arjuna] (Transaction Reaper Worker 0) ARJUNA012095: Abort of action id 0:ffff0a0a0048:-5373dc95:551b1e01:12e1e invoked while multiple threads active within it.\r\n15:28:58,502 WARN  [com.arjuna.ats.arjuna] (Transaction Reaper Worker 0) ARJUNA012108: CheckedAction::check - atomic action 0:ffff0a0a0048:-5373dc95:551b1e01:12e1e aborting with 1 threads active!\r\n15:28:58,502 WARN  [com.arjuna.ats.arjuna] (Transaction Reaper Worker 0) ARJUNA012121: TransactionReaper::doCancellations worker Thread[Transaction Reaper Worker 0,5,main] successfully canceled TX 0:ffff0a0a0048:-5373dc95:551b1e01:12e1e\r\n````"},"comment":{"url":"https://api.github.com/repos/projeto-siga/siga/issues/comments/97274195","html_url":"https://github.com/projeto-siga/siga/issues/241#issuecomment-97274195","issue_url":"https://api.github.com/repos/projeto-siga/siga/issues/241","id":97274195,"user":{"login":"Markenson","id":2985140,"avatar_url":"https://avatars.githubusercontent.com/u/2985140?v=3","gravatar_id":"","url":"https://api.github.com/users/Markenson","html_url":"https://github.com/Markenson","followers_url":"https://api.github.com/users/Markenson/followers","following_url":"https://api.github.com/users/Markenson/following{/other_user}","gists_url":"https://api.github.com/users/Markenson/gists{/gist_id}","starred_url":"https://api.github.com/users/Markenson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Markenson/subscriptions","organizations_url":"https://api.github.com/users/Markenson/orgs","repos_url":"https://api.github.com/users/Markenson/repos","events_url":"https://api.github.com/users/Markenson/events{/privacy}","received_events_url":"https://api.github.com/users/Markenson/received_events","type":"User","site_admin":false},"created_at":"2015-04-29T00:49:00Z","updated_at":"2015-04-29T00:49:00Z","body":"@crivano Acho melhor aguardar, pois fazer um merge disso pode ser bem complicado. O que acha de avaliarmos se os recursos de cache disponíveis pelo próprio servidor de aplicação nos atenderia? Se for viável, remover esse código de dentro do nosso sistema certamente tornaria o sistema mais robusto."}}