Bug 330852 - Verifying Launch Attributes takes 60+ second when running a Java Application
Summary: Verifying Launch Attributes takes 60+ second when running a Java Application
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 3.7   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: JDT-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: readme
Depends on:
Blocks:
 
Reported: 2010-11-22 15:37 EST by fotakis CLA
Modified: 2016-05-31 13:08 EDT (History)
6 users (show)

See Also:


Attachments
Heapdump while waiting (606.54 KB, application/force-download)
2011-02-07 11:37 EST, Jan Luehr CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description fotakis CLA 2010-11-22 15:37:48 EST
Build Identifier:  20100917-0705

I have an application which has survived a migration throught all of the Eclipse versions since 3.1. On helios all of the launch configurations on my workspace take 60+ seconds and they all get stuck in "Verifying Launch Attributes"

Reproducible: Always

Steps to Reproduce:
1. Open a project in the working
2. Click Run As - Java Application on a main class
3. Wait for 60+ seconds to see the application lauchn

4. Open a WTP Project
5. Run As -> Server Application
6. Wait for 60+ seconds to see the application lauchn.
Comment 1 Olivier Thomann CLA 2010-11-22 15:41:37 EST
Move to JDT/Debug
Comment 2 Remy Suen CLA 2010-11-22 16:12:57 EST
(In reply to comment #0)
> 1. Open a project in the working
> 2. Click Run As - Java Application on a main class
> 3. Wait for 60+ seconds to see the application lauchn

There isn't much that can be done with just this information. Do you get this problem with a console hello world?

Perhaps some thread dumps will help determine where it's stuck on?
http://wiki.eclipse.org/index.php/How_to_report_a_deadlock
Comment 3 Jan Luehr CLA 2011-02-07 11:36:58 EST
Hello,

+1:

1. What build of Eclipse you are using (see Help > About) 
 -> 20090621-0832 as well as 20100917-0705
2. What VM you are using (version and vendor). Use "java -version" to find out version information.
 -> java version "1.6.0_22"
Java(TM) SE Runtime Environment (build 1.6.0_22-b04-307-10M3261)
Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03-307, mixed mode)
3. What you were doing at the time of the deadlock (what dialog, wizard, editor, etc)
 -> Launching a JUnit4 test. Progressbar kept stuck at "Verifying launch attributes ... (57%)"
4. Whether it is reproducible; if so, provide steps  
 -> See report

5.Once the bug report is created, attach a stack trace (also known as thread dump), using the "Create a New Attachment" link in bugzilla. 
 -> Will do in a minute
Comment 4 Jan Luehr CLA 2011-02-07 11:37:38 EST
Created attachment 188452 [details]
Heapdump while waiting
Comment 5 Aaron Digulla CLA 2012-10-01 11:46:49 EDT
Can you please check whether IPv6 is enabled? If so, can you disable it and try again?
Comment 6 Michael Rennie CLA 2012-10-01 12:09:35 EDT
(In reply to comment #4)
> Created attachment 188452 [details]
> Heapdump while waiting

Can you re-attaching a heap dump (in plain text), this one cannot be read - file opens and is all garbled.
Comment 7 Michael Rennie CLA 2013-02-19 13:06:31 EST
I have not noticed any significant delays launching Java applications, without an updated Heap dump I am marking this worksforme.
Comment 8 Aaron Digulla CLA 2013-02-20 05:02:18 EST
In my machine, this often happens when IPv6 is enabled but somehow not configured correctly.

When IPv6 is enabled, Eclipse will try to talk to the new JUnit runner Java process via IPv6 and if that doesn't work, it will fall back to IPv4 after a 60 second timeout.

If you have this problem, add this line

-Djava.net.preferIPv4Stack=true

to eclipse.ini after the -vmargs line.
Comment 9 Michael Rennie CLA 2013-02-20 09:18:26 EST
(In reply to comment #8)
> In my machine, this often happens when IPv6 is enabled but somehow not
> configured correctly.
> 
> When IPv6 is enabled, Eclipse will try to talk to the new JUnit runner Java
> process via IPv6 and if that doesn't work, it will fall back to IPv4 after a
> 60 second timeout.
> 
> If you have this problem, add this line
> 
> -Djava.net.preferIPv4Stack=true
> 
> to eclipse.ini after the -vmargs line.

Thanks for the tip Aaron!
Comment 10 Matej Spiller Muys CLA 2016-05-31 13:08:12 EDT
Check solution in this issue:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=481417