Click here to Skip to main content
15,895,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
my server is 32 bit.while try to export 15mb size excel data i got this error.

What I have tried:

my server have 7 gb free space, but it shows out of memory exception.
Posted
Updated 9-May-16 0:09am
Comments
Philippe Mori 10-May-16 12:40pm    
Your code is probably bugged and use far more memory necessary. Without any code, it is hard to help.

By the way, there are tools to analyse memory usage. Use them, if you cannot figure out where the problem is.

Out of memory exceptions get thrown when an application runs out of user memory; see Memory Limits for Windows and Windows Server Releases (Windows)[^].
 
Share this answer
 
The out of memory exception usually tells you that your software does not get anymore RAM-Capacity, so this is not related to disk space. Check your resource allocations and see if you flood your ram with data. Also try to identify where you can trigger the garbage collection by disposing unnecessary objects.
 
Share this answer
 
Comments
Francis Bastin 9-May-16 6:21am    
Thanks for the answer, my server have 8gb ram. i am using string builder to export data from data table to excel. where do i clear the GC.
HobbyProggy 9-May-16 6:53am    
Well you have to check if you are just creating objects and not dumping any. I would suggest you to review your code and see where you can dispose objects that are not needed anymore. Also check the link Richard gave you, this might also help :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900