You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@netbeans.apache.org by Mondane Woodworker <mo...@gmail.com> on 2019/01/03 11:23:13 UTC

[PHP] NB8.2 / NB10.0 long background scanning Magento 2 projects

Hello,

Since a few months, I started developing Magento 2 shops in NetBeans 8.2
and 10.0 . I've noticed the background scanning of such projects takes a
long time and stays on 50%.

This is after I've performed a composer install to have a /vendor folder
with all the Magento 2 packages.

I don't have this problem when building something on Zend Framework 2/3 or
symfony 2+.

Do more users experience this?

NB I'm using a laptop with SSD's.

Regards,
Mondane

Re: [PHP] NB8.2 / NB10.0 long background scanning - Netbeans tunning guide

Posted by Mondane Woodworker <mo...@gmail.com>.
I've created a bugreport https://issues.apache.org/jira/browse/NETBEANS-1872
.

Op vr 4 jan. 2019 om 13:34 schreef Mondane Woodworker <
mondane.woodworker@gmail.com>:

> That explains the long durations. While I was testing with a clean Magento
> 2 folder, the background scanning took a while, but finished nonetheless .
> This made me wonder if some vendor package in my other project is
> preventing NetBeans from actually finishing the scan. Turns out, one
> package is indeed causing problems and seems to stall the scanning process.
>
> I've created a PHP 7.1 project which contains only the module and NetBeans
> shows the same problem. The package is
> https://composer.amasty.com/community/packages/module-shop-by-brand-2.6.9.zip
> , but you need credentials to download it as it's a paid module, see
> https://amasty.com/shop-by-brand-for-magento-2.html .
>
> But I've managed to pinpoint it to file
> 'vendor/amasty/module-shop-by-brand/view/frontend/templates/widget/brand_list/slider.phtml'.
> Breaking down that file leaves me with a rather small one that stalls the
> scanning process. See the attachment, testable by creating a new PHP 7.1.
> project with only that file.
>
> Op vr 4 jan. 2019 om 11:56 schreef arsi <ar...@chello.sk>:
>
>> Hi,
>> NB82 - 223s - i7-8750H CPU - 48GB RAM :)
>> The problem is, that the indexer runs only on one core.
>>
>>
>> ------------------------------
>> *From:* Mondane Woodworker <mo...@gmail.com>
>> <mo...@gmail.com>
>> *Sent:* Friday, January 04, 2019 9:48AM
>> *To:* Netbeans Mailing <us...@netbeans.apache.org>
>> <us...@netbeans.apache.org>
>> *Subject:* Re: [PHP] NB8.2 / NB10.0 long background scanning - Netbeans
>> tunning guide
>>
>> Well, the easiest steps would be:
>>
>> 1. Go to https://magento.com/tech-resources/download and download the
>> latest 2.2.x version without sample data. You'll get a surveyform, but you
>> can fill in what you want.
>> 2. Unpack the downloaded archive somewhere.
>> 3. Open NetBeans 10.x and create a PHP 7.1. projecs with existing
>> sources, point to the 'somewhere'.
>>
>> And now wait....
>>
>> Op vr 4 jan. 2019 om 09:27 schreef Geertjan Wielenga <
>> geertjan.wielenga@googlemail.com>:
>>
>>> Maybe you can tell us step by step how to replicate your scenario.
>>>
>>> Gj
>>>
>>> On Fri, Jan 4, 2019 at 9:26 AM Emilian Bold <em...@gmail.com>
>>> wrote:
>>>
>>>> You could take some thead dump every now and then and see which class
>>>> is running. Profiling the IDE could also show this.
>>>>
>>>> There are also various logs where you could increase the log level
>>>> once you figure out which classes / packages to look further into.
>>>>
>>>> --emi
>>>>
>>>> http://coolbeans.xyz/ - CoolBeans: An IDE for Java, JavaEE, PHP and
>>>> more!
>>>>
>>>> On Fri, Jan 4, 2019 at 10:24 AM Mondane Woodworker
>>>> <mo...@gmail.com> wrote:
>>>> >
>>>> > I've tested this approach but it doesn't seem to improve my
>>>> situation. The background scanning is still going on for 20 minutes now.
>>>> For the other projects I've mentioned, this normally takes max. 5 minutes.
>>>> >
>>>> > Can I debug this somehow to help indicate why it's taking so long?
>>>> >
>>>> > Op do 3 jan. 2019 om 17:02 schreef arsi <ar...@chello.sk>:
>>>> >>
>>>> >> Hi,
>>>> >>
>>>> >> The best way to speed up Netbeans is to move the netbeans_cachedir
>>>> to RAM disk.
>>>> >>
>>>> >> On linux:
>>>> >>
>>>> >> Create a directory, for example /media/ramdisk
>>>> >>
>>>> >> Add to /etc/fstab line:
>>>> >>
>>>> >> none /media/ramdisk tmpfs defaults,user,size=2G,mode=0777 0 0
>>>> >>
>>>> >> reboot
>>>> >>
>>>> >> Create new file  /lib/systemd/system/ramdisk.service
>>>> >>
>>>> >> [Unit]
>>>> >> Description=RAM-Disk Manager
>>>> >> Before=umount.target
>>>> >>
>>>> >> [Service]
>>>> >> Type=oneshot
>>>> >> RemainAfterExit=yes
>>>> >> User=root
>>>> >> ExecStart=/usr/bin/rsync -ar /ssd/ramdisk-backup/ /media/ramdisk/
>>>> >> ExecStop=/usr/bin/rsync -ar /media/ramdisk/ /ssd/ramdisk-backup/
>>>> >>
>>>> >> [Install]
>>>> >> WantedBy=multi-user.target
>>>> >>
>>>> >> Replace /ssd/ramdisk-backup/ with a location on the HDD where the
>>>> contents of the RAM disk will be saved when the computer is shut down..
>>>> >>
>>>> >>
>>>> >> sudo apt install rsync
>>>> >>
>>>> >> sudo systemctl enable ramdisk.service
>>>> >>
>>>> >> Menu Netbeans -> About -> Cache directory
>>>> >> And turn off netbeans.
>>>> >>
>>>> >> copy all directories from Cache directory to /media/ramdisk except
>>>> mavencachedirs and mavenindex.
>>>> >>
>>>> >> For the mavencachedirs and mavenindex, create a symlink. The size of
>>>> the two directories are huge.
>>>> >>
>>>> >> sudo rsync -ar /media/ramdisk/ /ssd/ramdisk-backup/  first backup...
>>>> >>
>>>> >> sudo systemctl start ramdisk.service
>>>> >>
>>>> >> now ...netbeans_dir/etc/netbeans.conf
>>>> >>
>>>> >> netbeans_default_cachedir="/media/ramdisk"
>>>> >>
>>>> >>
>>>> >> Run netbeans and enjoy the speed :)
>>>> >>
>>>> >> ArSi
>>>> >>
>>>> >> ________________________________
>>>> >> From: Mondane Woodworker <mo...@gmail.com>
>>>> >> Sent: Thursday, January 03, 2019 3:18PM
>>>> >>
>>>> >> Cc: Users <us...@netbeans.incubator.apache.org>
>>>> >> Subject: Re: [PHP] NB8.2 / NB10.0 long background scanning Magento 2
>>>> projects
>>>> >>
>>>> >> Excluding the vendor folder is not really an option as I need
>>>> NetBeans to know which classes are available. From the video, I added
>>>> nodejs and node_modules to the ignored files pattern. I'll look into the
>>>> magento modules to see if more can be ignored, I've ignored tests already,
>>>> this saves ~8000 files
>>>> >>
>>>> >> Op do 3 jan. 2019 om 12:25 schreef Geertjan Wielenga <
>>>> geertjan.wielenga@googlemail.com>:
>>>> >>>
>>>> >>> Maybe you can exclude the 'vendor' folder from scanning as
>>>> explained here:
>>>> >>>
>>>> >>> https://www.youtube.com/watch?v=iBCid5KQDA8
>>>> >>>
>>>> >>> Gj
>>>> >>>
>>>> >>> On Thu, Jan 3, 2019 at 12:23 PM Mondane Woodworker <
>>>> mondane.woodworker@gmail.com> wrote:
>>>> >>>>
>>>> >>>> Hello,
>>>> >>>>
>>>> >>>> Since a few months, I started developing Magento 2 shops in
>>>> NetBeans 8.2 and 10.0 . I've noticed the background scanning of such
>>>> projects takes a long time and stays on 50%.
>>>> >>>>
>>>> >>>> This is after I've performed a composer install to have a /vendor
>>>> folder with all the Magento 2 packages.
>>>> >>>>
>>>> >>>> I don't have this problem when building something on Zend
>>>> Framework 2/3 or symfony 2+.
>>>> >>>>
>>>> >>>> Do more users experience this?
>>>> >>>>
>>>> >>>> NB I'm using a laptop with SSD's.
>>>> >>>>
>>>> >>>> Regards,
>>>> >>>> Mondane
>>>> >>
>>>> >>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
>>>> For additional commands, e-mail: users-help@netbeans.apache.org
>>>>
>>>> For further information about the NetBeans mailing lists, visit:
>>>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>>>
>>>>
>>

Re: [PHP] NB8.2 / NB10.0 long background scanning - Netbeans tunning guide

Posted by Mondane Woodworker <mo...@gmail.com>.
That explains the long durations. While I was testing with a clean Magento
2 folder, the background scanning took a while, but finished nonetheless .
This made me wonder if some vendor package in my other project is
preventing NetBeans from actually finishing the scan. Turns out, one
package is indeed causing problems and seems to stall the scanning process.

I've created a PHP 7.1 project which contains only the module and NetBeans
shows the same problem. The package is
https://composer.amasty.com/community/packages/module-shop-by-brand-2.6.9.zip
, but you need credentials to download it as it's a paid module, see
https://amasty.com/shop-by-brand-for-magento-2.html .

But I've managed to pinpoint it to file
'vendor/amasty/module-shop-by-brand/view/frontend/templates/widget/brand_list/slider.phtml'.
Breaking down that file leaves me with a rather small one that stalls the
scanning process. See the attachment, testable by creating a new PHP 7.1.
project with only that file.

Op vr 4 jan. 2019 om 11:56 schreef arsi <ar...@chello.sk>:

> Hi,
> NB82 - 223s - i7-8750H CPU - 48GB RAM :)
> The problem is, that the indexer runs only on one core.
>
>
> ------------------------------
> *From:* Mondane Woodworker <mo...@gmail.com>
> <mo...@gmail.com>
> *Sent:* Friday, January 04, 2019 9:48AM
> *To:* Netbeans Mailing <us...@netbeans.apache.org>
> <us...@netbeans.apache.org>
> *Subject:* Re: [PHP] NB8.2 / NB10.0 long background scanning - Netbeans
> tunning guide
>
> Well, the easiest steps would be:
>
> 1. Go to https://magento.com/tech-resources/download and download the
> latest 2.2.x version without sample data. You'll get a surveyform, but you
> can fill in what you want.
> 2. Unpack the downloaded archive somewhere.
> 3. Open NetBeans 10.x and create a PHP 7.1. projecs with existing sources,
> point to the 'somewhere'.
>
> And now wait....
>
> Op vr 4 jan. 2019 om 09:27 schreef Geertjan Wielenga <
> geertjan.wielenga@googlemail.com>:
>
>> Maybe you can tell us step by step how to replicate your scenario.
>>
>> Gj
>>
>> On Fri, Jan 4, 2019 at 9:26 AM Emilian Bold <em...@gmail.com>
>> wrote:
>>
>>> You could take some thead dump every now and then and see which class
>>> is running. Profiling the IDE could also show this.
>>>
>>> There are also various logs where you could increase the log level
>>> once you figure out which classes / packages to look further into.
>>>
>>> --emi
>>>
>>> http://coolbeans.xyz/ - CoolBeans: An IDE for Java, JavaEE, PHP and
>>> more!
>>>
>>> On Fri, Jan 4, 2019 at 10:24 AM Mondane Woodworker
>>> <mo...@gmail.com> wrote:
>>> >
>>> > I've tested this approach but it doesn't seem to improve my situation.
>>> The background scanning is still going on for 20 minutes now. For the other
>>> projects I've mentioned, this normally takes max. 5 minutes.
>>> >
>>> > Can I debug this somehow to help indicate why it's taking so long?
>>> >
>>> > Op do 3 jan. 2019 om 17:02 schreef arsi <ar...@chello.sk>:
>>> >>
>>> >> Hi,
>>> >>
>>> >> The best way to speed up Netbeans is to move the netbeans_cachedir to
>>> RAM disk.
>>> >>
>>> >> On linux:
>>> >>
>>> >> Create a directory, for example /media/ramdisk
>>> >>
>>> >> Add to /etc/fstab line:
>>> >>
>>> >> none /media/ramdisk tmpfs defaults,user,size=2G,mode=0777 0 0
>>> >>
>>> >> reboot
>>> >>
>>> >> Create new file  /lib/systemd/system/ramdisk.service
>>> >>
>>> >> [Unit]
>>> >> Description=RAM-Disk Manager
>>> >> Before=umount.target
>>> >>
>>> >> [Service]
>>> >> Type=oneshot
>>> >> RemainAfterExit=yes
>>> >> User=root
>>> >> ExecStart=/usr/bin/rsync -ar /ssd/ramdisk-backup/ /media/ramdisk/
>>> >> ExecStop=/usr/bin/rsync -ar /media/ramdisk/ /ssd/ramdisk-backup/
>>> >>
>>> >> [Install]
>>> >> WantedBy=multi-user.target
>>> >>
>>> >> Replace /ssd/ramdisk-backup/ with a location on the HDD where the
>>> contents of the RAM disk will be saved when the computer is shut down..
>>> >>
>>> >>
>>> >> sudo apt install rsync
>>> >>
>>> >> sudo systemctl enable ramdisk.service
>>> >>
>>> >> Menu Netbeans -> About -> Cache directory
>>> >> And turn off netbeans.
>>> >>
>>> >> copy all directories from Cache directory to /media/ramdisk except
>>> mavencachedirs and mavenindex.
>>> >>
>>> >> For the mavencachedirs and mavenindex, create a symlink. The size of
>>> the two directories are huge.
>>> >>
>>> >> sudo rsync -ar /media/ramdisk/ /ssd/ramdisk-backup/  first backup...
>>> >>
>>> >> sudo systemctl start ramdisk.service
>>> >>
>>> >> now ...netbeans_dir/etc/netbeans.conf
>>> >>
>>> >> netbeans_default_cachedir="/media/ramdisk"
>>> >>
>>> >>
>>> >> Run netbeans and enjoy the speed :)
>>> >>
>>> >> ArSi
>>> >>
>>> >> ________________________________
>>> >> From: Mondane Woodworker <mo...@gmail.com>
>>> >> Sent: Thursday, January 03, 2019 3:18PM
>>> >>
>>> >> Cc: Users <us...@netbeans.incubator.apache.org>
>>> >> Subject: Re: [PHP] NB8.2 / NB10.0 long background scanning Magento 2
>>> projects
>>> >>
>>> >> Excluding the vendor folder is not really an option as I need
>>> NetBeans to know which classes are available. From the video, I added
>>> nodejs and node_modules to the ignored files pattern. I'll look into the
>>> magento modules to see if more can be ignored, I've ignored tests already,
>>> this saves ~8000 files
>>> >>
>>> >> Op do 3 jan. 2019 om 12:25 schreef Geertjan Wielenga <
>>> geertjan.wielenga@googlemail.com>:
>>> >>>
>>> >>> Maybe you can exclude the 'vendor' folder from scanning as explained
>>> here:
>>> >>>
>>> >>> https://www.youtube.com/watch?v=iBCid5KQDA8
>>> >>>
>>> >>> Gj
>>> >>>
>>> >>> On Thu, Jan 3, 2019 at 12:23 PM Mondane Woodworker <
>>> mondane.woodworker@gmail.com> wrote:
>>> >>>>
>>> >>>> Hello,
>>> >>>>
>>> >>>> Since a few months, I started developing Magento 2 shops in
>>> NetBeans 8.2 and 10.0 . I've noticed the background scanning of such
>>> projects takes a long time and stays on 50%.
>>> >>>>
>>> >>>> This is after I've performed a composer install to have a /vendor
>>> folder with all the Magento 2 packages.
>>> >>>>
>>> >>>> I don't have this problem when building something on Zend Framework
>>> 2/3 or symfony 2+.
>>> >>>>
>>> >>>> Do more users experience this?
>>> >>>>
>>> >>>> NB I'm using a laptop with SSD's.
>>> >>>>
>>> >>>> Regards,
>>> >>>> Mondane
>>> >>
>>> >>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
>>> For additional commands, e-mail: users-help@netbeans.apache.org
>>>
>>> For further information about the NetBeans mailing lists, visit:
>>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>>
>>>
>

Re: [PHP] NB8.2 / NB10.0 long background scanning - Netbeans tunning guide

Posted by arsi <ar...@chello.sk>.
Hi,
NB82 - 223s - i7-8750H CPU - 48GB RAM :)
The problem is, that the indexer runs only on one core.


------------------------------------------------------------------------
*From:* Mondane Woodworker <mo...@gmail.com>
*Sent:* Friday, January 04, 2019 9:48AM
*To:* Netbeans Mailing <us...@netbeans.apache.org>
*Subject:* Re: [PHP] NB8.2 / NB10.0 long background scanning - Netbeans 
tunning guide

> Well, the easiest steps would be:
>
> 1. Go to https://magento.com/tech-resources/download and download the 
> latest 2.2.x version without sample data. You'll get a surveyform, but 
> you can fill in what you want.
> 2. Unpack the downloaded archive somewhere.
> 3. Open NetBeans 10.x and create a PHP 7.1. projecs with existing 
> sources, point to the 'somewhere'.
>
> And now wait....
>
> Op vr 4 jan. 2019 om 09:27 schreef Geertjan Wielenga 
> <geertjan.wielenga@googlemail.com 
> <ma...@googlemail.com>>:
>
>     Maybe you can tell us step by step how to replicate your scenario.
>
>     Gj
>
>     On Fri, Jan 4, 2019 at 9:26 AM Emilian Bold
>     <emilian.bold@gmail.com <ma...@gmail.com>> wrote:
>
>         You could take some thead dump every now and then and see
>         which class
>         is running. Profiling the IDE could also show this.
>
>         There are also various logs where you could increase the log level
>         once you figure out which classes / packages to look further into.
>
>         --emi
>
>         http://coolbeans.xyz/ - CoolBeans: An IDE for Java, JavaEE,
>         PHP and more!
>
>         On Fri, Jan 4, 2019 at 10:24 AM Mondane Woodworker
>         <mondane.woodworker@gmail.com
>         <ma...@gmail.com>> wrote:
>         >
>         > I've tested this approach but it doesn't seem to improve my
>         situation. The background scanning is still going on for 20
>         minutes now. For the other projects I've mentioned, this
>         normally takes max. 5 minutes.
>         >
>         > Can I debug this somehow to help indicate why it's taking so
>         long?
>         >
>         > Op do 3 jan. 2019 om 17:02 schreef arsi <arsi@chello.sk
>         <ma...@chello.sk>>:
>         >>
>         >> Hi,
>         >>
>         >> The best way to speed up Netbeans is to move the
>         netbeans_cachedir to RAM disk.
>         >>
>         >> On linux:
>         >>
>         >> Create a directory, for example /media/ramdisk
>         >>
>         >> Add to /etc/fstab line:
>         >>
>         >> none /media/ramdisk tmpfs defaults,user,size=2G,mode=0777 0 0
>         >>
>         >> reboot
>         >>
>         >> Create new file /lib/systemd/system/ramdisk.service
>         >>
>         >> [Unit]
>         >> Description=RAM-Disk Manager
>         >> Before=umount.target
>         >>
>         >> [Service]
>         >> Type=oneshot
>         >> RemainAfterExit=yes
>         >> User=root
>         >> ExecStart=/usr/bin/rsync -ar /ssd/ramdisk-backup/
>         /media/ramdisk/
>         >> ExecStop=/usr/bin/rsync -ar /media/ramdisk/
>         /ssd/ramdisk-backup/
>         >>
>         >> [Install]
>         >> WantedBy=multi-user.target
>         >>
>         >> Replace /ssd/ramdisk-backup/ with a location on the HDD
>         where the contents of the RAM disk will be saved when the
>         computer is shut down..
>         >>
>         >>
>         >> sudo apt install rsync
>         >>
>         >> sudo systemctl enable ramdisk.service
>         >>
>         >> Menu Netbeans -> About -> Cache directory
>         >> And turn off netbeans.
>         >>
>         >> copy all directories from Cache directory to /media/ramdisk
>         except mavencachedirs and mavenindex.
>         >>
>         >> For the mavencachedirs and mavenindex, create a symlink.
>         The size of the two directories are huge.
>         >>
>         >> sudo rsync -ar /media/ramdisk/ /ssd/ramdisk-backup/  first
>         backup...
>         >>
>         >> sudo systemctl start ramdisk.service
>         >>
>         >> now ...netbeans_dir/etc/netbeans.conf
>         >>
>         >> netbeans_default_cachedir="/media/ramdisk"
>         >>
>         >>
>         >> Run netbeans and enjoy the speed :)
>         >>
>         >> ArSi
>         >>
>         >> ________________________________
>         >> From: Mondane Woodworker <mondane.woodworker@gmail.com
>         <ma...@gmail.com>>
>         >> Sent: Thursday, January 03, 2019 3:18PM
>         >>
>         >> Cc: Users <users@netbeans.incubator.apache.org
>         <ma...@netbeans.incubator.apache.org>>
>         >> Subject: Re: [PHP] NB8.2 / NB10.0 long background scanning
>         Magento 2 projects
>         >>
>         >> Excluding the vendor folder is not really an option as I
>         need NetBeans to know which classes are available. From the
>         video, I added nodejs and node_modules to the ignored files
>         pattern. I'll look into the magento modules to see if more can
>         be ignored, I've ignored tests already, this saves ~8000 files
>         >>
>         >> Op do 3 jan. 2019 om 12:25 schreef Geertjan Wielenga
>         <geertjan.wielenga@googlemail.com
>         <ma...@googlemail.com>>:
>         >>>
>         >>> Maybe you can exclude the 'vendor' folder from scanning as
>         explained here:
>         >>>
>         >>> https://www.youtube.com/watch?v=iBCid5KQDA8
>         >>>
>         >>> Gj
>         >>>
>         >>> On Thu, Jan 3, 2019 at 12:23 PM Mondane Woodworker
>         <mondane.woodworker@gmail.com
>         <ma...@gmail.com>> wrote:
>         >>>>
>         >>>> Hello,
>         >>>>
>         >>>> Since a few months, I started developing Magento 2 shops
>         in NetBeans 8.2 and 10.0 . I've noticed the background
>         scanning of such projects takes a long time and stays on 50%.
>         >>>>
>         >>>> This is after I've performed a composer install to have a
>         /vendor folder with all the Magento 2 packages.
>         >>>>
>         >>>> I don't have this problem when building something on Zend
>         Framework 2/3 or symfony 2+.
>         >>>>
>         >>>> Do more users experience this?
>         >>>>
>         >>>> NB I'm using a laptop with SSD's.
>         >>>>
>         >>>> Regards,
>         >>>> Mondane
>         >>
>         >>
>
>         ---------------------------------------------------------------------
>         To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
>         <ma...@netbeans.apache.org>
>         For additional commands, e-mail:
>         users-help@netbeans.apache.org
>         <ma...@netbeans.apache.org>
>
>         For further information about the NetBeans mailing lists, visit:
>         https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>


