Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » PDT - Excruciatingly Long Build Times
PDT - Excruciatingly Long Build Times [message #52546] Tue, 18 September 2007 12:49 Go to next message
Jeff Levy is currently offline Jeff LevyFriend
Messages: 7
Registered: July 2009
Junior Member
I have recently inherited a very large PHP project, and I'm having some
grave issues with the project build-times in Eclipse.

The App contains about 2700 PHP files. By my reckoning, about 1300 of
them are simply symlinks. Symlinks abound in this codebase.

I have the root project folder mounted over NFS, and my Eclipse project's
base folder is simply a 'linked resource' pointing to the NFS root
folder. I can see the files and open them with no issue.

The problem that I'm having is that when PDT invokes the PHP project
builder, it fires off and then ... nothing. It sits at 0% forever. It got
as far as 5% once before I got nasty-impatient and killed Eclipse.

I've allocated 512M of memory to Eclipse, but that seems to have had no
effect.

I exec lsof and grep for open .php files, and I see that eclipse is
indeed accessing those files, typically, a pipe to 'wc -l' indicates that
about 100 to 110 files are open at any given moment.

I've diffed the output of this lsof command and noticed that most of the
files never close. I get some diffs, some files are parsed, but the vast
majority of them are 'hung', for lack of a better term.

Would anyone be able to give me some advice and/or insight as to what's
going on here?

I've tried removing the project from the Build Order list, to no effect.

I've tried setting the project's properties to "PHP4", which it is,
instead of the default PHP5, also, this has had no effect.

Thanks.
Re: PDT - Excruciatingly Long Build Times [message #52839 is a reply to message #52546] Wed, 19 September 2007 05:58 Go to previous messageGo to next message
Ashkan Kh.Nazary is currently offline Ashkan Kh.NazaryFriend
Messages: 23
Registered: July 2009
Junior Member
We had the exact same situation or I may say even worse. We had a very
comprehensive frame work (Bitrix if you are familiar with it) with
something like 20'000 files and 5 projects built upon it each having
some symlinks targeted at the mentioned framework. I happily may suggest
you some useful tips:

First, disable the Build Automatically feature so it doesn't build the
project every time you start PDT:

Windows > Preferences > General > Workspace > Build Automatically
(uncheck the check box)

You may also want to disable Refresh Automatically feature in the same
window.

Then disable validation, it costs a huge time and does nothing of real
value (for us and I think perhaps for you):

Window > Preferences > Validation > Suspend all validators (they should
become gray)

Now you should disable both PHP Builder and Validators in PHP project
specific settings:

Open your project, from the Project menu select Properties, highlight
Builders in the left column and uncheck the PHP Project Builder and
Validation options.

Please pay attention that some of these actions *may* have no effect if
Project specific settings is allowed for them; meaning projects can
define their own preferences which could override the global ones. To
avoid this you should disable this feature for the so-called preferences
in Project Properties window. (e.g. for Validation)

I hope this helps.
Re: PDT - Excruciatingly Long Build Times [message #52970 is a reply to message #52546] Wed, 19 September 2007 11:44 Go to previous messageGo to next message
Henning Vitting is currently offline Henning VittingFriend
Messages: 11
Registered: July 2009
Junior Member
Hi I have been bitten by the same problem.

After installing pdt-all-in-one-incubation-S20070910_RC1-win32.zip, and
copying my files to a new workspace(7.16 MB 695 files in 119 folders) I
experienced the 0% hang for several minutes every time I started the
workspace, the problem was solid and went on for several days.

I have contacted Guy Gurfinkel at Zend to have Bug 155214 reopened, but he
has advised me to create a new Bug for the problem if I was able to
recreate.

Unfortunately, before I received his note, I Installed MYLYN from their
update site, the MYLYN installation alo pulled in PDT.SDK.FEATURE.U20070910;
and the problem had disappered.

I have no clue to what the problem was, a timing problem with a hung thread
perhaps, if that is the case it might be a very difficult bug to eliminate.

Jlevy I will pass Guy's advice on to you
good luck

Henning



"jlevy" <jeffmlevy@gmail.com> skrev i meddelelsen
news:fcohhm$lim$1@build.eclipse.org...
>I have recently inherited a very large PHP project, and I'm having some
> grave issues with the project build-times in Eclipse.
>
> The App contains about 2700 PHP files. By my reckoning, about 1300 of
> them are simply symlinks. Symlinks abound in this codebase.
>
> I have the root project folder mounted over NFS, and my Eclipse project's
> base folder is simply a 'linked resource' pointing to the NFS root
> folder. I can see the files and open them with no issue.
>
> The problem that I'm having is that when PDT invokes the PHP project
> builder, it fires off and then ... nothing. It sits at 0% forever. It got
> as far as 5% once before I got nasty-impatient and killed Eclipse.
>
> I've allocated 512M of memory to Eclipse, but that seems to have had no
> effect.
>
> I exec lsof and grep for open .php files, and I see that eclipse is
> indeed accessing those files, typically, a pipe to 'wc -l' indicates that
> about 100 to 110 files are open at any given moment.
>
> I've diffed the output of this lsof command and noticed that most of the
> files never close. I get some diffs, some files are parsed, but the vast
> majority of them are 'hung', for lack of a better term.
>
> Would anyone be able to give me some advice and/or insight as to what's
> going on here?
>
> I've tried removing the project from the Build Order list, to no effect.
>
> I've tried setting the project's properties to "PHP4", which it is,
> instead of the default PHP5, also, this has had no effect.
>
> Thanks.
Re: PDT - Excruciatingly Long Build Times [message #53284 is a reply to message #52546] Thu, 20 September 2007 01:40 Go to previous message
Eclipse UserFriend
Originally posted by: eclipsenews.20.epm.spamgourmet.com

I have a suspicion this is related to the rogue 'scanning for tasks'
problem that exists in WTP 2.0.

Do you find it impossible to cancel the build task?

See:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=189276

jlevy wrote:
> I have recently inherited a very large PHP project, and I'm having some
> grave issues with the project build-times in Eclipse.
>
> The App contains about 2700 PHP files. By my reckoning, about 1300 of
> them are simply symlinks. Symlinks abound in this codebase.
>
> I have the root project folder mounted over NFS, and my Eclipse project's
> base folder is simply a 'linked resource' pointing to the NFS root
> folder. I can see the files and open them with no issue.
>
> The problem that I'm having is that when PDT invokes the PHP project
> builder, it fires off and then ... nothing. It sits at 0% forever. It got
> as far as 5% once before I got nasty-impatient and killed Eclipse.
>
> I've allocated 512M of memory to Eclipse, but that seems to have had no
> effect.
>
> I exec lsof and grep for open .php files, and I see that eclipse is
> indeed accessing those files, typically, a pipe to 'wc -l' indicates that
> about 100 to 110 files are open at any given moment.
>
> I've diffed the output of this lsof command and noticed that most of the
> files never close. I get some diffs, some files are parsed, but the vast
> majority of them are 'hung', for lack of a better term.
>
> Would anyone be able to give me some advice and/or insight as to what's
> going on here?
>
> I've tried removing the project from the Build Order list, to no effect.
>
> I've tried setting the project's properties to "PHP4", which it is,
> instead of the default PHP5, also, this has had no effect.
>
> Thanks.
Previous Topic:Can't set up PHP run profile
Next Topic:php.ini file
Goto Forum:
  


Current Time: Tue Apr 23 15:40:06 GMT 2024

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

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

Back to the top