Web application storing images in database.
In our first setup we were storing (and serving) from images from database resized in asp.net cache. This was all good, but as web started getting more and more hits, we started experiencing weird problems, and by weird, I do mean weird - ranging from w3p crashing without any details to random OutOfMemoryExceptions occurring everywhere couple of times a day.
I suspected that asp.net cache my be misused by us here, so I rewrote image caching to go to filesystem. Our image handler now checks for resized image in cache dir, if no such image exists, fetches it from database and saves it in cache dir, and serves it from there.
The thing that's bothering me is memory usage of w3p for this web site. Before, when we were using asp.net cache object, typical memory usage for w3p was around 600mb. Now, when handler serves images from filesystem typical memory usage is around 750mb. Somehow I expected it go down (at least a bit), but definitely not up. Is there any explanation for this?
Second, is there a way to inspect w3p process in order to see how much memory is used for what? One thing that comes to mind is performance counters, but haven't had the time to check it out.