September 19, 2014 at 2:50 am
Hi all,
Performance tuning it so critical can any one figure it out [there are no clients its a own prodcut company]
Application and users are hanging and server is down due to performance issue it got slowed
How to resolve this issue and identify which particular login is accessing the session [1000 session are running when we fetch sp_who2] no blocking , no deadlocks ,
Thanks
Naga.RohitKumar
Thanks
Naga.Rohitkumar
September 19, 2014 at 3:24 am
http://www.amazon.com/Server-Query-Performance-Tuning-Experts/dp/1430242035/
If it's critically urgent, hire someone to help you.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
September 19, 2014 at 3:38 am
iam not asking you the links i want to konw the particular login running from 1000 users seeesions
Thanks
Naga.Rohitkumar
September 19, 2014 at 3:59 am
This will get you a list of the sessions running, including the one you use to run the query.
select r.session_id,
r.blocking_session_id,
r.total_elapsed_time,
r.reads,
r.logical_reads,
s.host_name,
s.login_name,
p.query_plan,
db_name(r.database_id)
from sys.dm_exec_requests r
inner join sys.dm_exec_sessions s ON s.session_id = r.session_id
cross apply sys.dm_exec_sql_text(r.sql_handle) t
cross apply sys.dm_exec_query_plan(plan_handle) p
order by r.total_elapsed_time desc;
However, it sounds like you have a pretty serious performance problem, so I would start by reading the articles that Gail provided. Performance problems generally build up over time unless you've had a recent release that caused something serious. You're going to need to get to the bottom of it and fix the root cause of the problem.
September 19, 2014 at 4:58 pm
Open the Object Explorer, connect to the instance, right click on the instance, select "reports", follow your nose. If the server is so locked up that doesn't work, then you can try something like the query that Ed posted above.
This should also serve as a warning that you need to spend some time preparing for when the next time this happens. Don't put it off. Do it right after you get through this problem.
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply