dbTalk Databases Forums  

How to stop long running MDX statements on the server.

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss How to stop long running MDX statements on the server. in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Prasad
 
Posts: n/a

Default How to stop long running MDX statements on the server. - 08-14-2006 , 09:13 PM






Hi,

We have a web front end through which users will submit requests. Some of
our dimensions are large (About 1.7 Million members). Users can stack up to 3
dimensions on each axis.

Most of the requests complete in less than 5 to 10 minutes from MOLAP MSAS
2005 cubes. But there are few requests that ran for more than 2 hours. And
recently we had 5 such requests that ran about the same time and it brought
the server down.

I would like to have a facility (kind of DB2 Governor) where it stops long
running MDX statements say 90 minutes and save them in a log. This way at
least the server would not go down.

Obviously, we will monitor the log and improve the quality of the MDX
statements?
I am not sure if there is such server side facility available on the MSAS
2005 server or a server side MSAS 2005 setting that can a set up a threshold
in terms of minutes?

Thanks for your help,

Prasad.


Reply With Quote
  #2  
Old   
Akshai Mirchandani [MS]
 
Posts: n/a

Default Re: How to stop long running MDX statements on the server. - 08-15-2006 , 02:53 PM






You can set a server timeout to try to cancel queries that take too long.
You will need to set two timeout properties ServerTimeout and AdminTimeout
in the file msmdsrv.ini. Make sure you set AdminTimeout to a very large
value -- it controls the timeout for administrative operations.

Also, there is a sample application that is available called Activity
Viewer -- you can use this to try and view and cancel long-running commands.

But be aware that not all queries will cancel very responsively...

Thanks,
Akshai
--
Try out the MSDN Forums for Analysis Services at:
http://forums.microsoft.com/MSDN/Sho...ID=83&SiteID=1

This posting is provided "AS IS" with no warranties, and confers no rights
Please do not send email directly to this alias. This alias is for newsgroup
purposes only.

"Prasad" <Prasad (AT) discussions (DOT) microsoft.com> wrote

Quote:
Hi,

We have a web front end through which users will submit requests. Some of
our dimensions are large (About 1.7 Million members). Users can stack up
to 3
dimensions on each axis.

Most of the requests complete in less than 5 to 10 minutes from MOLAP MSAS
2005 cubes. But there are few requests that ran for more than 2 hours. And
recently we had 5 such requests that ran about the same time and it
brought
the server down.

I would like to have a facility (kind of DB2 Governor) where it stops long
running MDX statements say 90 minutes and save them in a log. This way at
least the server would not go down.

Obviously, we will monitor the log and improve the quality of the MDX
statements?
I am not sure if there is such server side facility available on the MSAS
2005 server or a server side MSAS 2005 setting that can a set up a
threshold
in terms of minutes?

Thanks for your help,

Prasad.




Reply With Quote
  #3  
Old   
Prasad
 
Posts: n/a

Default Re: How to stop long running MDX statements on the server. - 08-15-2006 , 07:34 PM



Hi,

Thanks for the reply.

Where can i downaload a copy of the Activity Viewer? Also can i run it on my
desktop and connect to the MSAS 2005 server? or do i have to install on the
MSAS 2005 server itself?

Please let me know.

Prasad.

"Akshai Mirchandani [MS]" wrote:

Quote:
You can set a server timeout to try to cancel queries that take too long.
You will need to set two timeout properties ServerTimeout and AdminTimeout
in the file msmdsrv.ini. Make sure you set AdminTimeout to a very large
value -- it controls the timeout for administrative operations.

Also, there is a sample application that is available called Activity
Viewer -- you can use this to try and view and cancel long-running commands.

But be aware that not all queries will cancel very responsively...

Thanks,
Akshai
--
Try out the MSDN Forums for Analysis Services at:
http://forums.microsoft.com/MSDN/Sho...ID=83&SiteID=1

