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 <[email protected]>: > 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 <[email protected]> > <[email protected]> > *Sent:* Thursday, January 03, 2019 3:18PM > > *Cc:* Users <[email protected]> > <[email protected]> > *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 < > [email protected]>: > >> 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 < >> [email protected]> 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 >>> >> >
