[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-3461) After Jboss server shutdown from eclipse IDE the CPU time is significantly increased

Rob Stryker (JIRA) jira-events at lists.jboss.org
Wed Jan 14 06:09:06 EST 2009


    [ https://jira.jboss.org/jira/browse/JBIDE-3461?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12447732#action_12447732 ] 

Rob Stryker commented on JBIDE-3461:
------------------------------------

Looking at the code, this seems very weird. The code is as follows:

			ILaunchConfigurationWorkingCopy wc = createLaunchConfiguration(server);
			ILaunch launch = wc.launch(ILaunchManager.RUN_MODE, new NullProgressMonitor());
			IProcess stopProcess = launch.getProcesses()[0];
			while( !stopProcess.isTerminated()) {}
			return stopProcess.getExitValue() == 0 ? true : false;

The only way this block of code is staying open is if the Stop process never ends.  Since the stop process is launched via a launch configuration, the stop process is actually an external process we just have a reference to. It's not run within the eclipse process. So... you may want to check your system to see if a bunch of rogue java processes are still going.  If you're seeing 20 or more threads stuck on that loop, do you also see 20 or more java processes running on your system? 

The stop process, specifically, is basically a call to ${server home}/bin/shutdown.jar.  This is almost always a very very short block of code. In fact, looking at THAT class, there is only 1 loop in the class at all, and that is to parse the arguments! I find it hard to believe this is failing.  And from the code above, once the stop process terminates, the loop should end. 

I'm committing a change to make sure the loop doesn't keep going even after the server is stopped. But I'm not sure it'll fix your problem entirely. 



> After Jboss server shutdown from eclipse IDE the CPU time is significantly increased
> ------------------------------------------------------------------------------------
>
>                 Key: JBIDE-3461
>                 URL: https://jira.jboss.org/jira/browse/JBIDE-3461
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: JBossAS
>    Affects Versions: 3.0.0.cr1
>         Environment: Vista x64; Eclipse 3.4.1_win32_x64; JBoss server 5.0.0 GA and JBoss server 4.2.3 GA; Java 1.6.0_11 x64
>            Reporter: Toma�¾ Zupan
>            Assignee: Rob Stryker
>            Priority: Critical
>             Fix For: 3.0.0.CR2
>
>
> If JBoss server (i.e. JBoss, a division of Red Hat/JBoss 5) is started and stoped from Eclipse IDE, then after server is stoped, CPU of the eclipse process is significantly incresed from 0% to 50%. If you repeat it again after second serven shutdown CPU time is increased to 100%.
> I tried the same procedure on generic JBoss 4.2 server runtime and there is no problem.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       




More information about the jbosstools-issues mailing list