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...Administration ...Administration ...Please help - HTML module will not save changesPlease help - HTML module will not save changes
Previous
 
Next
New Post
12/17/2010 12:15 PM
 
It appears that you have several issues, all of which perhaps may stem from the ever growing size of the database. It is possible that the database's EventLog table is rapidly filling up with the logging of errors such as the one that occurred when you tried to access the Admin --> Event Viewer. The database's SiteLog table is also a good candidate for easily becomming much too large, particularly if you have an active site and are retaining site visit information for more than a few days or if the scheduled job to purge this table is not running propery.  Likewise with the ScheduleHistory table. There is also the database's transaction log which can grow rapidly if database backups are not done regularly and the transaction log truncated.

Here's a link to a recent blog post by Sebastian which discusses database maintenance such as truncating the EventLog and SiteLog tables, backup and truncation of the database transaction log: http://www.dotnetnuke.com/Resources/B...

Regarding the error that was shown when you tried to access the Event Viewer, it appeared to be related to compression and whitespace filtering. I would suggest that under Host -->Host Settings, Advanced Settings you temporarily set compression to "No Compression" and uncheck the box "Use whitespace filter" to see if that error goes away.

Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
12/17/2010 5:46 PM
 
Thanks Bill. That was exactly what I needed in order to gain some functionality back.

I turned off compression and the whitespace filter. That restored my ability to view the event log on the site.

When I was working through Sebastian's instructions I checked the size of the ScheduleHistory table. It had 268,470 records! This DNN install was a fresh install on 9/17/2010. It looks like that table is being written to constantly... since I truncated it about 50 minutes ago it already has over 150 records in it... thats about 3 records every minute! And they just repeat over and over each minute. Here is what they are...

Schedule ID 04 - DotNetNuke.Services.Log.EventLog.PurgeLogBuffer, DOTNETNUKE
Schedule ID 10 - DotNetNuke.Services.ModuleCache.PurgeModuleCache, DotNetNuke
Schedule ID 11 - DotNetNuke.Services.Messaging.Scheduler.MessagingScheduler, DotNetNuke

I checked out the scheduler and I have a 4 jobs that are set to run every minute. Only the 3 that are reflected above are active...

Purge Users Online (this one is not active)
Purge Log Buffer
Purge Module Cache
Messaging Dispatch

So what is your recommendation on how often these jobs should run? And is this what is killing my logs and db size?

Thanks so much for your help!

Troy
 
New Post
12/17/2010 9:54 PM
 
Troy,

This is indeed a huge ScheduleHistory table! It appears that the Purge Schedule History job has not been enabled to run regularly or is not running properly. Navigate to Host --> Scheduler and be sure that the Purge Schedule History job is enabled. The default frequency is 1 day. Click on the edit pencil beside this job to make changes if necessary.

Regarding the frequency of the Purge Log Buffer, Purge Module Cache and Messaging Dispatch, the 1 minute frequency is the default. I would check that each has a value of 10 or less for the Retain Schedule History setting. Once the Purge Schedule History job is enabled and working, that frequency should not be a problem.

Although it is a bit dated, the following article by Mitchel Sellers should help to explain some of the scheduler jobs and suggest best performance settings: http://www.mitchelsellers.com/blogs/a...

I would also enable the Purge Site Log job with a default frequency of 1 day. How many or over what period of time site log entries are retained is set in Host-->Settings, Advanced Settings, Other Settings.

There is no scheduled job available to purge the EventLog table so that one needs to be either done manually on a regular basis after looking through the Event Viewer for any errors or by running an externally scheduled SQL job. I think Mitchel either had or has a module available for free to do just that.

Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
12/18/2010 2:46 PM
 
I sure do appreciate your help Bill.  Thank you again.

I took a look at the Purge Schedule History job and it is enabled and scheduled to run once a day.  So I looked at the ScheduleHistory table and there is data in the table older than the scheduler said it last ran the Purge Schedule History job.  So I attempted to run it manually.  It didn't give me any errors but it certainly didn't remove any records from the ScheduleHistory table... record count was the same before and after running the job.  The Retain Schedule History setting for the Purge Schedule History job is 60... and there were over 3,300 records in the table after manually running the job.

So I went straight to the stored procedure and attempted to run it manually from SQL Management Studio.  When I kicked it off I was immediately met with the following error...

Msg 9002, Level 17, State 2, Line 1.  The transaction log for database 'lampley' is full. To find out why space in the log cannot be reused, see the log_reuse_wait_desc column in sys.databases

I'm at a loss why the transaction log is full... I run full backups every day and this morning's backup was right on schedule.  The transaction log is supposed to be cleared when a full backup is completed, correct? 

Can I clear the transaction log without running a backup?

I also don't know where to find the sys.databases table to run down what the error message is saying.

Also interesting to note... after running those SQL maintenance tasks yesterday my backup file went down from 25 mb to 2 mb.

Thanks again for your help,

Troy

 
New Post
12/18/2010 2:56 PM
 
Just submitted that last post and I realized the Sebastian addressed the transaction log in his post... I had to skip that piece of the maintenance because I don't have the logname of my transaction log.  I attempted to run the script using 'lampley' (the name of the db) but it failed.  Any ideas how I can dig out the logname? 

I'm hosted with Netwok Solutions.  To say that Network Solutions is less than helpful would be an understatement, I asked them to give me the name of the logfile a few weeks back and the tech told me that it doesn't have a name!  I laughed and asked to be transferred to his supervisor... then the supervisor refused to give it to me because I am not allowed to have access to it!  Rediculous! 

Troy
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Please help - HTML module will not save changesPlease help - HTML module will not save changes


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