Re: [PHP] NB8.2 / NB10.0 long background scanning - Netbeans tunning guide

Posted by Mondane Woodworker <mo...@gmail.com>.
Well, the easiest steps would be:

1. Go to https://magento.com/tech-resources/download and download the
latest 2.2.x version without sample data. You'll get a surveyform, but you
can fill in what you want.
2. Unpack the downloaded archive somewhere.
3. Open NetBeans 10.x and create a PHP 7.1. projecs with existing sources,
point to the 'somewhere'.

And now wait....

Op vr 4 jan. 2019 om 09:27 schreef Geertjan Wielenga <
geertjan.wielenga@googlemail.com>:

> Maybe you can tell us step by step how to replicate your scenario.
>
> Gj
>
> On Fri, Jan 4, 2019 at 9:26 AM Emilian Bold <em...@gmail.com>
> wrote:
>
>> You could take some thead dump every now and then and see which class
>> is running. Profiling the IDE could also show this.
>>
>> There are also various logs where you could increase the log level
>> once you figure out which classes / packages to look further into.
>>
>> --emi
>>
>> http://coolbeans.xyz/ - CoolBeans: An IDE for Java, JavaEE, PHP and more!
>>
>> On Fri, Jan 4, 2019 at 10:24 AM Mondane Woodworker
>> <mo...@gmail.com> wrote:
>> >
>> > I've tested this approach but it doesn't seem to improve my situation.
>> The background scanning is still going on for 20 minutes now. For the other
>> projects I've mentioned, this normally takes max. 5 minutes.
>> >
>> > Can I debug this somehow to help indicate why it's taking so long?
>> >
>> > Op do 3 jan. 2019 om 17:02 schreef arsi <ar...@chello.sk>:
>> >>
>> >> Hi,
>> >>
>> >> The best way to speed up Netbeans is to move the netbeans_cachedir to
>> RAM disk.
>> >>
>> >> On linux:
>> >>
>> >> Create a directory, for example /media/ramdisk
>> >>
>> >> Add to /etc/fstab line:
>> >>
>> >> none /media/ramdisk tmpfs defaults,user,size=2G,mode=0777 0 0
>> >>
>> >> reboot
>> >>
>> >> Create new file  /lib/systemd/system/ramdisk.service
>> >>
>> >> [Unit]
>> >> Description=RAM-Disk Manager
>> >> Before=umount.target
>> >>
>> >> [Service]
>> >> Type=oneshot
>> >> RemainAfterExit=yes
>> >> User=root
>> >> ExecStart=/usr/bin/rsync -ar /ssd/ramdisk-backup/ /media/ramdisk/
>> >> ExecStop=/usr/bin/rsync -ar /media/ramdisk/ /ssd/ramdisk-backup/
>> >>
>> >> [Install]
>> >> WantedBy=multi-user.target
>> >>
>> >> Replace /ssd/ramdisk-backup/ with a location on the HDD where the
>> contents of the RAM disk will be saved when the computer is shut down..
>> >>
>> >>
>> >> sudo apt install rsync
>> >>
>> >> sudo systemctl enable ramdisk.service
>> >>
>> >> Menu Netbeans -> About -> Cache directory
>> >> And turn off netbeans.
>> >>
>> >> copy all directories from Cache directory to /media/ramdisk except
>> mavencachedirs and mavenindex.
>> >>
>> >> For the mavencachedirs and mavenindex, create a symlink. The size of
>> the two directories are huge.
>> >>
>> >> sudo rsync -ar /media/ramdisk/ /ssd/ramdisk-backup/  first backup...
>> >>
>> >> sudo systemctl start ramdisk.service
>> >>
>> >> now ...netbeans_dir/etc/netbeans.conf
>> >>
>> >> netbeans_default_cachedir="/media/ramdisk"
>> >>
>> >>
>> >> Run netbeans and enjoy the speed :)
>> >>
>> >> ArSi
>> >>
>> >> ________________________________
>> >> From: Mondane Woodworker <mo...@gmail.com>
>> >> Sent: Thursday, January 03, 2019 3:18PM
>> >>
>> >> Cc: Users <us...@netbeans.incubator.apache.org>
>> >> Subject: Re: [PHP] NB8.2 / NB10.0 long background scanning Magento 2
>> projects
>> >>
>> >> Excluding the vendor folder is not really an option as I need NetBeans
>> to know which classes are available. From the video, I added nodejs and
>> node_modules to the ignored files pattern. I'll look into the magento
>> modules to see if more can be ignored, I've ignored tests already, this
>> saves ~8000 files
>> >>
>> >> Op do 3 jan. 2019 om 12:25 schreef Geertjan Wielenga <
>> geertjan.wielenga@googlemail.com>:
>> >>>
>> >>> Maybe you can exclude the 'vendor' folder from scanning as explained
>> here:
>> >>>
>> >>> https://www.youtube.com/watch?v=iBCid5KQDA8
>> >>>
>> >>> Gj
>> >>>
>> >>> On Thu, Jan 3, 2019 at 12:23 PM Mondane Woodworker <
>> mondane.woodworker@gmail.com> wrote:
>> >>>>
>> >>>> Hello,
>> >>>>
>> >>>> Since a few months, I started developing Magento 2 shops in NetBeans
>> 8.2 and 10.0 . I've noticed the background scanning of such projects takes
>> a long time and stays on 50%.
>> >>>>
>> >>>> This is after I've performed a composer install to have a /vendor
>> folder with all the Magento 2 packages.
>> >>>>
>> >>>> I don't have this problem when building something on Zend Framework
>> 2/3 or symfony 2+.
>> >>>>
>> >>>> Do more users experience this?
>> >>>>
>> >>>> NB I'm using a laptop with SSD's.
>> >>>>
>> >>>> Regards,
>> >>>> Mondane
>> >>
>> >>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
>> For additional commands, e-mail: users-help@netbeans.apache.org
>>
>> For further information about the NetBeans mailing lists, visit:
>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>
>>

