Presentation is loading. Please wait.

Presentation is loading. Please wait.

Sum304: Deploying and Troubleshooting Edgesight Vincent Papoz Escalation Engineer October 16, 2012.

Similar presentations


Presentation on theme: "Sum304: Deploying and Troubleshooting Edgesight Vincent Papoz Escalation Engineer October 16, 2012."— Presentation transcript:

1 Sum304: Deploying and Troubleshooting Edgesight Vincent Papoz Escalation Engineer October 16, 2012

2 © 2012 Citrix | Confidential – Do Not Distribute Agenda 2 Architecture overview Use case: Troubleshooting slow logon Troubleshooting and resolving Edgesight Performance issues Custom Reporting (SQL objects and where to find data) Question

3 Architecture Overview

4 SQL Server RS Server Edgesight and Report Server Databases Edgesight Server XenApp servers with Edgesight Agent Endpoints

5 © 2012 Citrix | Confidential – Do Not Distribute What does the agent monitor? Event-driven data Process starts/stops, errors and faults User logon WinSock connection and HTTP transactions Windows Event Log System reboot Polled data System and Process performance metrics ICA session data Session connects/disconnects Detailed logon and session metrics, virtual channel statistics Scheduled data Drive space calculation Asset history

6 © 2012 Citrix | Confidential – Do Not Distribute End User Experience monitoring 6 Collects both client Start-up and Server Start-up metrics Service running on the XenApp Servers

7 Use case: Troubleshooting slow logon

8 © 2012 Citrix | Confidential – Do Not Distribute

9

10

11

12

13 Troubleshooting and resolving Edgesight Performance issues

14 © 2012 Citrix | Confidential – Do Not Distribute Symptoms 14 Report Rendering takes forever, Payloads are queuing up in the webload directory and are imported very slowly, Servers will not update the Database, Nightly maintenance takes a very long time - and possibly eventually fails, Grooming error messages are showing up in the console, Database data files very large

15 © 2012 Citrix | Confidential – Do Not Distribute Cause 15 Usually a problem with the SQL database SQL server out of disk space or too much data to process Data processing cannot complete because the Tlog cannot grow Data processing is resource intensive and is delayed

16 © 2012 Citrix | Confidential – Do Not Distribute Action plan 16 Assess your reporting requirements Analyze the content of the database Remove the unwanted data Reclaim disk space Adjust the collection configuration

17 © 2012 Citrix | Confidential – Do Not Distribute Analyzing the content of the database – Step1 17 Find out the Size of the Edgesight Database data files SELECT Name AS Logical_Name, Physical_Name, (size*8)/1024 SizeMB FROM sys.master_files WHERE DB_NAME(database_id) = 'EdgesightDBname‘ GO Logical_NamePhysical_NameSizeMB EdgesightE:\DB\Edgesight.mdf2500 Edgesight_logE:\DB\Edgesight_log.LDF45052 Edgesight_FG1_DataE:\DB\Edgesight_FG1.ndf12820 Edgesight_FG2_DataE:\DB\Edgesight_FG2.ndf25350 Edgesight_FG3_DataE:\DB\Edgesight_FG3.ndf7322 Edgesight_FG4_DataE:\DB\Edgesight_FG4.ndf46623 Edgesight_FG5_DataE:\DB\Edgesight_FG5.ndf8250 Edgesight_FG6_DataE:\DB\Edgesight_FG6.ndf245020 Edgesight_FG7_DataE:\DB\Edgesight_FG7.ndf12500

18 © 2012 Citrix | Confidential – Do Not Distribute Analyzing the content of the database – Step2 18 SELECT DISTINCT object_name(i.id) as TableName, f.name as Filegroup FROM sys.sysindexes i, sys.filegroups f WHERE objectproperty(i.id,'IsUserTable') = 1 AND f.data_space_id = i.groupid ORDER BY f.name GO

19 © 2012 Citrix | Confidential – Do Not Distribute Analyzing the content of the database – Step3 19 SELECT sysobjects.Name, sysindexes.Rows FROM sysobjects INNER JOIN sysindexes ON sysobjects.id = sysindexes.id WHERE sysindexes.IndId < 2 AND sysobjects.Name IN('CORE_NET_STAT', 'CORE_NET_TRANS')

20 © 2012 Citrix | Confidential – Do Not Distribute Analyzing the content of the database – Step4 20 - Finding out about the grooming schedule: SELECT f.table_name, m.default_days, m.groom_days FROM maint_table_config m JOIN table_def f on f.tableid=m.tableid WHERE table_name in ('CORE_NET_STAT', 'CORE_NET_TRANS')

21 © 2012 Citrix | Confidential – Do Not Distribute Analyzing the content of the database – Step4 21 - Has the grooming been failing? SELECT COUNT(*) FROM CORE_NET_TRANS WHERE dtperiod < GETUTCDATE() - 11

