Gurus -
I have CDC setup (2008 R2) and the job is set to run continuous. The job calls the cdc scan procedure with default parameters
maxtran = 500
maxscans = 10
continuous = 5
pollinginterval = 5
Attached are the properties of the sys.dm_db_file_space_usage
database_id file_id
unallocated_extent_page_count version_store_reserved_page_count
user_object_reserved_page_count internal_object_reserved_page_count
mixed_extent_page_count
2 1 506280
0 592
4288 840
2 3 506192
0 576
4488 744
2 4 506400
0 616
4232 752
2 5 506472
0 512
4288 728
sys.dm_db_task_space_usage for session 54 (cdc job session)
session_id request_id exec_context_id database_id user_objects_alloc_page_count user_objects_dealloc_page_count internal_objects_alloc_page_count internal_objects_dealloc_page_count54 0 0 2 92482 92481 434136 0
sys.dm_db_session_space_usage for session 54 (cdc job session)
session_id database_id user_objects_alloc_page_count user_objects_dealloc_page_count internal_objects_alloc_page_count internal_objects_dealloc_page_count54 2 0 0 0 0
In "sys.dm_db_task_space_usage" the "internal_object_alloc_page_count" column increases gradually and the "internal_object_dealloc_page_count"
doesnot change.
This intern means that the session uses space in the tempdb that gradually increases. It used to be in MB's now have moved to GB's.
But this doesnot add up to the output from sys.dm_db_file_space_usage (429840 in dm_db_task_space_usage is much higher that the sum of the
four rows for internal_object_reserved_page_count column in sys.dm_db_file_space_usage) -Yes I have 4 tempdb data files
Questions:-
1) Why is the dealloc not happening for the CDC job - (It deallocates for other processes that are continuously running like replication
jobs in our system)
2) Why is the counts not making sense
Appreciate help understand!
Thanks