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.woodwor...@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.wiele...@googlemail.com
<mailto:geertjan.wiele...@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.woodwor...@gmail.com
<mailto:mondane.woodwor...@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