Troubleshooting High CPU or memory usage on your K2 server

  • 16 February 2021
  • 0 replies
  • 418 views

Badge +5
 

Troubleshooting High CPU or memory usage on your K2 server

KB003630

PRODUCT
K2 Cloud
K2 Five

 

Issue

You may experience an excessively slow K2 environment if your K2HostServer service or the IIS worker processes associated with the K2 smartforms application pool consume a high level of resources on your K2 server. This may affect all the CPU, all the RAM memory, and other times both.

 

 

Resolution

Change the SmartForms application pool recycling time setting:

  1. Open IIS Manager.
  2. Click View Application Pools.
  3. Select your K2 smartforms application pool.
  4. Click Recycling…
  5. Click Specific time(s):
  6. Set the time to a time where your server is least used, such as 1:00 AM.
  7. Click Next and finish the recycling configuration.

For more information see IIS Best Practices.

The following cache settings are available in the K2 Runtime web.config file typically found at: C:Program FilesK2K2 smartforms RuntimeWeb.config. For more information see K2 Runtime web.config File Caching Settings.

Change these SmartForms runtime web config refresh cache settings:

  • Set Forms.Runtime.Controllers.Cache.InitialDuration to 3600
  • Set Forms.Runtime.Events.Cache.InitialDuration to 3600

You can make these values higher or lower depending on your environment needs. A higher value will refresh the cache more often, which results in better performance, but will use more memory on the server.

 


0 replies

Be the first to reply!

Reply