bdietz
asked on
asp.net queries and memory consumption
i am executing a large query to return several thousands of rows of data. in sql query analyzer, the query runs for 3 minutes without using much memory.
i am writing an asp.net page that executes the same query in a stored procedure on the server. when i do this. aspnet_wp.exe gets huge in a hurry, and eventually crashes from too much memory usage. what can i do with asp/vb.net to not use very much RAM?
i am writing an asp.net page that executes the same query in a stored procedure on the server. when i do this. aspnet_wp.exe gets huge in a hurry, and eventually crashes from too much memory usage. what can i do with asp/vb.net to not use very much RAM?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
the link Download IIS 5.0 Process Recycling Tool is
http://www.microsoft.com/downloads/details.aspx?FamilyID=c4ba5f3c-1eb2-4f3c-99b0-b0cde072a7d8&DisplayLang=en
http://www.microsoft.com/downloads/details.aspx?FamilyID=c4ba5f3c-1eb2-4f3c-99b0-b0cde072a7d8&DisplayLang=en
1. Make sure you close Sql connection (connObject.Close())
2. <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=c4ba5f3c-1eb2-4f3c-99b0-b0cde072a7d8&DisplayLang=en">Download IIS 5.0 Process Recycling Tool</href>
3. Set limit to wp memory consumption:<processModel>
4. Upgrading to windows 2003 will solve your problem because by default it doesn't uses aspnet_wp.