Blog

After the installation of Visual Studio 2017 latest edition, I have been watching memory consumption.  Node.exe seems to be consistently around 500-700mb of RAM!.  I did find this post which helps explain what is going on.

“The node process you are seeing is powering the JavaScript language service. You will see this process appear anytime you edit a JS file, TS file, or any file with JS/TS inside (html, cshtml, etc). This process is what powers IntelliSense, code navigation, formatting, and other editing features and it does this by analyzing the entire context of your project. If you have a lot of .js files in your project, this can get large, but more than likely the issue is that you have a lot of library files that are being analyzed. By default, we will scan every .js/.ts file in your project. But you can override this behavior and tune the language service to only focus on your code. To do this create a tsconfig.json in your project root with the following settings:”

{
"compilerOptions": {
"allowJs": true,
"noEmit": true
},
"exclude": [
"wwwroot/lib" //ignore everything in the lib folder (bootstrap, jquery, etc) // add any other folders with library code here
],
"typeAcquisition": {
"enable": true,
"include": [
"bootstrap"
"jquery" //list libraries you are using here
]
}
}

Another option…

“Disabling the TypeScript extension is a work around for the moment, at least for me. Click Tools, Extensions and Updates, search for "TypeScript" and disable it. Restart Visual Studio.”

Give it a try and let me know how it goes….

 

Reference: https://developercommunity.visualstudio.com/content/problem/27033/nodejs-server-side-javascript-process-consuming-to.html

js

Recently, I was using a 3rd party product that had toolbox items.  All was good after installation, then Visual Studio crashed and my new toolbox items disappeared.  Restarting didn’t help.  I came across the following solution which did solve my issue.

To understand the cause of Toolbox issues and resolve them, perform the following steps:

    1. Open the "%USERPROFILE%\AppData\Local\Microsoft\VisualStudio\14.0" folder and remove all .TBD files.
    2. Run the Registry Editor (regedit.exe).
    3. Locate the following keys:

      "HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\14.0\ToolboxControlsInstaller_AssemblyFoldersExCache"
      "HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\14.0\ToolboxControlsInstallerCache"
    4. Remove these keys with their sub-keys.

    5. Launch Visual Studio 2014 using the following command line:

      In a 32-bit Windows:
      "C:\Program Files\Microsoft Visual Studio 14.0\Common7\IDE\devenv" /ResetSkipPkgs /log "<my_folder>\ActivityLog.xml"
      In a 64-bit Windows:
      "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv" /ResetSkipPkgs /log "<my_folder>\ActivityLog.xml"

    6. Open Visual Studio – relaunch and hopefully all is good.


      toolbox

About Us

Web/Mobile Solutions

Useful Links

Our Contacts

Cincinnati, OH 45069