<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic excessive query breaks mid tier server in SAS Web Report Studio</title>
    <link>https://communities.sas.com/t5/SAS-Web-Report-Studio/excessive-query-breaks-mid-tier-server/m-p/40266#M721</link>
    <description>99% of our users use WRS to create or consume reports. We are currently at SAS EBI 9.1.3 and WRS at 3.1. The WRS is hosted using WebSphere on an AIX box.  Our problem is that if a user forgets applying a filter for its query(or purposely doing a very big query or export a huge dataset), the query/export can be as big as hundreds of millions. This will unfailingly bring our web application server down for exceeding the heap size we set(3.6G).  OutOfMemoryError will be complained for this crash then. This happened to us fairly frequently (once a month or more).  I am just wondering if you there have this issue and this frequency, any thing you may do to prevent this happening. Thanks in advance.&lt;BR /&gt;
&lt;BR /&gt;
-Haiyan</description>
    <pubDate>Wed, 13 Jan 2010 21:05:12 GMT</pubDate>
    <dc:creator>Haiyan</dc:creator>
    <dc:date>2010-01-13T21:05:12Z</dc:date>
    <item>
      <title>excessive query breaks mid tier server</title>
      <link>https://communities.sas.com/t5/SAS-Web-Report-Studio/excessive-query-breaks-mid-tier-server/m-p/40266#M721</link>
      <description>99% of our users use WRS to create or consume reports. We are currently at SAS EBI 9.1.3 and WRS at 3.1. The WRS is hosted using WebSphere on an AIX box.  Our problem is that if a user forgets applying a filter for its query(or purposely doing a very big query or export a huge dataset), the query/export can be as big as hundreds of millions. This will unfailingly bring our web application server down for exceeding the heap size we set(3.6G).  OutOfMemoryError will be complained for this crash then. This happened to us fairly frequently (once a month or more).  I am just wondering if you there have this issue and this frequency, any thing you may do to prevent this happening. Thanks in advance.&lt;BR /&gt;
&lt;BR /&gt;
-Haiyan</description>
      <pubDate>Wed, 13 Jan 2010 21:05:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Web-Report-Studio/excessive-query-breaks-mid-tier-server/m-p/40266#M721</guid>
      <dc:creator>Haiyan</dc:creator>
      <dc:date>2010-01-13T21:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: excessive query breaks mid tier server</title>
      <link>https://communities.sas.com/t5/SAS-Web-Report-Studio/excessive-query-breaks-mid-tier-server/m-p/40267#M722</link>
      <description>Hi Haiyan!&lt;BR /&gt;
&lt;BR /&gt;
What I usually do is add a prompt (I prefer using the report date) before opening the report so that the data is being filtered first before the report is displayed. In effect, the query result that the users will export, if they decide to do so, will also be trimmed down. I think this is a good way for the users to be reminded to always filter the data, otherwise, they will not be able to proceed and view the report &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
Hope this helps</description>
      <pubDate>Thu, 14 Jan 2010 02:14:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Web-Report-Studio/excessive-query-breaks-mid-tier-server/m-p/40267#M722</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-01-14T02:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: excessive query breaks mid tier server</title>
      <link>https://communities.sas.com/t5/SAS-Web-Report-Studio/excessive-query-breaks-mid-tier-server/m-p/40268#M723</link>
      <description>Thanks Murf!&lt;BR /&gt;
Just wondering how you add that prompt before viewing the report, do you customize the WRS application yourself as admin or as report author? or is it configurable?&lt;BR /&gt;
&lt;BR /&gt;
Regards.</description>
      <pubDate>Fri, 15 Jan 2010 15:40:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Web-Report-Studio/excessive-query-breaks-mid-tier-server/m-p/40268#M723</guid>
      <dc:creator>Haiyan</dc:creator>
      <dc:date>2010-01-15T15:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: excessive query breaks mid tier server</title>
      <link>https://communities.sas.com/t5/SAS-Web-Report-Studio/excessive-query-breaks-mid-tier-server/m-p/40269#M724</link>
      <description>The out of memory error is a result of the webserver's limited memory. &lt;BR /&gt;
&lt;BR /&gt;
I would recommend that you include a Stored Process in your information map to count the number of records returned in the query and if less than x # run the regular query, otherwise if more than x # are returned then reset the results to 1 row. This row of data could include a message (in all the character fields) "too many results returned to display on website" then the user creating the report will get a message no matter what they have selected to display.&lt;BR /&gt;
&lt;BR /&gt;
Here is one reference on creating a stored process for use in imap: &lt;A href="http://support.sas.com/kb/19/087.html" target="_blank"&gt;http://support.sas.com/kb/19/087.html&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
An example of using SQL Count function to count number of results:&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/sugi30/257-30.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi30/257-30.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Angela Hall&lt;BR /&gt;
&lt;A href="http://sas-bi.blogspot.com" target="_blank"&gt;http://sas-bi.blogspot.com&lt;/A&gt;</description>
      <pubDate>Fri, 15 Jan 2010 20:50:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Web-Report-Studio/excessive-query-breaks-mid-tier-server/m-p/40269#M724</guid>
      <dc:creator>AngelaHall</dc:creator>
      <dc:date>2010-01-15T20:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: excessive query breaks mid tier server</title>
      <link>https://communities.sas.com/t5/SAS-Web-Report-Studio/excessive-query-breaks-mid-tier-server/m-p/40270#M725</link>
      <description>Hi Haiyan,&lt;BR /&gt;
&lt;BR /&gt;
One way to avoid this is by defining the MAX_TUPLE_COUNT low enough, let's say 10000 like below&lt;BR /&gt;
&lt;BR /&gt;
  &lt;COM.SAS.IQUERY.DATASERVICES.PROCSUMMARYROLAPBUILDER.MAX_TUPLE_COUNT vmwide="true"&gt; 10000 &lt;/COM.SAS.IQUERY.DATASERVICES.PROCSUMMARYROLAPBUILDER.MAX_TUPLE_COUNT&gt;&lt;BR /&gt;
&lt;BR /&gt;
LocalProperties.xml .&lt;BR /&gt;
&lt;BR /&gt;
Also, make sure you have the last Hotfix for WRS which is now 17 since mid December. &lt;BR /&gt;
&lt;BR /&gt;
Cheers,&lt;BR /&gt;
Cristian</description>
      <pubDate>Wed, 20 Jan 2010 10:48:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Web-Report-Studio/excessive-query-breaks-mid-tier-server/m-p/40270#M725</guid>
      <dc:creator>Cristian</dc:creator>
      <dc:date>2010-01-20T10:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: excessive query breaks mid tier server</title>
      <link>https://communities.sas.com/t5/SAS-Web-Report-Studio/excessive-query-breaks-mid-tier-server/m-p/40271#M726</link>
      <description>Thanks Cristian. Yes we do have this directive in place and the MAX_TUPLE_COUNT=10000. I applied the WRS hotfix 17 last Sunday. So I will see if this hotfix may make some difference. Again thanks for mentioning of this.</description>
      <pubDate>Wed, 20 Jan 2010 14:30:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Web-Report-Studio/excessive-query-breaks-mid-tier-server/m-p/40271#M726</guid>
      <dc:creator>Haiyan</dc:creator>
      <dc:date>2010-01-20T14:30:20Z</dc:date>
    </item>
    <item>
      <title>Re: excessive query breaks mid tier server</title>
      <link>https://communities.sas.com/t5/SAS-Web-Report-Studio/excessive-query-breaks-mid-tier-server/m-p/40272#M727</link>
      <description>HI Angela, &lt;BR /&gt;
Thank you very much  for the idea. Our developer is investigating into this. We have so many maps now to work if we go this direction. But we may pick some maps that involve large volume data to include that stored process.  Thanks again.</description>
      <pubDate>Wed, 20 Jan 2010 14:35:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Web-Report-Studio/excessive-query-breaks-mid-tier-server/m-p/40272#M727</guid>
      <dc:creator>Haiyan</dc:creator>
      <dc:date>2010-01-20T14:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: excessive query breaks mid tier server</title>
      <link>https://communities.sas.com/t5/SAS-Web-Report-Studio/excessive-query-breaks-mid-tier-server/m-p/40273#M728</link>
      <description>Hi Haiyan,&lt;BR /&gt;
&lt;BR /&gt;
You might want to review the JVM params. &lt;BR /&gt;
In our case &lt;BR /&gt;
 -Xk32000 -Xloratio0.15&lt;BR /&gt;
proved to give us more stability. &lt;BR /&gt;
&lt;BR /&gt;
But generally, the OutofMemory issue has been recognised by SAS Support and they tried to address this partially in Hotfix 17. &lt;BR /&gt;
&lt;BR /&gt;
Good luck,&lt;BR /&gt;
Cristian</description>
      <pubDate>Wed, 20 Jan 2010 16:13:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Web-Report-Studio/excessive-query-breaks-mid-tier-server/m-p/40273#M728</guid>
      <dc:creator>Cristian</dc:creator>
      <dc:date>2010-01-20T16:13:56Z</dc:date>
    </item>
  </channel>
</rss>