Re: [PHP] NB8.2 / NB10.0 long background scanning - Netbeans tunning guide

Posted by Geertjan Wielenga <ge...@googlemail.com.INVALID>.
Maybe you can tell us step by step how to replicate your scenario.

Gj

On Fri, Jan 4, 2019 at 9:26 AM Emilian Bold <em...@gmail.com> wrote:

> You could take some thead dump every now and then and see which class
> is running. Profiling the IDE could also show this.
>
> There are also various logs where you could increase the log level
> once you figure out which classes / packages to look further into.
>
> --emi
>
> http://coolbeans.xyz/ - CoolBeans: An IDE for Java, JavaEE, PHP and more!
>
> On Fri, Jan 4, 2019 at 10:24 AM Mondane Woodworker
> <mo...@gmail.com> wrote:
> >
> > I've tested this approach but it doesn't seem to improve my situation.
> The background scanning is still going on for 20 minutes now. For the other
> projects I've mentioned, this normally takes max. 5 minutes.
> >
> > Can I debug this somehow to help indicate why it's taking so long?
> >
> > Op do 3 jan. 2019 om 17:02 schreef arsi <ar...@chello.sk>:
> >>
> >> Hi,
> >>
> >> The best way to speed up Netbeans is to move the netbeans_cachedir to
> RAM disk.
> >>
> >> On linux:
> >>
> >> Create a directory, for example /media/ramdisk
> >>
> >> Add to /etc/fstab line:
> >>
> >> none /media/ramdisk tmpfs defaults,user,size=2G,mode=0777 0 0
> >>
> >> reboot
> >>
> >> Create new file  /lib/systemd/system/ramdisk.service
> >>
> >> [Unit]
> >> Description=RAM-Disk Manager
> >> Before=umount.target
> >>
> >> [Service]
> >> Type=oneshot
> >> RemainAfterExit=yes
> >> User=root
> >> ExecStart=/usr/bin/rsync -ar /ssd/ramdisk-backup/ /media/ramdisk/
> >> ExecStop=/usr/bin/rsync -ar /media/ramdisk/ /ssd/ramdisk-backup/
> >>
> >> [Install]
> >> WantedBy=multi-user.target
> >>
> >> Replace /ssd/ramdisk-backup/ with a location on the HDD where the
> contents of the RAM disk will be saved when the computer is shut down..
> >>
> >>
> >> sudo apt install rsync
> >>
> >> sudo systemctl enable ramdisk.service
> >>
> >> Menu Netbeans -> About -> Cache directory
> >> And turn off netbeans.
> >>
> >> copy all directories from Cache directory to /media/ramdisk except
> mavencachedirs and mavenindex.
> >>
> >> For the mavencachedirs and mavenindex, create a symlink. The size of
> the two directories are huge.
> >>
> >> sudo rsync -ar /media/ramdisk/ /ssd/ramdisk-backup/  first backup...
> >>
> >> sudo systemctl start ramdisk.service
> >>
> >> now ...netbeans_dir/etc/netbeans.conf
> >>
> >> netbeans_default_cachedir="/media/ramdisk"
> >>
> >>
> >> Run netbeans and enjoy the speed :)
> >>
> >> ArSi
> >>
> >> ________________________________
> >> From: Mondane Woodworker <mo...@gmail.com>
> >> Sent: Thursday, January 03, 2019 3:18PM
> >>
> >> Cc: Users <us...@netbeans.incubator.apache.org>
> >> Subject: Re: [PHP] NB8.2 / NB10.0 long background scanning Magento 2
> projects
> >>
> >> Excluding the vendor folder is not really an option as I need NetBeans
> to know which classes are available. From the video, I added nodejs and
> node_modules to the ignored files pattern. I'll look into the magento
> modules to see if more can be ignored, I've ignored tests already, this
> saves ~8000 files
> >>
> >> Op do 3 jan. 2019 om 12:25 schreef Geertjan Wielenga <
> geertjan.wielenga@googlemail.com>:
> >>>
> >>> Maybe you can exclude the 'vendor' folder from scanning as explained
> here:
> >>>
> >>> https://www.youtube.com/watch?v=iBCid5KQDA8
> >>>
> >>> Gj
> >>>
> >>> On Thu, Jan 3, 2019 at 12:23 PM Mondane Woodworker <
> mondane.woodworker@gmail.com> wrote:
> >>>>
> >>>> Hello,
> >>>>
> >>>> Since a few months, I started developing Magento 2 shops in NetBeans
> 8.2 and 10.0 . I've noticed the background scanning of such projects takes
> a long time and stays on 50%.
> >>>>
> >>>> This is after I've performed a composer install to have a /vendor
> folder with all the Magento 2 packages.
> >>>>
> >>>> I don't have this problem when building something on Zend Framework
> 2/3 or symfony 2+.
> >>>>
> >>>> Do more users experience this?
> >>>>
> >>>> NB I'm using a laptop with SSD's.
> >>>>
> >>>> Regards,
> >>>> Mondane
> >>
> >>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: users-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>