This posting is provided "AS IS" with no warranties, and confers no rights
Please do not send email directly to this alias. This alias is for newsgroup
purposes only.

"Prasad" <Prasad (AT) discussions (DOT) microsoft.com> wrote in message
news:6E3EA7F0-79E2-4EEC-B3C2-5645D491D9F3 (AT) microsoft (DOT) com...
Hi,

We have a web front end through which users will submit requests. Some of
our dimensions are large (About 1.7 Million members). Users can stack up
to 3
dimensions on each axis.

Most of the requests complete in less than 5 to 10 minutes from MOLAP MSAS
2005 cubes. But there are few requests that ran for more than 2 hours. And
recently we had 5 such requests that ran about the same time and it
brought
the server down.

I would like to have a facility (kind of DB2 Governor) where it stops long
running MDX statements say 90 minutes and save them in a log. This way at
least the server would not go down.

Obviously, we will monitor the log and improve the quality of the MDX
statements?
I am not sure if there is such server side facility available on the MSAS
2005 server or a server side MSAS 2005 setting that can a set up a
threshold
in terms of minutes?

Thanks for your help,

Prasad.





Reply With Quote
  #4  
Old   
Akshai Mirchandani [MS]
 
Posts: n/a

Default Re: How to stop long running MDX statements on the server. - 08-16-2006 , 03:26 PM



Its a sample application available for public download:

http://www.microsoft.com/downloads/d...displaylang=en

It works against servers "registered" in Management Studio so it can work
against remote servers.

Thanks,
Akshai
--
Try out the MSDN Forums for Analysis Services at:
http://forums.microsoft.com/MSDN/Sho...ID=83&SiteID=1

This posting is provided "AS IS" with no warranties, and confers no rights
Please do not send email directly to this alias. This alias is for newsgroup
purposes only.

"Prasad" <Prasad (AT) discussions (DOT) microsoft.com> wrote

Quote:
Hi,

Thanks for the reply.

Where can i downaload a copy of the Activity Viewer? Also can i run it on
my
desktop and connect to the MSAS 2005 server? or do i have to install on
the
MSAS 2005 server itself?

Please let me know.

Prasad.

"Akshai Mirchandani [MS]" wrote:

You can set a server timeout to try to cancel queries that take too long.
You will need to set two timeout properties ServerTimeout and
AdminTimeout
in the file msmdsrv.ini. Make sure you set AdminTimeout to a very large
value -- it controls the timeout for administrative operations.

Also, there is a sample application that is available called Activity
Viewer -- you can use this to try and view and cancel long-running
commands.

But be aware that not all queries will cancel very responsively...

Thanks,
Akshai
--
Try out the MSDN Forums for Analysis Services at:
http://forums.microsoft.com/MSDN/Sho...ID=83&SiteID=1

This posting is provided "AS IS" with no warranties, and confers no
rights
Please do not send email directly to this alias. This alias is for
newsgroup
purposes only.

"Prasad" <Prasad (AT) discussions (DOT) microsoft.com> wrote in message
news:6E3EA7F0-79E2-4EEC-B3C2-5645D491D9F3 (AT) microsoft (DOT) com...
Hi,

We have a web front end through which users will submit requests. Some
of
our dimensions are large (About 1.7 Million members). Users can stack
up
to 3
dimensions on each axis.

Most of the requests complete in less than 5 to 10 minutes from MOLAP
MSAS
2005 cubes. But there are few requests that ran for more than 2 hours.
And
recently we had 5 such requests that ran about the same time and it
brought
the server down.

I would like to have a facility (kind of DB2 Governor) where it stops
long
running MDX statements say 90 minutes and save them in a log. This way
at
least the server would not go down.

Obviously, we will monitor the log and improve the quality of the MDX
statements?
I am not sure if there is such server side facility available on the
MSAS
2005 server or a server side MSAS 2005 setting that can a set up a
threshold
in terms of minutes?

Thanks for your help,

Prasad.







Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.