System.OutOfMemoryException error thrown when running ReportViewer
2010-01-19 13:22
721 查看
-------------------------------
For System.OutOfMemory.Exception, try to check if this problem will go away after iis reset or terminating aspnet_wp.exe worker process in asp.net web server.
The .net memory profiler is a good tools for your troubleshooting. Try to find if the memory problem is caused by the remote serviced component. You can stop the remote serviced component to see if the memory exception goes away.
Try to refer to the following links to find the memory exception
#Watching Your Server Processes
http://msdn.microsoft.com/library/en-us/dnaspp/html/aspnet-watchserverprocesses.asp?frame=true
#ASP.NET Performance Monitoring, and When to Alert Administrators
http://msdn.microsoft.com/library/en-us/dnaspp/html/monitor_perf.asp?frame=true
#Production Debugging for .NET Framework Applications
http://msdn.microsoft.com/library/en-us/dnbda/html/DBGch02.asp?frame=true
#Performance Counters for ASP.NET
http://msdn.microsoft.com/library/en-us/cpguide/html/cpconPerformanceCountersForASPNET.asp?frame=true
Thanks.
http://forums.asp.net/p/1309087/2573177.aspx
-------------------------------
I have same problem exporting 400 pages to pdf (10 barcodes on each page), database is mssql, no problem when export 50 pages
When the report viewer is running in local mode, it does not have the same infrastructure available for performance and scale that the report server does. As you have seen, the memory footprint can be quite large and does depend on the report definition, size of the data sets, and the rendering format. An image based rendering will use much more memory than HTML, for example. The report server is better suited to handle large reports.
http://social.msdn.microsoft.com/forums/en-US/vsreportcontrols/thread/c89c8006-79b6-4cb5-88c6-346f0766a2a9
-------------------------------
I got a report which gives an exception when exported to excel from the report viewer. I got the same export correctly without error once and then again it throws everytime on the dev and prodn environments. I did search many articles but did not find the perfect answer in implemnting this. This is a local report(NOT SERVER Report) .rdlc file and attach the dataset and get the report. Only problem is when exported to excel but not with PDF. Not sure..why this is happening.
You can increase the memory of your client,
or you should reduce the size of your report output :
- limit the nr of rows
- limit the nr of columns (remove 1 column, e.g. an identity column)
- use smaller data types, eg. replace dates (12-25-2008) by integers (20081225) ...
http://www.sqlservercentral.com/Forums/Topic602053-162-1.aspx
-------------------------------
-------------------------------
相关文章推荐
- Getting System.OutOfMemoryException when using ReportViewer contol in Local mode
- out of memoryerror-when-running-junitreport-from-ant
- java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "javamelody jenkins
- "Out of Memory" error message appears when you have a large number of programs running
- Exception of type 'System.OutOfMemoryException' was thrown.
- org.apache.hive.service.cli.HiveSQLException: Error running query: java.lang.OutOfMemoryError: PermG
- weblogic10.3登录控制台报错Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandle解决办法
- [ZT]处理Exception of type System.OutOfMemoryException was thrown [转]
- dot Text Error: System.OutOfMemoryException
- java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread 报错解决
- 处理Exception of type System.OutOfMemoryException was thrown
- Exception of type System.OutOfMemoryException was thrown.
- System.OutOfMemoryException 的异常
- : tomcate 报 PermGen space 错误Exception in thread "main" java.lang.OutOfMemoryError: PermGen space
- Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
- Problems with System.OutOfMemoryException At System.String.GetStringForStringBuilder in 32-Bit Managed Solutions
- SQL SERVER 导入.sql文件 出现SYSTEM.OUTOFMEMORY EXCEPTION 异常解决办法
- Myeclipse运行程序时,发生异常:Exception in thread ""http-bio-8080"-exec-1" java.lang.OutOfMemoryError: PermGen
- Worklight Console initialization failed.Logged Exception: java.lang.OutOfMemoryError: Java heap spac
- OutOfMemoryError: Cannot create GC thread. Out of system resources