Friday, July 29, 2011

Quality Center Performance Issue

Quality Center services will use 100% CPU utilization if we don't use the upload attachment functionality properly. This happens with patch 15. Below are details of the issue, work around and permanent fix.

  1. Brief description of Attachment and Upload (Modifying attachment) functionality in QC
  2. when this issue occurs
  3. Issue Description
  4. Steps to reproduce the issue (Manually)
  5. Work around
  6. Permanent fix
  7. Upload button visibility (patch level comparison)
  8. Conclusion

1. Brief description of Attachment and Upload (Modifying attachment) functionality in QC.
  • Using Attach button we can attach a file which is available in physical directory of local machine to an entity.
  • We can modify an attachment in the Attachments list. When you open an attachment in the associated entity, Quality Center downloads the attachment to a local directory on your client machine. After making changes, you must save the attachment twice. First, save it locally in the application in which you opened it. Then, in Quality Center, click the Upload Selected button to save the local copy of the attachment to your Quality Center project.  
2. When this Issue occurs
  • If we click on Upload to attach a file after clicking Attach button which is not required.
3. Issue Description
  • If the user is executing a test case and trying to use the upload button in a big project his/her browser will crash and they have to kill the IE process using Task Manager or restart the system and they can’t continue the same run even after logging in a new browser.
  • For the above action QC will execute ListRepositoryFiles thread and will be continuously running until we restart the services.
  • Below is the screen shot of the struck thread which is caused by this issue. If more number of users are trying to use this option our QC CPU utilization will reach 100%.
 4. Steps to reproduce the issue (Manually)
  •  Login to project and click on Test Plan module. Select a test case
  • which is in draft status  and click on Attachments tab and Click on Attach icon (fig.4.1) select the file which you want to attach.
  • fig.4.1

  •  Once the attach is finished then select the file and click on Upload.
  • Your browser will hang/Crash.
  • Access the debug page (http://<server Name>:8080/qcbin/debug)  and you will find ListRepositoryFiles thread under current active Requests section.
5. Work around

  • Disabling upload button while attaching a file using work flow script.
        Function ActionCanExecute(ActionName)
            if ActionName = "attach__upload" then
             msgbox "please don't click this button"
             ActionCanExecute = False
             exit function
            end if
            ActionCanExecute = True
        End Function
  • If we apply the patch 20 which is in progress we don’t need to implement this code and it will be taken care by patch itself.
6. Permanent fix and Conclusion



No comments:

Post a Comment