we had 2 issues ; A. cpu peak issue B. broken rundeck gui
on rundeck : 3.2.2-20200204
-----
Issue scenario
A. CPU Peak issue
around 19.40 ,we had an CPU peak issue from our java-rundeck process ;
which caused following unresponsive service
1. rundeck gui
2. rundeck api
*** but job schedule still working as we saw from new coming rundeck.execution log
we have tried to
1. restart service rundeckd
2. reboot server
but none of these methods, solved cpu peak issue, as after rundeck service started again, cpu rose up and java-rundeck used all cpu again, and after few mins gui and api service became unresponsive again.

so we had to roll back our vm(rundeck) to latest state, that did not have cpu peak issue to solve this case.
B. rundeck gui, broken
after cpu issue was gone, we encountered broken gui (css,script redirect path is not correct ; we already set grails.serverURL)
,but issue solved after we updated /etc/rundeck/profile : -Dserver.useForwardHeaders=true, -Dserver.contextPath=/rundeck
following this link :
https://github.com/rundeck/rundeck/issues/3851----
System info
hardware info
:cpu : xeon 4 core
:memory : 20 GB
-
rundeck info
:rundeck version : 3.2.2-20200204
:rundeck Xms : 512MB
:rundeck Xmx : 4GB
:Backend database : mysql
-----
Our investigation
as we receive CPU peak alarm around 19.40
around 19.20 ; there was a user trying kill a job ; but user said they couldn't kill the job so they keep trying to kill a job
,also we check many rundeck log file, and database log at the same time ; which we found some suspicious in 2 logs
1. rundeck.access
before gui and api become unresponsive ; in rundeck.access , there was a lot of action
web.requests "GET /rundeck/execution/ajaxExecState/5495379"
web.requests "POST /rundeck/execution/cancelExecution"
* probably user trying to kill a job
* this project use node_executor : openssh
2. service.log
there are an error (attach as server_error.txt)
org.eclipse.jetty.io.RuntimeIOException: org.eclipse.jetty.io.EofException
org.eclipse.jetty.io.EofException: null
java.io.IOException: Broken pipe
-----
FYI
the attach file contain
1.thread dump during newly reboot rundeck service before gui become unresponsive.
2.service.log before cpu_peak
-----
Any suggestion on cause of 1.CPU issue 2. rundeck gui, broken will be much appreciated
Best Regards,
Benz