-
1. Re: P360 v10.0 database tempdb does not stop growing in filesize
Ryan Jenson Jan 6, 2021 12:53 PM (in response to Arjen Martens)Hi Arjen,
I've experienced the same issue on our PIM SQL servers (dev and production, although it's more prevalent on production). SQL tempdb files will be emptied out upon restart of the MS SQL service but this isn't always an optimal solution.
There are some settings changes that can help prevent tempdb inflation:
(assuming GUI use)
1. In "[Right click] > Properties > Options > Recovery model" make sure that "Simple" is selected
2. In "[Right click] > Properties > Files" you should be able to review the auto-sizing increments and limits. You may want to investigate the auto-sizing that best fits your needs.
Attached I have a script of simple SQL functions that aid in exploring the situation further. PLEASE REVIEW THE FUNCTIONS BEFORE RUNNING ANY OF THEM!
Normally it is considered bad practice to outright shrink a SQL database due to the vicious cycle of having to re-index which then expands the file size and, thus, having to shrink again. Tempdbs are different however in that this rule isn't exactly applicable. I have had success shrinking the tempdb database, files, and logs without consequence (so long as a large task isn't currently running).
To directly answer your questions:
1. It is neither normal nor abnormal, it's not uncommon to happen from time to time but it should not be a frequent occurrence.
2. Infinite database growth (for any of the databases) is a setting that can be changed. If a database is growing infinitely you may just have the default SQL settings active.
Hopefully some of these pointers were able to help. It would be best for you to discuss any actions with your SQL Administrator before attempting. From what I know of PIM SQL; there aren't any specific precautions regarding the tempdb aside from standard SQL best practices.
-
2. Re: P360 v10.0 database tempdb does not stop growing in filesize
Arjen Martens Jan 7, 2021 7:46 AM (in response to Ryan Jenson)Thanks for your swift reply Ryan, much appreciated!
Kind of "glad" to see that you recognize these challenges, at least to have some common ground.
The settings you have been proposing are known to us and used, however we reckon we could turn off autogrow indeed to see what happens when tempdb hits it filesize limit. At the moment SQL server thinks it can autogrow with 2048MB a file until infinity and it tries to do so while the remaning disk space is actually insufficient. Hence it might work when we up front tell the system that it cannot autogrow and hence forcing it to drop records for new records instead -- so thanks for the insights into this experiment already.
Also thanks for your scripts attached, we will scan through these with care!
At some point in time we were wondering whether we had to make schedule a bat file to stop-start P360 server service instead of the SQL database, but even that could cause some real troubles when automated....
We will try out some stuff and revert, thanks again.
Any other tips from other SMEs out here are still welcome ofcourse!
-
3. Re: P360 v10.0 database tempdb does not stop growing in filesize
Andreas Bühler Jan 11, 2021 4:50 AM (in response to Arjen Martens)Hi Arjen, Hi Ryan,
we're currently investigating this issue, if not already done, please open a support case with our support team.
Arjen, please add any exception / error message to the support ticket. Especially with the limited auto grow.
The internal issue number is HPM-54341 just in case you want to mention it to the support representatives
Be assured we're working on this issue top priority!
Can you also reproduce it on a dev or qa system?
Thank you
Andreas
-
4. Re: P360 v10.0 database tempdb does not stop growing in filesize
sai manoj pappu Jan 11, 2021 9:20 AM (in response to Arjen Martens)Hi Arjen,
Can you also share us the MS SQL version please.
Thanks,
Sai Manoj. -
5. Re: P360 v10.0 database tempdb does not stop growing in filesize
Arjen Martens Jan 13, 2021 8:05 AM (in response to sai manoj pappu)Hi Sai Manoj,
MSSQL14
and
SSMS v17.2
-
6. Re: P360 v10.0 database tempdb does not stop growing in filesize
Arjen Martens Jan 13, 2021 8:09 AM (in response to Andreas Bühler)Hi abuehler,
Thanks for your note of importance!
We will be opening a support case on your request, whilst we cannot provide any error messages or so since there is none. This seems to be normal operation until the disk is full, with all the effects that brings with it.
We cannot reproduce this directly on any other environment (DEV,TST,UAT) since these environments are not under daily load of data maintenance activities like PROD env is..
Thanks again!
P.S.
We reckon that setting up server-side cleanup jobs for PIM server processes and soft deletes could maybe help to reduce the stress on the DB, but not sure whether this will improve or worsen the tempdb utilization..
-
7. Re: P360 v10.0 database tempdb does not stop growing in filesize
Andreas Bühler Jan 14, 2021 1:03 AM (in response to Arjen Martens)We were more looking for the full version number, including the hotfixes of sql server.
However, we most likely found the reason for the issue and will provide corresponding ebf's once confirmed.
The support team will keep you updated through the support ticket.
-
8. Re: P360 v10.0 database tempdb does not stop growing in filesize
Andreas Bühler Jan 14, 2021 1:04 AM (in response to Arjen Martens)Setting up the cleanup jobs is always a good idea actually - but it's not related to this issue.