Re: [PHP] NB8.2 / NB10.0 long background scanning - Netbeans tunning guide

Posted by Emilian Bold <em...@gmail.com>.
You could take some thead dump every now and then and see which class
is running. Profiling the IDE could also show this.

There are also various logs where you could increase the log level
once you figure out which classes / packages to look further into.

--emi

http://coolbeans.xyz/ - CoolBeans: An IDE for Java, JavaEE, PHP and more!

On Fri, Jan 4, 2019 at 10:24 AM Mondane Woodworker
<mo...@gmail.com> wrote:
>
> I've tested this approach but it doesn't seem to improve my situation. The background scanning is still going on for 20 minutes now. For the other projects I've mentioned, this normally takes max. 5 minutes.
>
> Can I debug this somehow to help indicate why it's taking so long?
>
> Op do 3 jan. 2019 om 17:02 schreef arsi <ar...@chello.sk>:
>>
>> Hi,
>>
>> The best way to speed up Netbeans is to move the netbeans_cachedir to RAM disk.
>>
>> On linux:
>>
>> Create a directory, for example /media/ramdisk
>>
>> Add to /etc/fstab line:
>>
>> none /media/ramdisk tmpfs defaults,user,size=2G,mode=0777 0 0
>>
>> reboot
>>
>> Create new file  /lib/systemd/system/ramdisk.service
>>
>> [Unit]
>> Description=RAM-Disk Manager
>> Before=umount.target
>>
>> [Service]
>> Type=oneshot
>> RemainAfterExit=yes
>> User=root
>> ExecStart=/usr/bin/rsync -ar /ssd/ramdisk-backup/ /media/ramdisk/
>> ExecStop=/usr/bin/rsync -ar /media/ramdisk/ /ssd/ramdisk-backup/
>>
>> [Install]
>> WantedBy=multi-user.target
>>
>> Replace /ssd/ramdisk-backup/ with a location on the HDD where the contents of the RAM disk will be saved when the computer is shut down..
>>
>>
>> sudo apt install rsync
>>
>> sudo systemctl enable ramdisk.service
>>
>> Menu Netbeans -> About -> Cache directory
>> And turn off netbeans.
>>
>> copy all directories from Cache directory to /media/ramdisk except mavencachedirs and mavenindex.
>>
>> For the mavencachedirs and mavenindex, create a symlink. The size of the two directories are huge.
>>
>> sudo rsync -ar /media/ramdisk/ /ssd/ramdisk-backup/  first backup...
>>
>> sudo systemctl start ramdisk.service
>>
>> now ...netbeans_dir/etc/netbeans.conf
>>
>> netbeans_default_cachedir="/media/ramdisk"
>>
>>
>> Run netbeans and enjoy the speed :)
>>
>> ArSi
>>
>> ________________________________
>> From: Mondane Woodworker <mo...@gmail.com>
>> Sent: Thursday, January 03, 2019 3:18PM
>>
>> Cc: Users <us...@netbeans.incubator.apache.org>
>> Subject: Re: [PHP] NB8.2 / NB10.0 long background scanning Magento 2 projects
>>
>> Excluding the vendor folder is not really an option as I need NetBeans to know which classes are available. From the video, I added nodejs and node_modules to the ignored files pattern. I'll look into the magento modules to see if more can be ignored, I've ignored tests already, this saves ~8000 files
>>
>> Op do 3 jan. 2019 om 12:25 schreef Geertjan Wielenga <ge...@googlemail.com>:
>>>
>>> Maybe you can exclude the 'vendor' folder from scanning as explained here:
>>>
>>> https://www.youtube.com/watch?v=iBCid5KQDA8
>>>
>>> Gj
>>>
>>> On Thu, Jan 3, 2019 at 12:23 PM Mondane Woodworker <mo...@gmail.com> wrote:
>>>>
>>>> Hello,
>>>>
>>>> Since a few months, I started developing Magento 2 shops in NetBeans 8.2 and 10.0 . I've noticed the background scanning of such projects takes a long time and stays on 50%.
>>>>
>>>> This is after I've performed a composer install to have a /vendor folder with all the Magento 2 packages.
>>>>
>>>> I don't have this problem when building something on Zend Framework 2/3 or symfony 2+.
>>>>
>>>> Do more users experience this?
>>>>
>>>> NB I'm using a laptop with SSD's.
>>>>
>>>> Regards,
>>>> Mondane
>>
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Re: [PHP] NB8.2 / NB10.0 long background scanning - Netbeans tunning guide

Posted by Mondane Woodworker <mo...@gmail.com>.
I've tested this approach but it doesn't seem to improve my situation. The
background scanning is still going on for 20 minutes now. For the other
projects I've mentioned, this normally takes max. 5 minutes.

Can I debug this somehow to help indicate why it's taking so long?

Op do 3 jan. 2019 om 17:02 schreef arsi <ar...@chello.sk>:

> Hi,
>
> The best way to speed up Netbeans is to move the netbeans_cachedir to RAM
> disk.
>
> On linux:
>
> Create a directory, for example */media/ramdisk*
>
> Add to */etc/fstab* line:
>
> none /media/ramdisk tmpfs defaults,user,size=2G,mode=0777 0 0
>
> ​
> reboot
>
> Create new file * /lib/systemd/system/ramdisk.service*
>
> [Unit]
> Description=RAM-Disk Manager
> Before=umount.target
>
> [Service]
> Type=oneshot
> RemainAfterExit=yes
> User=root
> ExecStart=/usr/bin/rsync -ar /ssd/ramdisk-backup/ /media/ramdisk/
> ExecStop=/usr/bin/rsync -ar /media/ramdisk/ /ssd/ramdisk-backup/
>
> [Install]
> WantedBy=multi-user.target
>
> ​
>
> Replace */ssd/ramdisk-backup/ *with a location on the HDD where the
> contents of the RAM disk will be saved when the computer is shut down..
>
>
> *sudo apt install rsync*
>
> *sudo systemctl enable **ramdisk.service*
>
> Menu Netbeans -> About -> Cache directory
> And turn off netbeans.
>
> copy all directories from Cache directory to */media/ramdisk* except *mavencachedirs
> *and *mavenindex*.
>
> For the *mavencachedirs *and *mavenindex*, create a symlink. The size of
> the two directories are huge.
>
> *sudo rsync -ar /media/ramdisk/ /ssd/ramdisk-backup/  *first backup...
>
> *sudo systemctl start **ramdisk.service*
>
> now ...*netbeans_dir/etc/netbeans.conf*
>
>
> netbeans_default_cachedir="/media/ramdisk"
>
> ​
>
> Run netbeans and enjoy the speed :)
>
> ArSi
>
> ------------------------------
> *From:* Mondane Woodworker <mo...@gmail.com>
> <mo...@gmail.com>
> *Sent:* Thursday, January 03, 2019 3:18PM
>
> *Cc:* Users <us...@netbeans.incubator.apache.org>
> <us...@netbeans.incubator.apache.org>
> *Subject:* Re: [PHP] NB8.2 / NB10.0 long background scanning Magento 2
> projects
>
> Excluding the vendor folder is not really an option as I need NetBeans to
> know which classes are available. From the video, I added nodejs and
> node_modules to the ignored files pattern. I'll look into the magento
> modules to see if more can be ignored, I've ignored tests already, this
> saves ~8000 files
>
> Op do 3 jan. 2019 om 12:25 schreef Geertjan Wielenga <
> geertjan.wielenga@googlemail.com>:
>
>> Maybe you can exclude the 'vendor' folder from scanning as explained
>> here:
>>
>> https://www.youtube.com/watch?v=iBCid5KQDA8
>>
>> Gj
>>
>> On Thu, Jan 3, 2019 at 12:23 PM Mondane Woodworker <
>> mondane.woodworker@gmail.com> wrote:
>>
>>> Hello,
>>>
>>> Since a few months, I started developing Magento 2 shops in NetBeans 8.2
>>> and 10.0 . I've noticed the background scanning of such projects takes a
>>> long time and stays on 50%.
>>>
>>> This is after I've performed a composer install to have a /vendor folder
>>> with all the Magento 2 packages.
>>>
>>> I don't have this problem when building something on Zend Framework 2/3
>>> or symfony 2+.
>>>
>>> Do more users experience this?
>>>
>>> NB I'm using a laptop with SSD's.
>>>
>>> Regards,
>>> Mondane
>>>
>>
>