22 © 2012 Citrix | Confidential – Do Not Distribute Removing Data manually 22 -Grooming is failing – Delete data in increments declare @row int; declare @date datetime; set @date = GETUTCDATE() - 10 set @row = (select COUNT(*) from core_net_trans where dtperiod < @date); while @row <> 0 begin delete top(100000) from core_net_trans where dtperiod < @date set @row = (select COUNT(*) from core_net_trans where dtperiod < @date); end; go DBCC SHRINKFILE (N'Edgesight_FG6_Data', 0, TRUNCATEONLY) GO

23 © 2012 Citrix | Confidential – Do Not Distribute Removing Data manually 23 Grooming is not failing - Analyze the content of the table SELECT c.imid, i.[filename], count(c.imid) as cnt from core_net_trans c JOIN [image] i ON i.imid=c.imid GROUP BY c.imid, i.[filename] ORDER BY cnt DESC => Delete the process instance records from the table

24 © 2012 Citrix | Confidential – Do Not Distribute Reclaiming disk space 24 Using SQL Studio (SSMS) Using the following query DBCC SHRINKFILE (N'Edgesight_FG6_Data', 0, TRUNCATEONLY) GO

25 © 2012 Citrix | Confidential – Do Not Distribute Adjust collection configuration 25 Adjust the grooming schedule Review the upload configuration Ignore processes if applicable

26 © 2012 Citrix | Confidential – Do Not Distribute Ignoring a process 26

27 © 2012 Citrix | Confidential – Do Not Distribute Ignoring a process (Excluding a process) 27 Disable injection of csma_ldr.dll Per device registry setting Requires a reboot of the monitored device

28 © 2012 Citrix | Confidential – Do Not Distribute Ignoring a process – Finding affected servers 28 SELECT m.name, COUNT(m.name) AS cnt FROM core_net_trans c INNER JOIN instance i ON i.instid=c.instid INNER JOIN machine m ON m.machid=i.machid INNER JOIN [image] im ON im.imid=c.imid WHERE im.[filename] = ‘SomeApp.exe‘ GROUP BY m.name ORDER BY cnt DESC

29 © 2012 Citrix | Confidential – Do Not Distribute Use Sysinternals Process Explorer Ignoring a process – Verifying process exclusion 29

30 © 2012 Citrix | Confidential – Do Not Distribute 30

31 © 2012 Citrix | Confidential – Do Not Distribute Design consideration – SQL server 31 Split the filegroups on different hard drives http://msdn.microsoft.com/en-us/library/ms187087(v=sql.105).aspx http://msdn.microsoft.com/en-us/library/ms187087(v=sql.105).aspx Set the recovery model to simple for the Edgesight database http://msdn.microsoft.com/en-us/library/ms189275(v=sql.105).aspx http://msdn.microsoft.com/en-us/library/ms189275(v=sql.105).aspx Implement Data warehousing

32 A word on Custom Reporting

33 © 2012 Citrix | Confidential – Do Not Distribute XenApp servers with Edgesight Agent Endpoints

34 © 2012 Citrix | Confidential – Do Not Distribute Where to find data… Tables vs Views 34 283 user defined tables  Schema is not documented  Design is complex 96 SQL views  Fully documented  Used by the built in reports  Recommended when creating custom reports

35 © 2012 Citrix | Confidential – Do Not Distribute What you need to know… 35 Limited to historical reports Built in report files located under Uses Reporting services RDL format (XML) Queries are written in T-SQL Localization built in Edgesight

36 © 2012 Citrix | Confidential – Do Not Distribute Tools 36 An XML editor Report Builder Report Designer (Business Intelligence Development Studio) SQL Studio (SSMS)

37 © 2012 Citrix | Confidential – Do Not Distribute 37

38 © 2012 Citrix | Confidential – Do Not Distribute 38

39 © 2012 Citrix | Confidential – Do Not Distribute

40 Resources 40 Custom Report Blog http://blogs.citrix.com/2009/12/09/edgesight-custom-reporting/ http://blogs.citrix.com/2009/12/09/edgesight-custom-reporting/ Report Definition Language http://msdn.microsoft.com/en-us/library/ms155062.aspx http://msdn.microsoft.com/en-us/library/ms155062.aspx Microsoft Report Builder http://www.microsoft.com/sqlserver/en/us/solutions-technologies/business-intelligence/SQL- Server-2012-reporting-services.aspx http://www.microsoft.com/sqlserver/en/us/solutions-technologies/business-intelligence/SQL- Server-2012-reporting-services.aspx Anatomy of an Edgesight Report http://support.citrix.com/article/CTX116452 http://support.citrix.com/article/CTX116452

41


Download ppt "Sum304: Deploying and Troubleshooting Edgesight Vincent Papoz Escalation Engineer October 16, 2012."

Similar presentations


Ads by Google