<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:pingback="http://madskills.com/public/xml/rss/module/pingback/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>Shimon Krokhmal's blog - ASP</title>
    <link>http://www.krokhmal.com/</link>
    <description>medium : .NET | JavaScript | Secure coding | Databases | Sql Server | Oracle | CodeSmith | SPS | Life</description>
    <language>en-us</language>
    <copyright>Shimon Krokhmal</copyright>
    <lastBuildDate>Fri, 26 Jan 2007 08:21:34 GMT</lastBuildDate>
    <generator>newtelligence dasBlog 2.0.7226.0</generator>
    <managingEditor>Shimonkr@gmail.com</managingEditor>
    <webMaster>Shimonkr@gmail.com</webMaster>
    <item>
      <trackback:ping>http://www.krokhmal.com/Trackback.aspx?guid=a9a74314-b878-4122-b2d8-e2ec21e0f1ee</trackback:ping>
      <pingback:server>http://www.krokhmal.com/pingback.aspx</pingback:server>
      <pingback:target>http://www.krokhmal.com/PermaLink,guid,a9a74314-b878-4122-b2d8-e2ec21e0f1ee.aspx</pingback:target>
      <dc:creator>Shimon krokhmal</dc:creator>
      <wfw:comment>http://www.krokhmal.com/CommentView,guid,a9a74314-b878-4122-b2d8-e2ec21e0f1ee.aspx</wfw:comment>
      <wfw:commentRss>http://www.krokhmal.com/SyndicationService.asmx/GetEntryCommentsRss?guid=a9a74314-b878-4122-b2d8-e2ec21e0f1ee</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
A friend calls me earlier today(and wakes me up), with a problem on a system that
he is maintaining.<br />
since the customer needed the system ASAP, he asked me to deal with it .
</p>
        <p>
So, what is the problem ?<br /><br />
getting in to the system, wins the happy user with this error message :
</p>
        <p>
          <strong>8007000e System resource exceeded<br />
Microsoft OLE DB Provider for ODBC Drivers error '8007000e' 
<br />
[Microsoft][ODBC Microsoft Access Driver] System resource exceeded.</strong>
        </p>
        <p>
needless to say that is an "ASP-Access" system.
</p>
        <p>
lets review all our facts :
</p>
        <ul>
          <li>
The system written in ASP 
</li>
          <li>
The system's database is Access 
</li>
          <li>
It deployed on a shared hosting server 
</li>
          <li>
the system sends some error message - probably DB related</li>
        </ul>
        <p>
after googling a while, got the answer that the problem is connection pooling related.<br />
this could mean one of two things :
</p>
        <ol>
          <li>
There are places in the system which the connection not closed properly, which overloads
the connection pool. 
</li>
          <li>
There are too many simultaneous users, which cousing too many connections at the same
time.</li>
        </ol>
        <p>
Since there is only one user on the system, the second option is probably not the
answer.
</p>
        <p>
so, how do we clear the connection pool on a shared hosting server ???
</p>
        <p>
lets see what are the options (or to be exact : what are our limits on shared
hosting on that issue ?)
</p>
        <ul>
          <li>
We can't access the IIS configurations. 
</li>
          <li>
We can't get a remote desktop connection (is it too much to ask ?) 
</li>
          <li>
We don't have an access to the connection pool configurations 
</li>
          <li>
We cant restart the server.</li>
        </ul>
        <p>
Here is the solution :
</p>
        <ol>
          <li>
Access to the system to get the error. 
</li>
          <li>
rename the DB from db.mdb to db1.mdb 
</li>
          <li>
run the system again (this is an important step), 
<br />
the system will think that it's missing it's database and recycle the connection pool(mission
accomplished) 
</li>
          <li>
rename the database file to the original name (db.mdb) 
</li>
          <li>
run the system again.</li>
        </ol>
        <p>
now, i have to say , that this is a problem solver for the short run,<br />
whatever caused the problem will probably cause it again at some point.<br />
so, the best solution , is to do some harsh code review and find the problem (where
the connection is opened but not closed...)
</p>
        <p>
