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 268997 - Glassfish 4.1 deployment really really slow since OS X upgraded to Sierra (10.12)
Summary: Glassfish 4.1 deployment really really slow since OS X upgraded to Sierra (10...
Status: RESOLVED WORKSFORME
Alias: None
Product: serverplugins
Classification: Unclassified
Component: GlassFish (show other bugs)
Version: 4.x
Hardware: Macintosh (x86) Mac OS X
: P2 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-16 09:19 UTC by gillesdelestrade
Modified: 2016-12-19 10:52 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gillesdelestrade 2016-11-16 09:19:26 UTC
Since I upgraded my MacPro to macOS Sierra (10.12) I encounter many problems with glass fish startup. First it didn't want to startup at all, but I found the solution on this forum (proxy settings mostly), and now its starts up, but it is incredibly slow.

On macOS El Capitan (10.11), in glassfish logs : 

  GlassFish Server Open Source Edition  4.1  (13) startup time : Felix (2 782ms), startup services(22 697ms), total(25 479ms)]]

On macOS Sierra (10.12), in glassfish logs (same project) : 

GlassFish Server Open Source Edition  4.1  (13) startup time : Felix (32 390ms), startup services(1 105 869ms), total(1 138 259ms)

Once my application is started, it runs as fast as before.

I use Netbeans 8.0.1, Java 1.7.0_72 and Glassfish 4.1
Comment 1 aosamai 2016-12-18 03:20:40 UTC
this has to do with Sierra blocking calls to 12.0.0.1 and other weird proxy issues, hope someone has found a solution so glass fish is working again
Comment 2 gillesdelestrade 2016-12-19 10:51:57 UTC
Thanks a lot. I just found a solution on stackoverflow : http://stackoverflow.com/questions/39636792/jvm-takes-a-long-time-to-resolve-ip-address-for-localhost 

IT WORKS (for me) !!!!

All you have to do is add your Mac name at the end of these two lines in your /etc/hosts file :

127.0.0.1   localhost your-mac-name.local
::1         localhost your-mac-name.local

Don't forget the second line, the one starting with ::1 even if you think you don't use IPv6.