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.
Java project deployment to Glassfish is still extreamly slow on Mac. I remember seeing this kind of issue (under Windows?) reported as fixed, but maybe this is another one. When I deploy a simple Java project containing WebServices (SOAP & JAX-style), the deployment takes about 2 minutes, sometimes more (a lot more with debugging on). I think this is poor performance on machine with 2,4 GHz Core 2 Duo and 4 gigs of memory.
Tested on NetBeans 6.1, 6.5 beta, NetBeans Dev 200810150201.
questions... 1. is the server already started before you do the deploy request or is that part of the two-minutes? 2. please attach the server's log file.... 3. please attach the content of the ant output window. 4. I don't think I quite understand the type of project that you are deploying... are you deploying a web app that implements a web service an ejb module that implements a web service a web app that uses a web service ... I will try to reproduce this.
Now I can't reproduce it myself! This has bugged me for months, and now it's mystically gone. I'll return to the matter if it occurs again.
OK. I am going to mark this as incomplete for now.... I will take a swing at it once I get back to my mac...
Created attachment 72020 [details] ant log when deployment was fast
Created attachment 72021 [details] ant log when deployment was slow
Created attachment 72022 [details] GF log when deployment was fast
Created attachment 72023 [details] GF log when deployment was slow
Now it is back again. I've got logs of both cases; when the deployment was fast and when it is slow. - web app that implements a web service That is the case. BTW, I'm using Glassfish v2. The issue doesn't seem to appear on Glassfish v3, but my WebServices don't work on GF3 ("unable to open web service tester page").
re unable to open web service tester page: Resource injection, security for JSR-109 based deployment, and tester app are not implemented in V3 yet, but otherwise once you deploy a service, you should be able to access it's WSDL, create client etc.
Forgot to mention: when it is in "slow mode", even starting Glassfish is significantly slow and causes timeout (IDE to complains "could not start the server").
do you have other operations happening on your machine at about the same time... is your system reading and writing files (besides the reads and writes necessary to do the deploy?) Do you have a lot of other applications running at the same time....
"is your system reading and writing files (besides the reads and writes necessary to do the deploy?)" No, and I do not have anything heavy (other than NetBeans) running on my system. During deployment NetBeans takes about 140% of my CPU (dual core). Maybe the problem is'nt related to WebServices after all. Now I got the same kind of results deploying a Web application without any WebServices. I had not noticed that because I used to use Tomcat before. (Tomcat is not running when I test with Glassfish.)
so it sounds like this issue comes and goes... on the same project at different times... is that right?
It is slow almost all the time, fast / normal operation is a kind of rare exception. Operation with Tomcat is always fast. Am I the only Mac user affected by this? How can it be? I have deleted the NetBeans directory, and NetBeans settings under my user directory and reinstalled the thing and still the problem remains. There is'nt any system depedencies except JVM, am I right?
I haven't been able to reproduce this result... so, i need to set the TM to 'next', since I cannot promise a fix for the 7.0 time frame...
I also have just begun experiencing this issue. As of yesterday, deployments to Glassfish V2UR2 worked perfectly fine. Today, I am experiencing timeouts when the Glassfish server is starting, as well as 1-2 minute deploy times when deploying a simple "Hello World" application (with only 1 index.jsp file). The problem does not appear to manifest itself with Glassfish V3 Prelude. System Specs: 2.6 Ghz Intel Core 2 Duo Macbook Pro w/2 GB RAM, 46 gigabytes of free space. Attempted troubleshooting: I have also removed my ~/.netbeans-* directories, the NetbeansProjects directory, as well as the /Applications/Netbeans/* contents and performed a reinstall with a fresh download, to no avail. If you need any further information, please let me know.
this is against v2... so it is lower priority for 6.8
I have not experienced this issue for months now. I think it was not any NetBeans bug at all, but some random file system bookkeeping glitch. Something that can be fixed using Disk tool in Mac OS X.
closing as works for me based on this comment... https://netbeans.org/bugzilla/show_bug.cgi?id=150226#c19