Re: [PHP] NB8.2 / NB10.0 long background scanning - Netbeans tunning guide

Posted by arsi <ar...@chello.sk>.
Hi,

The best way to speed up Netbeans is to move the netbeans_cachedir to 
RAM disk.

On linux:

Create a directory, for example */media/ramdisk*

Add to */etc/fstab* line:

|none /media/ramdisk tmpfs defaults,user,size=2G,mode=0777 0 0 |

​
reboot

Create new file */lib/systemd/system/ramdisk.service*
*
*

|[Unit] Description=RAM-Disk Manager Before=umount.target [Service] 
Type=oneshot RemainAfterExit=yes User=root ExecStart=/usr/bin/rsync -ar 
/ssd/ramdisk-backup/ /media/ramdisk/ ExecStop=/usr/bin/rsync -ar 
/media/ramdisk/ /ssd/ramdisk-backup/ [Install] WantedBy=multi-user.target |

​

Replace */ssd/ramdisk-backup/ *with a location on the HDD where the 
contents of the RAM disk will be saved when the computer is shut down..


*sudo apt install rsync*

*sudo systemctl enable ***ramdisk.service**

Menu Netbeans -> About -> Cache directory
And turn off netbeans.

copy all directories from Cache directory to */media/ramdisk* except 
*mavencachedirs *and *mavenindex*.

For the *mavencachedirs *and *mavenindex*, create a symlink. The size of 
the two directories are huge.

*sudo rsync -ar /media/ramdisk/ /ssd/ramdisk-backup/ *first backup...

*sudo systemctl start ***ramdisk.service**

now ...*netbeans_dir/etc/netbeans.conf*

|netbeans_default_cachedir="/media/ramdisk" |

​

Run netbeans and enjoy the speed :)

ArSi

------------------------------------------------------------------------
*From:* Mondane Woodworker <mo...@gmail.com>
*Sent:* Thursday, January 03, 2019 3:18PM

*Cc:* Users <us...@netbeans.incubator.apache.org>
*Subject:* Re: [PHP] NB8.2 / NB10.0 long background scanning Magento 2 
projects

> Excluding the vendor folder is not really an option as I need NetBeans 
> to know which classes are available. From the video, I added nodejs 
> and node_modules to the ignored files pattern. I'll look into the 
> magento modules to see if more can be ignored, I've ignored tests 
> already, this saves ~8000 files
>
> Op do 3 jan. 2019 om 12:25 schreef Geertjan Wielenga 
> <geertjan.wielenga@googlemail.com 
> <ma...@googlemail.com>>:
>
>     Maybe you can exclude the 'vendor' folder from scanning as
>     explained here:
>
>     https://www.youtube.com/watch?v=iBCid5KQDA8
>
>     Gj
>
>     On Thu, Jan 3, 2019 at 12:23 PM Mondane Woodworker
>     <mondane.woodworker@gmail.com
>     <ma...@gmail.com>> wrote:
>
>         Hello,
>
>         Since a few months, I started developing Magento 2 shops in
>         NetBeans 8.2 and 10.0 . I've noticed the background scanning
>         of such projects takes a long time and stays on 50%.
>
>         This is after I've performed a composer install to have a
>         /vendor folder with all the Magento 2 packages.
>
>         I don't have this problem when building something on Zend
>         Framework 2/3 or symfony 2+.
>
>         Do more users experience this?
>
>         NB I'm using a laptop with SSD's.
>
>         Regards,
>         Mondane
>

Re: [PHP] NB8.2 / NB10.0 long background scanning Magento 2 projects

Posted by Mondane Woodworker <mo...@gmail.com>.
Excluding the vendor folder is not really an option as I need NetBeans to
know which classes are available. From the video, I added nodejs and
node_modules to the ignored files pattern. I'll look into the magento
modules to see if more can be ignored, I've ignored tests already, this
saves ~8000 files

Op do 3 jan. 2019 om 12:25 schreef Geertjan Wielenga <
geertjan.wielenga@googlemail.com>:

> Maybe you can exclude the 'vendor' folder from scanning as explained here:
>
> https://www.youtube.com/watch?v=iBCid5KQDA8
>
> Gj
>
> On Thu, Jan 3, 2019 at 12:23 PM Mondane Woodworker <
> mondane.woodworker@gmail.com> wrote:
>
>> Hello,
>>
>> Since a few months, I started developing Magento 2 shops in NetBeans 8.2
>> and 10.0 . I've noticed the background scanning of such projects takes a
>> long time and stays on 50%.
>>
>> This is after I've performed a composer install to have a /vendor folder
>> with all the Magento 2 packages.
>>
>> I don't have this problem when building something on Zend Framework 2/3
>> or symfony 2+.
>>
>> Do more users experience this?
>>
>> NB I'm using a laptop with SSD's.
>>
>> Regards,
>> Mondane
>>
>

Re: [PHP] NB8.2 / NB10.0 long background scanning Magento 2 projects

Posted by Geertjan Wielenga <ge...@googlemail.com.INVALID>.
Maybe you can exclude the 'vendor' folder from scanning as explained here:

https://www.youtube.com/watch?v=iBCid5KQDA8

Gj

On Thu, Jan 3, 2019 at 12:23 PM Mondane Woodworker <
mondane.woodworker@gmail.com> wrote:

> Hello,
>
> Since a few months, I started developing Magento 2 shops in NetBeans 8.2
> and 10.0 . I've noticed the background scanning of such projects takes a
> long time and stays on 50%.
>
> This is after I've performed a composer install to have a /vendor folder
> with all the Magento 2 packages.
>
> I don't have this problem when building something on Zend Framework 2/3 or
> symfony 2+.
>
> Do more users experience this?
>
> NB I'm using a laptop with SSD's.
>
> Regards,
> Mondane
>