Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Performance and...Performance and...Site running slowly -  lots of General ErrorsSite running slowly - lots of General Errors
Previous
 
Next
New Post
1/29/2011 6:39 AM
 
We have been having problems with our site running slowly for about a week....  there were a lot of General exceptions (timeout on queries.) in the event log file to do with Schedule.

The server was on 5.4 then I upgraded to 5.6 to ensure latest version.

I truncated the various log files including 

truncate table SearchItemWordPosition
DELETE SearchItemWord
DELETE SearchWord
DELETE SearchItem

Since then I still have a lot of of General Exceptions -

AssemblyVersion: 5.6.1
PortalID: -1
PortalName
UserID: -1
UserName
ActiveTabID: -1
ActiveTabName
RawURL
AbsoluteURL
AbsoluteURLReferrer
UserAgent
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: a205f43d-bc93-455d-8d74-8c04c44c480e
InnerException: Violation of UNIQUE KEY constraint 'IX_SearchItemWord'. Cannot insert duplicate key in object 'dbo.SearchItemWord'. The statement has been terminated.
FileName
FileLineNumber: 0
FileColumnNumber: 0
Method: System.Data.SqlClient.SqlConnection.
StackTrace
Message: System.Data.SqlClient.SqlException: Violation of UNIQUE KEY constraint 'IX_SearchItemWord'. Cannot insert duplicate key in object 'dbo.SearchItemWord'. The statement has been terminated.at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection)at System.Data.SqlClient.SqlInternalConnection. (SqlException exception, Boolean breakConnection)at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)at System.Data.SqlClient.SqlDataReader.ConsumeMetaData()at System.Data.SqlClient.SqlDataReader.get_MetaData()at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)at System.Data.SqlClient.SqlCommand.ExecuteScalar()at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteScalar(SqlConnection connection, CommandType commandType, String commandText, SqlParameter[] commandParameters)at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteScalar(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters)at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteScalar(String connectionString, String spName, Object[] parameterValues)at DotNetNuke.Data.SqlDataProvider.AddSearchItemWord(Int32 SearchItemId, Int32 SearchWordsID, Int32 Occurrences)at DotNetNuke.Services.Search.SearchDataStore.AddIndexWords(Int32 indexId, SearchItemInfo searchItem, String language)at DotNetNuke.Services.Search.SearchDataStore.StoreSearchItems(SearchItemInfoCollection SearchItems)
Source:


ALSO

AssemblyVersion: 5.6.1
PortalID: -1
PortalName
UserID: -1
UserName
ActiveTabID: -1
ActiveTabName
RawURL
AbsoluteURL
AbsoluteURLReferrer
UserAgent
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 43cf1ec4-9bb6-4e0d-9904-0937b3988828
InnerException: Transaction (Process ID 56) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.
FileName
FileLineNumber: 0
FileColumnNumber: 0
Method: System.Data.SqlClient.SqlConnection.
StackTrace
Message: System.Data.SqlClient.SqlException: Transaction (Process ID 56) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection)at System.Data.SqlClient.SqlInternalConnection. (SqlException exception, Boolean breakConnection)at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(SqlConnection connection, CommandType commandType, String commandText, SqlParameter[] commandParameters)at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters)at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, String spName, Object[] parameterValues)at DotNetNuke.Data.SqlDataProvider.AddSearchItemWordPosition(Int32 SearchItemWordID, String ContentPositions)at DotNetNuke.Services.Search.SearchDataStore.AddIndexWords(Int32 indexId, SearchItemInfo searchItem, String language)at DotNetNuke.Services.Search.SearchDataStore.StoreSearchItems(SearchItemInfoCollection SearchItems)
Source

Any help please?
 
New Post
1/29/2011 8:35 AM
 
the first error prevents your searchitemword table from growing extremely with duplicate entries. It might cause the second one as well. There seems to be some duplication in content, which needs more indepth investigation.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
1/30/2011 9:50 AM
 
Hi Sebastian,

Current table sizes are below

SearchItemWordPosition 256900 
SearchItemWord 171757 
SearchWord 17100 
ModuleSettings 11388 
SearchItem 6573 

First number shows the rows...Searchitemwordposition is double what it was before I ran your recommended cleanup script on the post below

http://www.dotnetnuke.com/Resources/F... 

delete SearchItemWordPosition where SearchItemWordId in (select SearchItemWordId from SearchItemWord where SearchItemID in (select SearchItemId from SearchItem))  
delete SearchWord where SearchWordsId in (select SearchWordsId from SearchItemWord where SearchItemID in (select SearchItemId from SearchItem))  
delete SearchItemWord where SearchItemId in (select SearchItemId from SearchItem) delete SearchItem

Any thoughts on how to fix these tables?

Many thanks,

Sean


 
New Post
1/30/2011 11:33 AM
 
I am not sure, whether there are still indexing issues, does your SearchItemWordPosition table contains a number of same items just differing by +/-1 in Position column? I suggest clearing the search tables (http://www.deutschnetnuke.de/tabid/134/Default.aspx) and re-index your site.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
1/30/2011 12:24 PM
 
Followed your instructions but before doing so I I temporarily disabled the new version of AVG that I install recently....and this had a dramatic effect on performance...pages became much more responsive especially the Login page which was slow and even inaccessible up till now. When I reactivated AVG the problems returned.....Also note that DNN4 sites running on the same machine do not have any performance problems or accessiblity of the Login page... Any thoughts on this?
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Performance and...Performance and...Site running slowly -  lots of General ErrorsSite running slowly - lots of General Errors


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out