This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 233257 - Easily close multiple running applications
Summary: Easily close multiple running applications
Status: RESOLVED WONTFIX
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Projects UI (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-23 14:23 UTC by karamba84
Modified: 2016-07-07 08:37 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
Aborter#1 (5.32 KB, image/png)
2013-07-25 10:06 UTC, karamba84
Details
Aborter #2 (5.58 KB, image/png)
2013-07-25 10:06 UTC, karamba84
Details

Note You need to log in before you can comment on or make changes to this bug.
Description karamba84 2013-07-23 14:23:23 UTC
I have a multi-server application where i usually run 1-2 servers in debug mode and all others (7-10) in normal mode. Each handles another operation but they must run together to work.
When i debug them, i can perfectly shut them down when clicking on the red stop symbol. When i hit it twice, i kill the last two started applications, three times the last three applications and so on.
But when i run only a few of them in debug mode the red stop symbol will disappear after killing all which where running in debug mode and the others continue as expected. I must then go to each tab and kill them with: switch to tab, click on the red stop symbol in the left, wait a few seconds, go to the next tab, click on the red stop symbol in the left, ... its at the moment faster to kill netbeans and restart it.

It would be nice to have some kind of "kill all running applications" or simply use the same red stop symbol to kill all running applications, not only those which get debugged.
Comment 1 Marian Mirilovic 2013-07-25 09:47:16 UTC
What servers ? Do you mean GlassFish, or DB ? Could you please be more specific which red button and so on ... screenshot would be welcome, also please attach messages.log file and reopen. Thanks in advance.
Comment 2 karamba84 2013-07-25 10:05:39 UTC
Guess it should make no difference what servers. They are all embedded, so just imagine it is something like:

Thread t = new Thread(myRunnable);
t.start();

Aborter #1 is the first picture.
Aborter #2 is the second picture.

Just create 5 projects with something like:

public static void main(String args[])
{
   Thread t = new Thread() {
   public void run() { while(true) Thread.currentThread().sleep(1000); }
}

Start 4 of them regular with "Run", and one with "Debug".
The Aborter #1 (in the picture a green arrow) will become a red stop symbol. With that you can kill the debugged application, but after killing it, it will turn back into a green arrow. To kill the other 4 applications, Aborter #2 must be used. There is no way to kill them, except closing netbeans.

If i debug all 5 applications, i click very fast on Aborter #1 and the applications are gone. 

Why not allow also to close the applications which are not in a debug state with Aborter #1?
Comment 3 karamba84 2013-07-25 10:06:01 UTC
Created attachment 137768 [details]
Aborter#1
Comment 4 karamba84 2013-07-25 10:06:16 UTC
Created attachment 137769 [details]
Aborter #2
Comment 5 Milos Kleint 2013-07-25 11:05:28 UTC
I would suggest that if 7-10 applications need to be started together (which is also 10 times triggering Run project action) then maybe the build should be setup to start all of them at once. If possible.

This enhancement would boil down to some sort of api to cancel builds. We already have Run > Stop Build/run in the main menu. Is that of any use? I believe it only handles the last build/run.
Comment 6 karamba84 2013-08-02 07:10:23 UTC
When i try to start them all at once, this kills the VM as its too much memory which is required.

And yes, the Start/Stop only handles the last build, but its also not what i was looking for. A shortcut would also help :) 
E.g. create a list of informations what is running and when pressing Strg+T (or something else) the last item on that list will get destroyed.
Comment 7 Martin Balin 2016-07-07 08:37:49 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss