<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://www.imason.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Suleman's blog : maxRequestLength</title><link>http://www.imason.com/imason_Blogs/b/suleman_ibrahim/archive/tags/maxRequestLength/default.aspx</link><description>Tags: maxRequestLength</description><dc:language>en</dc:language><generator>Telligent Evolution 5.0 (Build: 40623.6204)</generator><item><title>MOSS 2007 - Uploading and Indexing Large Files:</title><link>http://www.imason.com/imason_Blogs/b/suleman_ibrahim/archive/2009/05/25/uploading-and-indexing-large-files-in-a-moss-site.aspx</link><pubDate>Mon, 25 May 2009 18:13:00 GMT</pubDate><guid isPermaLink="false">ba1d72eb-a51c-4157-8cec-718d26de3334:1382</guid><dc:creator>Suleman Ibrahim</dc:creator><slash:comments>11</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.imason.com/imason_Blogs/b/suleman_ibrahim/rsscomments.aspx?WeblogPostID=1382</wfw:commentRss><comments>http://www.imason.com/imason_Blogs/b/suleman_ibrahim/archive/2009/05/25/uploading-and-indexing-large-files-in-a-moss-site.aspx#comments</comments><description>&lt;p&gt;&lt;b&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;A client has reported an issue that users were not able to upload files larger than 50MB file which we can resolve easily by updating Web Application settings; however, users were getting Timeout exceptions as well. Furthermore, business told us that business requirement is to be able to upload up to 100MB files. &lt;/p&gt;  &lt;p&gt;There are few simple configurations setting those needs to do in order to upload large files in to SharePoint document libraries…. &lt;/p&gt;  &lt;h3&gt;SharePoint Configurations:&lt;/h3&gt;  &lt;ul&gt;   &lt;li&gt;&lt;b&gt;Increase the maximum upload size        &lt;br /&gt;&lt;/b&gt;The maximum size for uploading files is set to 50 MB for a Web Application. If you need to be able to upload larger files, you can change this setting to &lt;b&gt;any value up to 2 GB (2047 MB).&lt;/b&gt; However, as this is web application level setting so even if you have multiple site collections, this change will replicate to all site collections.       &lt;blockquote&gt;       &lt;p&gt;1- Go to &lt;strong&gt;Start&lt;/strong&gt; –&amp;gt; &lt;strong&gt;All Programs&lt;/strong&gt; -&amp;gt; &lt;strong&gt;Administrative Tools&lt;/strong&gt; –&amp;gt; &lt;strong&gt;SharePoint 3.0 Central Administration&lt;/strong&gt; -&amp;gt; &lt;strong&gt;Applications Management&lt;/strong&gt;.           &lt;br /&gt;2- Go to &lt;strong&gt;Web application general settings&lt;/strong&gt; under &lt;strong&gt;SharePoint Web Application Management&lt;/strong&gt; section.           &lt;br /&gt;3- Look for &lt;strong&gt;Maximum Upload Size&lt;/strong&gt; and update that field as required up to 2 GB (2047MB)           &lt;br /&gt;4- Click &lt;strong&gt;OK&lt;/strong&gt; to save Settings. &lt;/p&gt;     &lt;/blockquote&gt;   &lt;/li&gt;    &lt;li&gt;&lt;b&gt;Increase the default chunk size for large files        &lt;br /&gt;&lt;/b&gt;The chunk size is not related to the maximum upload file size. The chunk size simply specifies the amount of data that can be read from a file at one time. &lt;b&gt;By default, the large-file-chunk-size property is set to 5 MB&lt;/b&gt;. If you notice performance or scale problems on the client or server, then you may need to tune this setting to get the performance you are targeting.       &lt;br /&gt;&lt;strong&gt;Note:&lt;/strong&gt; If you raise the chunk size too high, the files might use up too much front-end memory and you may need to lower this setting.       &lt;br /&gt;      &lt;br /&gt;The large–file–chunk–size property must be set from the command line. This property is configured for a server or server farm, and cannot be configured for an individual virtual server. To set this property, use the following syntax:&lt;strong&gt;&lt;/strong&gt;       &lt;blockquote&gt;       &lt;p&gt;1- Open Command Prompt          &lt;br /&gt;2- Navigate to 12 Hive Bin Folder (usually C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\Bin)&amp;#160; &lt;br /&gt;3- Run Command: &lt;strong&gt;Stsadm.exe –o setproperty –pn large–file–chunk–size –pv &amp;lt;Size in Bytes&amp;gt;&lt;/strong&gt;           &lt;br /&gt;4- After making a change to this property, you must restart IIS. You can restart IIS by typing iisreset on the command line.&lt;/p&gt;     &lt;/blockquote&gt;   &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;b&gt;&lt;/b&gt;&lt;/p&gt;  &lt;h3&gt;&lt;b&gt;Tune the Microsoft Internet Information Services (IIS) connection timeout setting&lt;/b&gt;:&lt;/h3&gt;  &lt;blockquote&gt;   &lt;p&gt;By default, timeout for is set to 120 seconds (2 minutes). Depending on your maximum file size and how long it takes for the file to be uploaded, you may not need to change this setting. If, however, IIS is timing out when you upload large files, you can change this property to ensure that larger files can be uploaded successfully.&lt;/p&gt; &lt;/blockquote&gt;  &lt;blockquote&gt;   &lt;p&gt;1- Go to &lt;strong&gt;Start&lt;/strong&gt; –&amp;gt; &lt;strong&gt;All Programs&lt;/strong&gt; -&amp;gt; &lt;strong&gt;Administrative Tools&lt;/strong&gt; –&amp;gt; &lt;strong&gt;Internet Information Services (IIS) Manager&lt;/strong&gt;.       &lt;br /&gt;2- Right-click the virtual server you want to configure, and then click &lt;strong&gt;Properties&lt;/strong&gt;.       &lt;br /&gt;3- Click the &lt;strong&gt;Web Site&lt;/strong&gt; tab.       &lt;br /&gt;4- In the &lt;strong&gt;Connections&lt;/strong&gt; section, in the &lt;strong&gt;Connection timeout&lt;/strong&gt; box, type the number of seconds you want IIS to wait before timing out.       &lt;br /&gt;5- Click &lt;strong&gt;OK&lt;/strong&gt; to save settings.&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;Those who are working in SPS 2003 and want to make changes for web parts, please have a look to &lt;a href="http://office.microsoft.com/en-us/winsharepointadmin/HA011607881033.aspx"&gt;this article&lt;/a&gt; and find &lt;b&gt;Configuring Large File Support.&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&lt;/b&gt;&lt;/p&gt;  &lt;h3&gt;Web.Config configurations:&lt;/h3&gt;  &lt;ul&gt;   &lt;li&gt;&lt;b&gt;Update maxRequestLength and executionTimeout attributes for the httpRuntime node:&lt;/b&gt;&amp;#160; &lt;br /&gt;excecutionTimeout = &amp;lt;Time in Seconds&amp;gt;       &lt;br /&gt;maxRequestLength = &amp;lt;File size in KB&amp;gt; (by default for ASP applications, its set to 4096 (4MB), but because SharePoint supports 50MB so its set to 51200)       &lt;br /&gt;e.g.       &lt;br /&gt;&lt;strong&gt;&amp;lt;httpRuntime executionTimeout=&amp;quot;999999&amp;quot; maxRequestLength=&amp;quot;102400&amp;quot; /&amp;gt;&lt;/strong&gt;&amp;#160;&amp;#160; &amp;lt;!-- 102400 = 100MB --&amp;gt; &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;b&gt;&lt;/b&gt;&lt;/p&gt;  &lt;h3&gt;Indexing Large files:&lt;/h3&gt;  &lt;p&gt;If large files needs to be crawl then we need to make following changes in the Registry and central administration.&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;&lt;strong&gt;Registry Configurations:&lt;/strong&gt;       &lt;br /&gt;By default, Search Services can crawl and filter a file with a size of up to &lt;b&gt;16 megabytes (MB).&lt;/b&gt; It will always crawl the first 16MB of a file. After this limit is reached, SharePoint Portal Server enters a warning in the gatherer log “The file reached the maximum download limit. Check that the full text of the document can be meaningfully crawled.”       &lt;br /&gt;To increase the limit of 16 MB, you must add in the registry new entry &lt;b&gt;MaxDownloadSize&lt;/b&gt;.&amp;#160; To do this, follow these steps:       &lt;br /&gt;      &lt;blockquote&gt;       &lt;p&gt;1- Start Registry Editor (&lt;strong&gt;Start&lt;/strong&gt; –&amp;gt; &lt;strong&gt;Run&lt;/strong&gt; –&amp;gt; &lt;strong&gt;Regedit&lt;/strong&gt;).           &lt;br /&gt;2- Locate the following key in the registry: &lt;strong&gt;HKEY_LOCAL_MACHINE &lt;/strong&gt;-&amp;gt; &lt;strong&gt;SOFTWARE&lt;/strong&gt; –&amp;gt; &lt;strong&gt;Microsoft&lt;/strong&gt; –&amp;gt; &lt;strong&gt;Office Server&lt;/strong&gt; -&amp;gt; &lt;strong&gt;12.0&lt;/strong&gt; –&amp;gt; &lt;strong&gt;Search&lt;/strong&gt; –&amp;gt; &lt;strong&gt;Global&lt;/strong&gt; –&amp;gt; &lt;strong&gt;Gathering Manager&lt;/strong&gt;           &lt;br /&gt;3- If already &lt;b&gt;MaxDownloadSize&lt;/b&gt; exits then move to step 5.&amp;#160; &lt;br /&gt;4- Right click –&amp;gt;&amp;#160; &lt;strong&gt;New&lt;/strong&gt; –&amp;gt; &lt;strong&gt;DWORD Value&lt;/strong&gt;. Name it &lt;b&gt;MaxDownloadSize&lt;/b&gt;.           &lt;br /&gt;5- Double-click on &lt;b&gt;MaxDownloadSize&lt;/b&gt;, change the value to &lt;strong&gt;Decimal&lt;/strong&gt;, and type the maximum size (in MB) for files that the gatherer downloads.           &lt;br /&gt;6- Restart the server (this is an important step to do, otherwise changes will not effect).           &lt;br /&gt;7- Start &lt;strong&gt;Full Crawl&lt;/strong&gt;. &lt;/p&gt;     &lt;/blockquote&gt;   &lt;/li&gt; &lt;/ul&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;b&gt;NOTE:&lt;/b&gt; Increasing the file size may cause a timeout exception because the crawler can timeout if the file takes too long to crawl/index (because of its size). To increase timeout value, follow these steps:&lt;/p&gt; &lt;/blockquote&gt;  &lt;ul&gt;   &lt;li&gt;&lt;strong&gt;Central Administration Configurations: &lt;/strong&gt;&amp;#160; &lt;blockquote&gt;1- Go to &lt;strong&gt;Start&lt;/strong&gt; –&amp;gt; &lt;strong&gt;All Programs&lt;/strong&gt; -&amp;gt; &lt;strong&gt;Administrative Tools&lt;/strong&gt; –&amp;gt; &lt;strong&gt;SharePoint 3.0 Central Administration&lt;/strong&gt; -&amp;gt; &lt;strong&gt;Applications Management&lt;/strong&gt;.         &lt;br /&gt;2- In the &lt;strong&gt;Search&lt;/strong&gt; section, click &lt;strong&gt;Manage search service&lt;/strong&gt;         &lt;br /&gt;3- On the &lt;strong&gt;Manage Search Service&lt;/strong&gt; page, in the &lt;strong&gt;Farm-Level Search Settings&lt;/strong&gt; section, click &lt;strong&gt;Farm-level search settings&lt;/strong&gt;.         &lt;br /&gt;4- In the &lt;strong&gt;Timeout Settings&lt;/strong&gt; section change &lt;strong&gt;Connection&lt;/strong&gt; and &lt;strong&gt;Request acknowledgement time&lt;/strong&gt;. (here you need to do your math that how big files are suppose to be index and approximately how long it will take to crawl – for 100MB I haven’t change it so it’s still default 60 seconds for both).&lt;/blockquote&gt;   &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;You are all done and ready to test your scenarios :). &lt;/p&gt;  &lt;p&gt;Enjoy!!! &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://www.imason.com/aggbug.aspx?PostID=1382" width="1" height="1"&gt;</description><category domain="http://www.imason.com/imason_Blogs/b/suleman_ibrahim/archive/tags/maxRequestLength/default.aspx">maxRequestLength</category><category domain="http://www.imason.com/imason_Blogs/b/suleman_ibrahim/archive/tags/Index+large+file/default.aspx">Index large file</category><category domain="http://www.imason.com/imason_Blogs/b/suleman_ibrahim/archive/tags/MaxFileDownloadSize/default.aspx">MaxFileDownloadSize</category><category domain="http://www.imason.com/imason_Blogs/b/suleman_ibrahim/archive/tags/uploading+a+file+larger+than+50MB/default.aspx">uploading a file larger than 50MB</category><category domain="http://www.imason.com/imason_Blogs/b/suleman_ibrahim/archive/tags/excecutionTimeout/default.aspx">excecutionTimeout</category><category domain="http://www.imason.com/imason_Blogs/b/suleman_ibrahim/archive/tags/Max+file+upload+size/default.aspx">Max file upload size</category><category domain="http://www.imason.com/imason_Blogs/b/suleman_ibrahim/archive/tags/httpRuntime/default.aspx">httpRuntime</category><category domain="http://www.imason.com/imason_Blogs/b/suleman_ibrahim/archive/tags/MOSS/default.aspx">MOSS</category><category domain="http://www.imason.com/imason_Blogs/b/suleman_ibrahim/archive/tags/large+file+Timeout/default.aspx">large file Timeout</category><category domain="http://www.imason.com/imason_Blogs/b/suleman_ibrahim/archive/tags/technical/default.aspx">technical</category><category domain="http://www.imason.com/imason_Blogs/b/suleman_ibrahim/archive/tags/SharePoint/default.aspx">SharePoint</category></item></channel></rss>