Hi,
Every time after restarting Jenkins, e. g. due to updates of plug-ins, the web page stucks in "Please wait while Jenkins is getting ready to work...". I only can resolve this by restarting the corresponding Windows service manually. This is my system configuration:
Jenkins: 2.27
OS: Windows Server 2012 R2
RAM: 4 GB
The attached documents cover the reports of jmap and jstack.
Are there any suggestions how to solve this issue?
Regards
Mirko
@Override
public void restart() throws IOException, InterruptedException {
File me = getHudsonWar();
File home = me.getParentFile();
ByteArrayOutputStream baos = new ByteArrayOutputStream();
StreamTaskListener task = new StreamTaskListener(baos);
task.getLogger().println("Restarting a service");
String exe = System.getenv("WINSW_EXECUTABLE");
File executable;
if (exe!=null) executable = new File(exe);
else executable = new File(home, "hudson.exe");
if (!executable.exists()) executable = new File(home, "jenkins.exe");
// use restart! to run hudson/jenkins.exe restart in a separate process, so it doesn't kill itself
int r = new LocalLauncher(task).launch().cmds(executable, "restart!")
.stdout(task).pwd(home).join();
if(r!=0)
throw new IOException(baos.toString());
}