CPU Spikes

wirot thongchoojai asked on June 26, 2025 08:12

The web server with Kentico 12 Portal Engine installed is experiencing CPU spikes. When I performed a CPU dump, it indicated that the cause was related to code at the section responsible for creating tags. How can I investigate further to understand why tag creation is causing CPU spikes, and how is regular expression (regex) related to tags?

System.Text.RegularExpressions.Regex.Match CMS.DocumentEngine.DocumentTagInfoProvider.GetDistinctTags CMS.DocumentEngine.DocumentTagInfoProvider.AddTagsInternal

CMS.DocumentEngine.Taxonomy.DocumentTagCreator.CreateTags

1f0e8202f68 30000000 Sec No 29976 Sec 53 200 POST /CMSModules/Content/CMSDesk/Edit/Edit.aspx action=new&classid=6515&parentnodeid=32856&parentculture=th-TH

RunningSince = 29976 Sec

Recent Answers


vasu kentico answered on July 9, 2025 07:34 (last edited on July 9, 2025 07:35)

Check long running queries in SQL Server: SELECT * FROM sys.dm_exec_requests WHERE status = 'running' AND total_elapsed_time > 10000000

0 votesVote for this answer Mark as a Correct answer

vasu yerramsetti answered on July 9, 2025 07:36

Try the following troubleshooting steps -

  1. Check long running queries in SQL Server: SELECT * FROM sys.dm_exec_requests WHERE status = 'running' AND total_elapsed_time > 10000000

  2. Review Custom implementation - If you have any custom logic tied to document creation (e.g., DocumentEvents.Insert.After), make sure it's not triggering excessive tag generation

  3. Check for Large Number of Tags - Query the CMS_Tag and CMS_DocumentTag tables to see if there’s an abnormal number of records. If yes, then add Indexes especially on TagName, TagGroupID, DocumentID, and TagID in related tables

  4. Check Event Log in Kentico - Navigate to System > Event Log to see more detailed error or warning entries for this request

  5. Check Kentico Hotfix - If this is a known bug in your version of Kentico 12 PE, consider applying the latest hotfix or upgrading to the latest supported version

https://docs.kentico.com/k12sp/installation/hotfix-instructions-kentico-12

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.