Oracle JDeveloper keeps on creating temp, cache and history files. So as a best practice to boost up your JDeveloper performance keep deleting the files frequently. Every time you can't go these directories to manually delete the files, so you can assign hotkeys to perform this delete operation. Follow the below steps to setup hotkeys:
- Goto run command and type prefetch and hit the OK button
- Goto run command and type prefetch and hit the OK button
- Copy the location of this directory, like in our case the below location
- Goto Help -> About -> Properties Tab and search for ide.system.dir this is system directory
In the system directory, there are two directories which need to be cleaned: .diagnostics and .history
- Now create the following batch file (.bat) with above-copied directories. Make sure you are using correct system directory in the below lines .
del %temp%\*.* /F /S /Q del C:\Windows\Prefetch\*.* /F /S /Q del D:\Profiles\gurpsing\AppData\Roaming\JDeveloper\system12.2.1.3.42.170820.0914\.diagnostics\*.* /F /S /Q del D:\Profiles\gurpsing\AppData\Roaming\JDeveloper\system12.2.1.3.42.170820.0914\.history\*.* /F /S /Q del C:\Windows\Temp\*.* /F /S /Q echo temp_cleared pause
- Above batch file uses del command to delete the files in specified directories using options /F /S /Q
- Now save this file as clean.bat at any location
- Goto desktop and right click -> New -> Shorcut
- Once the shortcut has been created, right click and go to properties and place the cursor in the shortcut text box and press the keys that you want to assign to this shortcut as hotkeys, as here I am using Ctrl + Alt + D
- Click the OK button to finish.
- Now every time you feel your system slow, you can press Ctrl + Alt + D to clear the cache.
Comments
Post a Comment