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 252072 - Terribly slow validation of 3rd-party plugin certificates
Summary: Terribly slow validation of 3rd-party plugin certificates
Status: VERIFIED DUPLICATE of bug 252076
Alias: None
Product: platform
Classification: Unclassified
Component: Plugin Manager (show other bugs)
Version: 8.1
Hardware: PC Linux
: P2 normal (vote)
Assignee: Libor Fischmeistr
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-24 11:58 UTC by Jiri Kovalsky
Modified: 2015-04-28 12:08 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
20 seconds long profiling snapshot from VisualVM while NetBeans was validating some of the downloaded plugins. (4.93 KB, application/octet-stream)
2015-04-24 11:58 UTC, Jiri Kovalsky
Details
Thread dump taken while NetBeans was validating some plugins. (37.47 KB, application/octet-stream)
2015-04-24 12:01 UTC, Jiri Kovalsky
Details
Another thread dump taken while NetBeans was validating some plugins. (28.41 KB, application/octet-stream)
2015-04-24 14:13 UTC, Jiri Kovalsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Kovalsky 2015-04-24 11:58:50 UTC
Created attachment 153364 [details]
20 seconds long profiling snapshot from VisualVM while NetBeans was validating some of the downloaded plugins.

Product Version: NetBeans IDE Dev (Build Trunk-Build-1202-on-20150423)
Updates: Updates available
Java: 1.8.0_40; Java HotSpot(TM) 64-Bit Server VM 25.40-b25
Runtime: Java(TM) SE Runtime Environment 1.8.0_40-b25
System: Linux version 3.13.0-24-generic running on amd64; UTF-8; en_US (nb)

Description:
============
Under certain circumstances like specific networking setup validation of signed plugins takes enormous time. I hope that attached profiling snapshot and two thread dumps might help diagnose the problem.

Steps to reproduce:
===================
0. Be connected to your corporate network via VPN client but don't have any proxy set. Make sure NetBeans IDE takes your operating system's networking configuration.
1. Download JRebel [1] and Codename One [2] plugin binaries.
2. Launch NetBeans IDE and invoke "Tools > Plugins" from main menu.
3. Switch to "Downloaded" tab and push "Add Plugins..." button.
4. Navigate to folder with the NBM files, multiselect them and push "OK" button.
5. Make sure both plugins are checked for installation and push "Install" button.
6. Push "Next >" button and watch the progress of installation.

Expected: All required plugins are downloaded and their validation takes couple of seconds depending on number of plugins to be validated of course.
Actual: All required plugins are downloaded and their validation takes for example ~4 minutes in case of 11 plugins.
Comment 1 Jiri Kovalsky 2015-04-24 12:01:29 UTC
Created attachment 153365 [details]
Thread dump taken while NetBeans was validating some plugins.
Comment 2 Jiri Kovalsky 2015-04-24 14:00:05 UTC
And here are the plugin links:

[1] http://plugins.netbeans.org/download/plugin/3564
[2] http://plugins.netbeans.org/download/plugin/3585
Comment 3 Jiri Kovalsky 2015-04-24 14:13:57 UTC
Created attachment 153371 [details]
Another thread dump taken while NetBeans was validating some plugins.
Comment 4 Libor Fischmeistr 2015-04-28 11:52:17 UTC
Not exactly duplicate of issue 252076 but has the same cause.

*** This bug has been marked as a duplicate of bug 252076 ***
Comment 5 Jiri Kovalsky 2015-04-28 12:08:15 UTC
OK, this is really a duplicate of issue #252076. Verifying.