Test environment is one windows server 2016 running SQL2019 CU18 and SW Archive server.
We are going to use 2 clients to test the upgrade, but at the moment I am the only one accessing the test vault to re-create our templates from scratch and to check all the configuration on the server and client side before starting the real tests.
Vault users are configured as Active Directory and we have a domain.
Domain controllers are not on my resposibility and likely located on a WAN as we are integrating systems with our head company.
Problem:
- PDM dialogs like check-in and file operation like open are VERY SLOW.
TBH our production servers still on 2021SP5.1 are not that good as well and the performances have degraded seriously over the years. (basically the ex admin was hoping the next version would be magically better)
- My user and another one (both members of admin group) login are VERY slow (up to 1 minute including latest version from 2 folders)
- Working on a DRWDOT file (less than 100KB) it takes 30s to open it from the vault, and 15s to display the check-in dialog hanging SW for a few seconds, but when I log in as "ADMIN" it gets A LOT faster: e.g. log in process takes a few seconds and the check-in screen appears in less than 1~2 seconds.
This seems similar to SPR-1031769 (implemented in SW2018)
SOLIDWORKS PDM - Cmd - Check-out: Check out operation in PDM is very much slower (5x times) for normal users as compared to a default admin user *vault specific*
Check out operation in PDM local vault view is very much slower (5x times) for normal users as compared to a default admin user with no group memberships *vault specific*
Please note the customer is preparing for upgrade to 2017 SP3. The issue is the same in 2016 SP4 which they are currently running.
Reproducible in PDM 2017 SP3 using attached customer vault backup and archives
1. Restore the database as a vault and restore the archives (the customer specific hotfix from SPR 1029943 is already applied to this backup)
2. Log in to the local view as user 'watmai' (a typical user with 'complex' permissions)
3. Cancel the prompt for automatic caching
4. Browse to '<vault>\COLLABORATION\TEST\TEST\03_Engineering & Technology'
5. Start an SQL Server Profiler trace for explorer.exe
6. RMB > check-out on '1013900_Perf_Test1.SLDDRW' to build the reference tree and show the check-out dialog
- this will generate approx. 1.6 million reads and take around 30-40 seconds.
7. Log out and in again as Admin, run the same test
- this will generate 2.5 million reads but will complete in around 5-6 seconds (Note that Admin is a member of LOTS of groups)
8. Log out
9. Create a new user (do not copy a user)
10. Do not assign any groups, assign all folder permissions at the root level, and all state permissions for the workflow ‘PCP’
11. Repeat the checkout test as above
- this should generate 250k reads and complete in 4-5 seconds.
This is one example scenario for 'slow' actions for this customer's PDM users.
What I tried:
Before noticing the admin user behaviour I tried various solution from the KB
- Set every DB on SIMPLE backup and cutting SQL transaction logs which were quite big, (up to 25% the size of the DB) and LDF files went from GBs to KBs
- VAULT DB is running on CL150 (SQL2019) no effect changing it to CL140
- ConisioMasterDB is still on CL120 (SQL2014) and I am not sure if I should touch it or not
- rebuilt DB with update statistics index
Customers running SQL Compatibility Level 130 and 140 delays (minutes) when logging in or browsing folders after upgrading to PDM 2022. This issue is only seen for certain PDM users. Activity monitor on the SQL server shows a lot of processes with a SUSPENDED Task State and Wait Type of CXPACKET and CXCONSUMER while SQL runs 'Usr_GetPopupInfo'.
- From SQL Activity monitor no blocks are listed during the client operations (S-076180)SPR-1245044
Explorer hang after login or browsing folders for certain Users on SQL 2019,2017,2016 with CL140 or CL130 - browse works with CL150 -SQL Activity monitor shows suspended calls from 'Usr_GetPopupInfo'
Reproduced with PDM 2022 SP5 and PDM 2023 SP1 ( (B102)) with SQL 2019 (15.0.4178.1) with database Compatibility Level (CL) at (130 and 140).
1. Log into PDM local view
- File Explorer hangs while SQL Activity monitor shows suspended calls from 'Usr_GetPopupInfo'.
3. Browse to another folder
- File Explorer hangs while SQL Activity monitor shows suspended calls from 'Usr_GetPopupInfo'.
Workarounds:
- Run a SQL maintenance plan to 'rebuild' with 'update statistics' on indexes.
- If SQL maintenance does not improve, contact PDM Technical support for instructions to create custom index on the db.documents table.
- If running SQL 2019, switch compatibility level to 150
What I am planning to do:
- Running a trace on the SQL server to look at the differences between the AD user and the admin user.
I never touched a SQL server before so any suggestion on how to look at the trace results would be helpful.
- Just to be sure test the open time again, but with PDM disabled
https://www.goengineer.com/blog/solidwo ... -technique
Any other suggestion or idea??