take care.
</p>
        <img width="0" height="0" src="http://www.krokhmal.com/aggbug.ashx?id=a9a74314-b878-4122-b2d8-e2ec21e0f1ee" />
        <br />
        <hr />
Shimon krokhmal, a part of the Krokhmal family</body>
      <title>Solving the 8007000e System resource exceeded error</title>
      <guid isPermaLink="false">http://www.krokhmal.com/PermaLink,guid,a9a74314-b878-4122-b2d8-e2ec21e0f1ee.aspx</guid>
      <link>http://www.krokhmal.com/2007/01/26/SolvingThe8007000eSystemResourceExceededError.aspx</link>
      <pubDate>Fri, 26 Jan 2007 08:21:34 GMT</pubDate>
      <description>&lt;p&gt;
A friend calls me earlier today(and wakes me up), with a problem on a system that
he is maintaining.&lt;br&gt;
since the customer needed the system ASAP, he asked me to deal with it .
&lt;/p&gt;
&lt;p&gt;
So, what is the problem ?&lt;br&gt;
&lt;br&gt;
getting in to the system, wins the happy user with this error message :
&lt;/p&gt;
&lt;p&gt;
&lt;strong&gt;8007000e System resource exceeded&lt;br&gt;
Microsoft OLE DB Provider for ODBC Drivers error '8007000e' 
&lt;br&gt;
[Microsoft][ODBC Microsoft Access Driver] System resource exceeded.&lt;/strong&gt;
&lt;/p&gt;
&lt;p&gt;
needless to say that is an "ASP-Access" system.
&lt;/p&gt;
&lt;p&gt;
lets review all our facts :
&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
The system written in ASP 
&lt;li&gt;
The system's database is Access 
&lt;li&gt;
It deployed on a shared hosting server 
&lt;li&gt;
the system sends some error message - probably DB related&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
after googling a while, got the answer that the problem is connection pooling related.&lt;br&gt;
this could mean one of two things :
&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
There are places in the system which the connection not closed properly, which overloads
the connection pool. 
&lt;li&gt;
There are too many simultaneous users, which cousing too many connections at the same
time.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;
Since there is only one user on the system, the second option is probably not the
answer.
&lt;/p&gt;
&lt;p&gt;
so, how do we clear the connection pool on a shared hosting server ???
&lt;/p&gt;
&lt;p&gt;
lets see what are the options (or to be exact&amp;nbsp;: what are our limits on shared
hosting on that issue ?)
&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
We can't access the IIS configurations. 
&lt;li&gt;
We can't get a remote desktop connection (is it too much to ask ?) 
&lt;li&gt;
We don't have an access to the connection pool configurations 
&lt;li&gt;
We cant restart the server.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
Here is the solution :
&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
Access to the system to get the error. 
&lt;li&gt;
rename the DB from db.mdb to db1.mdb 
&lt;li&gt;
run the system again (this is an important step), 
&lt;br&gt;
the system will think that it's missing it's database and recycle the connection pool(mission
accomplished) 
&lt;li&gt;
rename the database file to the original name (db.mdb) 
&lt;li&gt;
run the system again.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;
now, i have to say , that this is a problem solver for the short run,&lt;br&gt;
whatever caused the problem will probably cause it again at some point.&lt;br&gt;
so, the best solution , is to do some harsh code review and find the problem (where
the connection is opened but not closed...)
&lt;/p&gt;
&lt;p&gt;
take care.
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.krokhmal.com/aggbug.ashx?id=a9a74314-b878-4122-b2d8-e2ec21e0f1ee" /&gt;
&lt;br /&gt;
&lt;hr /&gt;Shimon krokhmal, a part of the Krokhmal family</description>
      <comments>http://www.krokhmal.com/CommentView,guid,a9a74314-b878-4122-b2d8-e2ec21e0f1ee.aspx</comments>
      <category>ASP</category>
      <category>database</category>
    </item>
  </channel>
</rss>