Quantcast
Channel: Virtual Machine Manager – General forum
Viewing all articles
Browse latest Browse all 728

SCVMM jobs cleanup-- 40K jobs exist in history. Best way to clear older history jobs?? causing performance issues.

$
0
0

SCVMM for VDI (citrix xendesktop) is managing 6000+ VM's and 200+ Hyper-V host.

Currently the settings for 'Garbage Collect' is set to 2 days.

Still the jobs history shows 40K + jobs. Due to that the PERFORMANCE OF ADMIN CONSOLE IS TOO SLOW. Ideally, expecting the older job history to be cleared after 2 days which is not currently happening.

SCVMM version is 2012 on windws 2008 R2.

I am now reducing the 'Garbage Collect' to TaskGC= 1 day.

If it still wont clear, how we can manually clear from DB? 

I came across this blog and running the below command, will it clear all the old job history previous to the DATE that we mention??

http://blogs.technet.com/b/mbriggs/archive/2009/12/08/scvmm-service-may-consume-high-memory-or-cpu-utilization.aspx

DECLARE @CutoffDateTime datetime SELECT @= '31/8/20015' EXECUTE [VirtualManagerDB].[dbo].prc_TR_GarbageCollect @CutoffDateTime

So, as per above command, i should be able to clear all jobs history before 31st AUG? Correct me?

Does the above command work irrespective the sql version that we are using? i am using sql 2008 R2.

Should i also need to run the below ones? or just the above should be OK to clear all jobs history before 31st AUG

delete from [VirtualManagerDB].[dbo].[tbl_TR_DeletedObject]

delete from [VirtualManagerDB].[dbo].[tbl_TR_AuditTrail]

delete from [VirtualManagerDB].[dbo].[tbl_TR_SubtaskTrail]

delete from [VirtualManagerDB].[dbo].[tbl_TR_TaskTrail]

delete from [tbl_PCMT_PerfHistory_Raw]

delete from [tbl_PCMT_PerfHistory_Hourly]

delete from [tbl_PCMT_PerfHistory_Daily]



Viewing all articles
Browse latest Browse all 728

Trending Articles