Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Slow publishing in Linux?
Slow publishing in Linux? [message #212261] Fri, 11 April 2008 01:42 Go to next message
Eclipse UserFriend
Originally posted by: simensen.gmail.com

I have a project that is extremely slow to publish in Eclipse when run
under Linux. This same project publishes much more quickly when published
using a Windows Eclipse.

What is the best way to debug what is actually going on? The details for
Progress just show it saying, "Copying from text-base to text base" and
gets stuck there for awhile. I see it switching to other folders from time
to time, but it happens much more slowly than I would expect (I'm talking
at least 5 minutes-- I've yet had the patience to wait for it to actually
completely publish).

I am mostly positive that it is not the disk that is the issue. I can copy
the entire project ( including the target/ folders ) faster than I can
publish just one of the projects to Tomcat.

I moved to Linux because I could see that compiling from the command line
was way faster on Linux than on Windows. I assumed that Eclipse
performance would be close or better under Linux. For cleaning and
building the project, this looks to be true. However, this slow publishing
issue will definitely be a show stopper.
Re: Slow publishing in Linux? [message #212273 is a reply to message #212261] Fri, 11 April 2008 01:48 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: simensen.gmail.com

I failed to mention I am using Eclipse Platform Version 3.3.2 with JDK
jdk1.6.0_03. Not sure how to determine which version of WTP I am running.
Re: Slow publishing in Linux? [message #212281 is a reply to message #212261] Fri, 11 April 2008 02:18 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: simensen.gmail.com

It looks like this might be related to choosing "Use Tomcat installation
(takes control of Tomcat installation)" instead of "Use workspace metadata
(does not modify Tomcat installation)" -- is there any reason there might
be a difference here?
Re: Slow publishing in Linux? [message #212295 is a reply to message #212281] Fri, 11 April 2008 15:26 Go to previous message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
Beau D. Simensen wrote:
> It looks like this might be related to choosing "Use Tomcat installation
> (takes control of Tomcat installation)" instead of "Use workspace
> metadata (does not modify Tomcat installation)" -- is there any reason
> there might be a difference here?
>

There is a difference. With "Use Tomcat installation...", publishing
assumes that external changes could have been made to the webapp copy in
the installation and attempts to synchronize that webapp with the
project. This means all files get checked to see if dates match and
those that don't match get copied. Any extra files found in the
installed webapp not also in the project are deleted. Finally, there is
a bug[1] related to "Use Tomcat installation...", now fixed in WTP 3.0,
that causes utility projects to rebuild their jar on every publish.

For the "non-Use Tomcat installation" options, only files that changed
since the last publish (determined from some cached data) are copied to
the webapp. Also, Bug 211660 doesn't apply, so utility projects are
rebuilt only if something changed. Since WTP assumes it "owns" that
Tomcat instance, this simpler form of publishing is considered sufficient.

Cheers,
Larry

[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=211660
Previous Topic:How to set/force specific content type for a StructuredTextEditor in a MultiPageEditor
Next Topic:Syntax Highlighting in sse xml
Goto Forum:
  


Current Time: Fri Apr 19 01:46:02 GMT 2024

Powered by FUDForum. Page generated in 0.01879 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top