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 150226 - java deployment to glassfish extreamly slow
Summary: java deployment to glassfish extreamly slow
Status: RESOLVED WORKSFORME
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 9 (show other bugs)
Version: 6.x
Hardware: Macintosh Mac OS X
: P4 blocker (vote)
Assignee: Vince Kraemer
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2008-10-15 14:07 UTC by ppkettu
Modified: 2009-12-07 17:42 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
ant log when deployment was fast (1.38 KB, text/plain)
2008-10-16 17:34 UTC, ppkettu
Details
ant log when deployment was slow (1.11 KB, text/plain)
2008-10-16 17:35 UTC, ppkettu
Details
GF log when deployment was fast (10.35 KB, text/plain)
2008-10-16 17:37 UTC, ppkettu
Details
GF log when deployment was slow (9.84 KB, text/plain)
2008-10-16 17:37 UTC, ppkettu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ppkettu 2008-10-15 14:07:04 UTC
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.
Comment 1 ppkettu 2008-10-15 14:09:44 UTC
Tested on NetBeans 6.1, 6.5 beta, NetBeans Dev 200810150201.
Comment 2 Vince Kraemer 2008-10-15 19:29:15 UTC
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.
Comment 3 ppkettu 2008-10-15 22:17:37 UTC
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.
Comment 4 Vince Kraemer 2008-10-15 23:23:38 UTC
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...
Comment 5 ppkettu 2008-10-16 17:34:58 UTC
Created attachment 72020 [details]
ant log when deployment was fast
Comment 6 ppkettu 2008-10-16 17:35:37 UTC
Created attachment 72021 [details]
ant log when deployment was slow
Comment 7 ppkettu 2008-10-16 17:37:01 UTC
Created attachment 72022 [details]
GF log when deployment was fast
Comment 8 ppkettu 2008-10-16 17:37:46 UTC
Created attachment 72023 [details]
GF log when deployment was slow
Comment 9 ppkettu 2008-10-16 17:46:39 UTC
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").
Comment 10 Lukas Jungmann 2008-10-16 18:06:40 UTC
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.
Comment 11 ppkettu 2008-10-19 21:27:31 UTC
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").
Comment 12 Vince Kraemer 2008-10-22 00:08:55 UTC
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....
Comment 13 ppkettu 2008-10-23 10:09:32 UTC
"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.)
Comment 14 Vince Kraemer 2008-10-25 05:37:29 UTC
so it sounds like this issue comes and goes... on the same project at different times... is that right?
Comment 15 ppkettu 2008-10-25 10:55:09 UTC
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?
Comment 16 Vince Kraemer 2008-12-02 00:17:35 UTC
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...
Comment 17 pames 2008-12-18 01:20:48 UTC
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.
Comment 18 Vince Kraemer 2009-09-14 23:25:40 UTC
this is against v2... so it is lower priority for 6.8
Comment 19 ppkettu 2009-09-15 08:23:43 UTC
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.
Comment 20 Vince Kraemer 2009-12-07 17:42:43 UTC
closing as works for me based on this comment... https://netbeans.org/bugzilla/show_bug.cgi?id=150226#c19